Browse Source

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

pull/2/head
Alibek Omarov 11 months ago
parent
commit
bf6829189e
  1. 3
      public/wscript
  2. 1
      wscript

3
public/wscript

@ -12,8 +12,7 @@ def options(opt): @@ -12,8 +12,7 @@ def options(opt):
return
def configure(conf):
# stub
return
conf.define('XASH_BUILD_COMMIT', conf.env.GIT_VERSION if conf.env.GIT_VERSION else 'notset')
def build(bld):
bld(name = 'sdk_includes', export_includes = '. ../common ../pm_shared ../engine')

1
wscript

@ -476,7 +476,6 @@ int main(void) { return !opus_custom_encoder_init(0, 0, 0); }''' @@ -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:

Loading…
Cancel
Save