build script: update opusfile target

add linking with opus and ogg libraries to .pc file
ignore opusurl.pc file
This commit is contained in:
alexey.lysiuk 2020-12-09 10:33:30 +02:00
parent 4eed3e3272
commit 2d10cd23e9
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View file

@ -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

View file

@ -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(