Skip to content

Commit

Permalink
wscript: use ConfigurationContext.define instead of appending to env[…
Browse files Browse the repository at this point in the history
…'DEFINES']
  • Loading branch information
a1batross committed Oct 11, 2019
1 parent 211de85 commit 73b552c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ def options(opt):
def configure(conf):
if conf.env.DEST_OS2 == 'android':
conf.check_cc(lib='log')
conf.env.append_unique('DEFINES', 'WES_MANGLE_PREPEND')
conf.env.append_unique('DEFINES', 'REF_DLL')
conf.define('WES_MANGLE_PREPEND', 1)
conf.define('REF_DLL', 1)
return

def build(bld):
source = bld.path.ant_glob(['src/*.c'])
libs = []
if bld.env.DEST_OS2 == 'android':
libs += ['LOG']
includes = [ 'src/' ]
includes = ['src/']

bld.stlib(
source = source,
Expand Down

0 comments on commit 73b552c

Please sign in to comment.