mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
wscript: add zlib library
This commit is contained in:
parent
01a33dcf7e
commit
9b68b0c1e2
@ -50,6 +50,9 @@ def configure(conf):
|
|||||||
conf.env.append_unique('DEFINES', 'DBGHELP')
|
conf.env.append_unique('DEFINES', 'DBGHELP')
|
||||||
conf.env.append_unique('DEFINES', 'PSAPI_VERSION=1')
|
conf.env.append_unique('DEFINES', 'PSAPI_VERSION=1')
|
||||||
|
|
||||||
|
conf.check_cc(header_name='zlib.h', uselib_store='ZLIB')
|
||||||
|
conf.check_cc(lib='z', uselib_store='ZLIB')
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
libs = [ 'public' ]
|
libs = [ 'public' ]
|
||||||
source = bld.path.ant_glob([
|
source = bld.path.ant_glob([
|
||||||
@ -78,6 +81,9 @@ def build(bld):
|
|||||||
libs += ['LOG', 'EGL', 'ANDROID']
|
libs += ['LOG', 'EGL', 'ANDROID']
|
||||||
source += bld.path.ant_glob(['platform/android/*.cpp', 'platform/android/*.c'])
|
source += bld.path.ant_glob(['platform/android/*.cpp', 'platform/android/*.c'])
|
||||||
|
|
||||||
|
# Add zlib for all builds
|
||||||
|
libs += [ 'ZLIB' ]
|
||||||
|
|
||||||
# add client files
|
# add client files
|
||||||
if not bld.env.DEDICATED:
|
if not bld.env.DEDICATED:
|
||||||
source += bld.path.ant_glob([
|
source += bld.path.ant_glob([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user