2014-02-08 09:14:15 +00:00
|
|
|
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
|
|
|
import os.path
|
|
|
|
|
|
|
|
binary = AMXX.Library(builder, 'amxxpc32')
|
|
|
|
|
2014-08-12 21:49:41 +00:00
|
|
|
binary.compiler.includes += [
|
|
|
|
builder.currentSourcePath,
|
|
|
|
os.path.join(builder.buildPath, builder.buildFolder),
|
|
|
|
]
|
|
|
|
|
2014-02-08 09:14:15 +00:00
|
|
|
if builder.target_platform in ['mac', 'linux']:
|
|
|
|
binary.compiler.defines += ['ENABLE_BINRELOC']
|
|
|
|
binary.compiler.postlink += ['-lm', '-lpthread']
|
|
|
|
|
|
|
|
binary.compiler.defines += [
|
|
|
|
'NO_MAIN',
|
|
|
|
'PAWNC_DLL',
|
|
|
|
'HAVE_STDINT_H',
|
2014-08-15 22:23:11 +00:00
|
|
|
'_GNU_SOURCE',
|
2014-02-08 09:14:15 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
binary.sources = [
|
|
|
|
'sc1.c',
|
|
|
|
'sc2.c',
|
|
|
|
'sc3.c',
|
|
|
|
'sc4.c',
|
|
|
|
'sc5.c',
|
|
|
|
'sc6.c',
|
|
|
|
'sc7.c',
|
|
|
|
'scvars.c',
|
|
|
|
'scmemfil.c',
|
|
|
|
'scstate.c',
|
|
|
|
'sclist.c',
|
|
|
|
'sci18n.c',
|
|
|
|
'pawncc.c',
|
|
|
|
'libpawnc.c',
|
|
|
|
'prefix.c',
|
|
|
|
'memfile.c',
|
2014-08-17 11:23:05 +00:00
|
|
|
'sp_symhash.c',
|
2014-02-08 09:14:15 +00:00
|
|
|
]
|
|
|
|
|
2014-02-09 04:53:01 +00:00
|
|
|
if builder.target_platform == 'windows':
|
|
|
|
binary.sources+= ['libpawnc.rc']
|
|
|
|
|
2014-02-08 20:42:00 +00:00
|
|
|
AMXX.libpc300 = builder.Add(binary)
|