From bf6829189e1411cc18b9bd2afb1e4f3204574588 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 31 Oct 2023 04:28:52 +0300 Subject: [PATCH] wscript: move XASH_BUILD_COMMIT definition to libpublic, as this is the only place where it's used, for faster builds --- public/wscript | 3 +-- wscript | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/public/wscript b/public/wscript index 400a19d0..4f7b24f4 100644 --- a/public/wscript +++ b/public/wscript @@ -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') diff --git a/wscript b/wscript index 3ea1e0a3..90335a74 100644 --- a/wscript +++ b/wscript @@ -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: