wscript: move XASH_BUILD_COMMIT definition to libpublic, as this is the only place where it's used, for faster builds

This commit is contained in:
Alibek Omarov
2023-10-31 04:28:52 +03:00
parent a62a9429c9
commit bf6829189e
2 changed files with 1 additions and 3 deletions

View File

@@ -476,7 +476,6 @@ int main(void) { return !opus_custom_encoder_init(0, 0, 0); }'''
if conf.check_cc(msg='Checking if opus supports custom modes', defines='CUSTOM_MODES=1', use='opus', fragment=frag, mandatory=False):
conf.env.HAVE_SYSTEM_OPUS = True
conf.define('XASH_BUILD_COMMIT', conf.env.GIT_VERSION if conf.env.GIT_VERSION else 'notset')
conf.define('XASH_LOW_MEMORY', conf.options.LOW_MEMORY)
for i in SUBDIRS: