python/build/libs.py: remove libvorbis, switch to Meson wrap
This commit is contained in:
parent
6b1d0cb01d
commit
aef0535c55
|
@ -153,7 +153,6 @@ from build.libs import *
|
||||||
thirdparty_libs = [
|
thirdparty_libs = [
|
||||||
libmpdclient,
|
libmpdclient,
|
||||||
libogg,
|
libogg,
|
||||||
libvorbis,
|
|
||||||
opus,
|
opus,
|
||||||
flac,
|
flac,
|
||||||
libid3tag,
|
libid3tag,
|
||||||
|
|
|
@ -15,11 +15,13 @@ project(
|
||||||
'fmt:default_library=static',
|
'fmt:default_library=static',
|
||||||
'gtest:default_library=static',
|
'gtest:default_library=static',
|
||||||
'sqlite3:default_library=static',
|
'sqlite3:default_library=static',
|
||||||
|
'vorbis:default_library=static',
|
||||||
|
|
||||||
# Not interested in compiler warnings from subprojects.
|
# Not interested in compiler warnings from subprojects.
|
||||||
'fmt:warning_level=0',
|
'fmt:warning_level=0',
|
||||||
'gtest:warning_level=0',
|
'gtest:warning_level=0',
|
||||||
'sqlite3:warning_level=0',
|
'sqlite3:warning_level=0',
|
||||||
|
'vorbis:warning_level=0',
|
||||||
],
|
],
|
||||||
license: 'GPLv2+',
|
license: 'GPLv2+',
|
||||||
)
|
)
|
||||||
|
|
|
@ -28,16 +28,6 @@ libogg = CmakeProject(
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
libvorbis = CmakeProject(
|
|
||||||
'http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.7.tar.xz',
|
|
||||||
'b33cc4934322bcbf6efcbacf49e3ca01aadbea4114ec9589d1b1e9d20f72954b',
|
|
||||||
'lib/libvorbis.a',
|
|
||||||
[
|
|
||||||
'-DBUILD_SHARED_LIBS=OFF',
|
|
||||||
'-DINSTALL_CMAKE_PACKAGE_MODULE=OFF',
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
opus = AutotoolsProject(
|
opus = AutotoolsProject(
|
||||||
'https://archive.mozilla.org/pub/opus/opus-1.3.1.tar.gz',
|
'https://archive.mozilla.org/pub/opus/opus-1.3.1.tar.gz',
|
||||||
'65b58e1e25b2a114157014736a3d9dfeaad8d41be1c8179866f144a2fb44ff9d',
|
'65b58e1e25b2a114157014736a3d9dfeaad8d41be1c8179866f144a2fb44ff9d',
|
||||||
|
|
|
@ -5,7 +5,9 @@ if get_option('tremor').enabled()
|
||||||
# no libvorbis if Tremor was explicitly enabled
|
# no libvorbis if Tremor was explicitly enabled
|
||||||
libvorbis_dep = dependency('', required: false)
|
libvorbis_dep = dependency('', required: false)
|
||||||
else
|
else
|
||||||
libvorbis_dep = dependency('vorbis', required: get_option('vorbis'))
|
libvorbis_dep = dependency('vorbis',
|
||||||
|
fallback: ['vorbis', 'vorbis_dep'],
|
||||||
|
required: get_option('vorbis'))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if libvorbis_dep.found()
|
if libvorbis_dep.found()
|
||||||
|
|
|
@ -3,3 +3,4 @@
|
||||||
/fmt-*/
|
/fmt-*/
|
||||||
/googletest-*/
|
/googletest-*/
|
||||||
/sqlite-*/
|
/sqlite-*/
|
||||||
|
/libvorbis-*/
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
[wrap-file]
|
||||||
|
directory = libvorbis-1.3.5
|
||||||
|
source_url = http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.xz
|
||||||
|
source_filename = libvorbis-1.3.5.tar.xz
|
||||||
|
source_hash = 54f94a9527ff0a88477be0a71c0bab09a4c3febe0ed878b24824906cd4b0e1d1
|
||||||
|
patch_url = https://wrapdb.mesonbuild.com/v1/projects/vorbis/1.3.5/7/get_zip
|
||||||
|
patch_filename = vorbis-1.3.5-7-wrap.zip
|
||||||
|
patch_hash = 7f4d3f9253925196461d52fd4553aad4468fd845560d1ff6c2eb6a012cf64fb0
|
||||||
|
|
||||||
|
[provide]
|
||||||
|
vorbis = vorbis_dep
|
||||||
|
vorbisfile = vorbisfile_dep
|
||||||
|
vorbisenc = vorbisenc_dep
|
||||||
|
|
|
@ -96,7 +96,6 @@ from build.libs import *
|
||||||
thirdparty_libs = [
|
thirdparty_libs = [
|
||||||
libmpdclient,
|
libmpdclient,
|
||||||
libogg,
|
libogg,
|
||||||
libvorbis,
|
|
||||||
opus,
|
opus,
|
||||||
flac,
|
flac,
|
||||||
zlib,
|
zlib,
|
||||||
|
|
Loading…
Reference in New Issue