mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
46 lines
832 B
Python
46 lines
832 B
Python
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
|
import os.path
|
|
|
|
binary = AMXX.Library(builder, 'amxxpc32')
|
|
|
|
binary.compiler.includes += [
|
|
builder.currentSourcePath,
|
|
os.path.join(builder.buildPath, builder.buildFolder),
|
|
]
|
|
|
|
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',
|
|
'_GNU_SOURCE',
|
|
]
|
|
|
|
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',
|
|
'sp_symhash.c',
|
|
]
|
|
|
|
if builder.target_platform == 'windows':
|
|
binary.sources+= ['libpawnc.rc']
|
|
|
|
AMXX.libpc300 = builder.Add(binary)
|