wscript: refactor opus wscript files, now it builds only if system package wasn't found

This commit is contained in:
Alibek Omarov
2021-06-14 21:19:52 +03:00
parent 9242a0a510
commit 44cd03f464
6 changed files with 56 additions and 47 deletions

View File

@@ -54,6 +54,7 @@ class Subproject:
return True
SUBDIRS = [
Subproject('3rdparty/opus'),
Subproject('public', dedicated=False, mandatory = True),
Subproject('filesystem', dedicated=False, mandatory = True),
Subproject('game_launch', singlebin=True),
@@ -353,11 +354,9 @@ int main(int argc, char **argv) { strcasestr(argv[1], argv[2]); return 0; }'''
continue
conf.add_subproject(i.name)
conf.load('opus')
def build(bld):
bld.load('opus xshlib')
bld.load('xshlib')
for i in SUBDIRS:
if not i.is_enabled(bld):