From 2d10cd23e9fad970a9b44596990afeb1eed9ad05 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 9 Dec 2020 10:33:30 +0200 Subject: [PATCH] build script: update opusfile target add linking with opus and ogg libraries to .pc file ignore opusurl.pc file --- .gitignore | 1 + build.py | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 115a06ee..3723f474 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ /deps/nasm/bin/ndisasm /deps/openal/lib/cmake/ /deps/opusfile/lib/libopusurl.a +/deps/opusfile/lib/pkgconfig/opusurl.pc /deps/pcre/bin/ /deps/pcre/lib/pkgconfig/libpcreposix.pc /deps/pcre/lib/libpcreposix.a diff --git a/build.py b/build.py index ff7ab1fd..a4952254 100755 --- a/build.py +++ b/build.py @@ -881,6 +881,7 @@ class OpusFileTarget(ConfigureMakeStaticDependencyTarget): def __init__(self, name='opusfile'): super().__init__(name) self.options['--enable-http'] = 'no' + self.pkg_libs = {'opusfile': '-lopus -logg'} def prepare_source(self, builder: 'Builder'): builder.download_source(