Initial import of AMBuild infrastructure for C++ projects.

Former-commit-id: 53baa4f8c25525674f5e71f8f6ff2663928500ab
This commit is contained in:
David Anderson
2014-02-08 01:14:15 -08:00
parent bc57a4e74f
commit c4e90ce865
24 changed files with 814 additions and 1 deletions

26
compiler/amxxpc/AMBuilder Normal file
View File

@ -0,0 +1,26 @@
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
import os.path
binary = AMXX.Program(builder, 'amxxpc')
binary.compiler.defines += [
'AMX_ANSIONLY',
]
if builder.target_platform == 'linux':
binary.compiler.postlink += [
'-ldl',
binary.Dep('libz.a'),
]
elif builder.target_platform == 'mac':
binary.compiler.postlink += [binary.Dep('libz-darwin.a')]
elif builder.target_platform == 'windows':
binary.compiler.postlink += [binary.Dep('zlib.lib')]
binary.sources = [
'amx.cpp',
'amxxpc.cpp',
'Binary.cpp',
]
AMXX.modules += [builder.Add(binary)]