From e54289f811d6c100d6baf0b7a3a47dd8fab96d37 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 10 Sep 2022 19:55:37 +0300 Subject: [PATCH] public: wscript: add dummy sdk_includes target that only exposes standard HLSDK include paths --- public/wscript | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/public/wscript b/public/wscript index d2ad2ea8..cc20f0c5 100644 --- a/public/wscript +++ b/public/wscript @@ -16,15 +16,9 @@ def configure(conf): return def build(bld): - source = bld.path.ant_glob(['*.c']) - libs = [] - includes = [ '.', '../common', '../engine' ] - - bld.stlib( - source = source, + bld(name = 'sdk_includes', export_includes = '. ../common ../pm_shared ../engine') + bld.stlib(source = bld.path.ant_glob('*.c'), target = 'public', features = 'c', - includes = includes, - use = libs, - subsystem = bld.env.MSVC_SUBSYSTEM - ) + use = 'sdk_includes', + subsystem = bld.env.MSVC_SUBSYSTEM)