Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Opus to 1.5.1 #1273

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions gvsbuild/projects/opus.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,30 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.

from gvsbuild.utils.base_builders import Meson
from gvsbuild.utils.base_builders import CmakeProject
from gvsbuild.utils.base_expanders import Tarball
from gvsbuild.utils.base_project import project_add


@project_add
class Opus(Tarball, Meson):
class Opus(Tarball, CmakeProject):
def __init__(self):
Meson.__init__(
CmakeProject.__init__(
self,
"opus",
version="1.4",
version="1.5.1",
repository="https://github.com/xiph/opus",
archive_url="https://github.com/xiph/opus/releases/download/v{version}/opus-{version}.tar.gz",
hash="c9b32b4253be5ae63d1ff16eea06b94b5f0f2951b7a02aceef58e3a3ce49c51f",
archive_url="https://downloads.xiph.org/releases/opus/opus-{version}.tar.gz",
hash="b84610959b8d417b611aa12a22565e0a3732097c6389d19098d844543e340f85",
dependencies=[
"ninja",
"meson",
"cmake",
"pkgconf",
],
)

self.add_param("-Dtests=disabled")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we disable tests and docs with cmake?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @pbor, thanks for the feedback. I updated the PR to disable the tests, I don't see an option to disable docs though.

self.add_param("-Ddocs=disabled")

def build(self):
Meson.build(self)
CmakeProject.build(
self, use_ninja=True, cmake_params="-DOPUS_BUILD_TESTING=OFF"
)
self.install(r"COPYING share\doc\opus")
Loading