public: initial moving some common code into static public library, that can be linked to any engine part

This commit is contained in:
Alibek Omarov
2019-03-20 01:17:46 +03:00
parent 34da3e0ccd
commit fb6fd61cd9
10 changed files with 43 additions and 101 deletions

View File

@@ -56,7 +56,7 @@ def build(bld):
bld.load_envs()
bld.env = bld.all_envs[get_subproject_name(bld)]
libs = []
libs = [ 'public' ]
source = bld.path.ant_glob([
'common/*.c',
'common/imagelib/*.c',
@@ -93,7 +93,7 @@ def build(bld):
if bld.env.DEST_OS == 'linux':
libs.append('RT')
includes = ['common', 'server', 'client', 'client/vgui', '.', '../common', '../pm_shared' ]
includes = ['common', 'server', 'client', 'client/vgui', '.', '../common', '../public', '../pm_shared' ]
if bld.env.SINGLE_BINARY:
bld(