wscript: strip lib prefix from new opus and vorbis targets, don't link them in dedicated

This commit is contained in:
Alibek Omarov
2024-12-02 21:59:11 +03:00
parent 6b6d3b3770
commit 51fa7d2611
5 changed files with 28 additions and 36 deletions

View File

@@ -22,7 +22,7 @@ def configure(conf):
if conf.check_cc(fragment=FRAGMENT_MEMORY_H, msg = 'Checking for memory.h header', mandatory = False):
conf.define('USE_MEMORY_H', 1)
conf.check_cc(fragment=FRAGMENT_ALLOCA_H, msg = 'Checking for alloca in alloca.h header', mandatory = False)
if conf.env.COMPILER_CC == 'msvc':
@@ -54,22 +54,18 @@ def build(bld):
'vorbis-src/lib/bitrate.c'
]
libvorbisfile_sources = [
'vorbis-src/lib/vorbisfile.c'
]
bld.stlib(
source = libvorbis_sources,
target = 'libvorbis',
includes = ['vorbis-src/include/'],
use = ['libogg'],
export_includes = ['vorbis-src/include/']
target = 'vorbis',
includes = 'vorbis-src/include/',
use = 'ogg',
export_includes = 'vorbis-src/include/'
)
bld.stlib(
source = libvorbisfile_sources,
target = 'libvorbisfile',
includes = ['vorbis-src/include/'],
use = ['libvorbis'],
export_includes = ['vorbis-src/include/']
source = 'vorbis-src/lib/vorbisfile.c',
target = 'vorbisfile',
includes = 'vorbis-src/include/',
use = 'vorbis',
export_includes = 'vorbis-src/include/'
)