Initial import of AMBuild infrastructure for C++ projects.
Former-commit-id: 53baa4f8c25525674f5e71f8f6ff2663928500ab
This commit is contained in:
13
dlls/cstrike/cstrike/AMBuilder
Normal file
13
dlls/cstrike/cstrike/AMBuilder
Normal file
@ -0,0 +1,13 @@
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os.path
|
||||
|
||||
binary = AMXX.MetaModule(builder, 'cstrike')
|
||||
|
||||
binary.sources = [
|
||||
'sdk/amxxmodule.cpp',
|
||||
'CstrikePlayer.cpp',
|
||||
'cstrike.cpp',
|
||||
'CstrikeHacks.cpp',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
15
dlls/cstrike/csx/AMBuilder
Normal file
15
dlls/cstrike/csx/AMBuilder
Normal file
@ -0,0 +1,15 @@
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os.path
|
||||
|
||||
binary = AMXX.MetaModule(builder, 'csx')
|
||||
|
||||
binary.sources = [
|
||||
'sdk/amxxmodule.cpp',
|
||||
'CRank.cpp',
|
||||
'CMisc.cpp',
|
||||
'meta_api.cpp',
|
||||
'rank.cpp',
|
||||
'usermsg.cpp',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
16
dlls/dod/dodfun/AMBuilder
Normal file
16
dlls/dod/dodfun/AMBuilder
Normal file
@ -0,0 +1,16 @@
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os.path
|
||||
|
||||
binary = AMXX.MetaModule(builder, 'dodfun')
|
||||
|
||||
binary.sources = [
|
||||
'sdk/amxxmodule.cpp',
|
||||
'NBase.cpp',
|
||||
'CMisc.cpp',
|
||||
'NPD.cpp',
|
||||
'Utils.cpp',
|
||||
'usermsg.cpp',
|
||||
'moduleconfig.cpp',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
17
dlls/dod/dodx/AMBuilder
Normal file
17
dlls/dod/dodx/AMBuilder
Normal file
@ -0,0 +1,17 @@
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os.path
|
||||
|
||||
binary = AMXX.MetaModule(builder, 'dodx')
|
||||
|
||||
binary.sources = [
|
||||
'sdk/amxxmodule.cpp',
|
||||
'CRank.cpp',
|
||||
'CMisc.cpp',
|
||||
'NBase.cpp',
|
||||
'NRank.cpp',
|
||||
'usermsg.cpp',
|
||||
'Utils.cpp',
|
||||
'moduleconfig.cpp',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
16
dlls/engine/AMBuilder
Normal file
16
dlls/engine/AMBuilder
Normal file
@ -0,0 +1,16 @@
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os.path
|
||||
|
||||
binary = AMXX.MetaModule(builder, 'engine')
|
||||
|
||||
binary.sources = [
|
||||
'sdk/amxxmodule.cpp',
|
||||
'amxxapi.cpp',
|
||||
'engine.cpp',
|
||||
'entity.cpp',
|
||||
'globals.cpp',
|
||||
'forwards.cpp',
|
||||
'amxmod_compat.cpp',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
20
dlls/fakemeta/AMBuilder
Normal file
20
dlls/fakemeta/AMBuilder
Normal file
@ -0,0 +1,20 @@
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os.path
|
||||
|
||||
binary = AMXX.MetaModule(builder, 'fakemeta')
|
||||
|
||||
binary.sources = [
|
||||
'sdk/amxxmodule.cpp',
|
||||
'dllfunc.cpp',
|
||||
'engfunc.cpp',
|
||||
'fakemeta_amxx.cpp',
|
||||
'pdata.cpp',
|
||||
'forward.cpp',
|
||||
'fm_tr.cpp',
|
||||
'pev.cpp',
|
||||
'glb.cpp',
|
||||
'fm_tr2.cpp',
|
||||
'misc.cpp',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
11
dlls/fun/AMBuilder
Normal file
11
dlls/fun/AMBuilder
Normal file
@ -0,0 +1,11 @@
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os.path
|
||||
|
||||
binary = AMXX.MetaModule(builder, 'fun')
|
||||
|
||||
binary.sources = [
|
||||
'sdk/amxxmodule.cpp',
|
||||
'fun.cpp',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
12
dlls/geoip/AMBuilder
Normal file
12
dlls/geoip/AMBuilder
Normal file
@ -0,0 +1,12 @@
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os.path
|
||||
|
||||
binary = AMXX.Module(builder, 'geoip')
|
||||
|
||||
binary.sources = [
|
||||
'sdk/amxxmodule.cpp',
|
||||
'GeoIP.c',
|
||||
'geoip_amxx.cpp',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
19
dlls/hamsandwich/AMBuilder
Normal file
19
dlls/hamsandwich/AMBuilder
Normal file
@ -0,0 +1,19 @@
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os.path
|
||||
|
||||
binary = AMXX.MetaModule(builder, 'hamsandwich')
|
||||
|
||||
binary.sources = [
|
||||
'sdk/amxxmodule.cpp',
|
||||
'amxx_api.cpp',
|
||||
'config_parser.cpp',
|
||||
'hook_callbacks.cpp',
|
||||
'hook_native.cpp',
|
||||
'srvcmd.cpp',
|
||||
'call_funcs.cpp',
|
||||
'hook_create.cpp',
|
||||
'DataHandler.cpp',
|
||||
'pdata.cpp',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
48
dlls/mysqlx/AMBuilder
Normal file
48
dlls/mysqlx/AMBuilder
Normal file
@ -0,0 +1,48 @@
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os.path
|
||||
|
||||
if AMXX.mysql_path:
|
||||
binary = AMXX.MetaModule(builder, 'mysql')
|
||||
|
||||
binary.compiler.cxxincludes += [
|
||||
os.path.join(AMXX.mysql_path, 'include'),
|
||||
os.path.join(builder.currentSourcePath, 'mysql'),
|
||||
os.path.join(builder.currentSourcePath, 'thread'),
|
||||
]
|
||||
|
||||
binary.compiler.defines += [
|
||||
'SM_DEFAULT_THREADER',
|
||||
'stricmp=strcasecmp',
|
||||
]
|
||||
|
||||
if builder.target_platform is 'linux' or builder.target_platform is 'mac':
|
||||
binary.compiler.postlink += [
|
||||
os.path.join(AMXX.mysql_path, 'lib', 'libmysqlclient_r.a'),
|
||||
'-lz',
|
||||
'-lpthread',
|
||||
'-lm'
|
||||
]
|
||||
elif builder.target_platform is 'windows':
|
||||
binary.compiler.postlink += [
|
||||
os.path.join(AMXX.mysql_path, 'lib', 'opt', 'mysqlclient.lib'),
|
||||
os.path.join(AMXX.mysql_path, 'lib', 'opt', 'zlib.lib'),
|
||||
'wsock32.lib'
|
||||
]
|
||||
|
||||
binary.sources = [
|
||||
'basic_sql.cpp',
|
||||
'handles.cpp',
|
||||
'module.cpp',
|
||||
'threading.cpp',
|
||||
'sdk/amxxmodule.cpp',
|
||||
'oldcompat_sql.cpp',
|
||||
'thread/BaseWorker.cpp',
|
||||
'thread/ThreadWorker.cpp',
|
||||
'thread/PosixThreads.cpp',
|
||||
'mysql/MysqlQuery.cpp',
|
||||
'mysql/MysqlResultSet.cpp',
|
||||
'mysql/MysqlDatabase.cpp',
|
||||
'mysql/MysqlDriver.cpp',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
25
dlls/ns/AMBuilder
Normal file
25
dlls/ns/AMBuilder
Normal file
@ -0,0 +1,25 @@
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os.path
|
||||
|
||||
binary = AMXX.MetaModule(builder, 'ns')
|
||||
|
||||
binary.sources = [
|
||||
'sdk/amxxmodule.cpp',
|
||||
'dllapi.cpp',
|
||||
'utils.cpp',
|
||||
'amxxapi.cpp',
|
||||
'engineapi.cpp',
|
||||
'TitleManager.cpp',
|
||||
'ParticleManager.cpp',
|
||||
'MessageHandler.cpp',
|
||||
'GameManager.cpp',
|
||||
'natives/general.cpp',
|
||||
'natives/player.cpp',
|
||||
'natives/player_memory.cpp',
|
||||
'natives/structure.cpp',
|
||||
'natives/weapons.cpp',
|
||||
'natives/particles.cpp',
|
||||
'natives/memberfuncs.cpp',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
14
dlls/nvault/AMBuilder
Normal file
14
dlls/nvault/AMBuilder
Normal file
@ -0,0 +1,14 @@
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os.path
|
||||
|
||||
binary = AMXX.Module(builder, 'nvault')
|
||||
|
||||
binary.sources = [
|
||||
'sdk/amxxmodule.cpp',
|
||||
'amxxapi.cpp',
|
||||
'Binary.cpp',
|
||||
'Journal.cpp',
|
||||
'NVault.cpp',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
19
dlls/regex/AMBuilder
Normal file
19
dlls/regex/AMBuilder
Normal file
@ -0,0 +1,19 @@
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os.path
|
||||
|
||||
binary = AMXX.Module(builder, 'regex')
|
||||
|
||||
if builder.target_platform == 'linux':
|
||||
binary.compiler.postlink += [binary.Dep('lib_linux/libpcre.a')]
|
||||
elif builder.target_platform == 'mac':
|
||||
binary.compiler.postlink += [binary.Dep('lib_darwin/libpcre.a')]
|
||||
elif builder.target_platform == 'windows':
|
||||
binary.compiler.postlink += [binary.Dep('lib_win\\pcre.lib')]
|
||||
|
||||
binary.sources = [
|
||||
'sdk/amxxmodule.cpp',
|
||||
'module.cpp',
|
||||
'CRegEx.cpp',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
11
dlls/sockets/AMBuilder
Normal file
11
dlls/sockets/AMBuilder
Normal file
@ -0,0 +1,11 @@
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os.path
|
||||
|
||||
binary = AMXX.Module(builder, 'sockets')
|
||||
|
||||
binary.sources = [
|
||||
'sdk/amxxmodule.cpp',
|
||||
'sockets.cpp',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
74
dlls/sqlite/AMBuilder
Normal file
74
dlls/sqlite/AMBuilder
Normal file
@ -0,0 +1,74 @@
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os.path
|
||||
|
||||
binary = AMXX.MetaModule(builder, 'sqlite')
|
||||
binary.compiler.cxxincludes += [
|
||||
os.path.join(builder.currentSourcePath, 'sqlitepp'),
|
||||
os.path.join(builder.currentSourcePath, 'thread'),
|
||||
]
|
||||
binary.compiler.defines += [
|
||||
'SM_DEFAULT_THREADER',
|
||||
'stricmp=strcasecmp',
|
||||
]
|
||||
|
||||
if builder.target_platform == 'linux':
|
||||
binary.compiler.postlink += ['-lpthread']
|
||||
|
||||
binary.sources = [
|
||||
'basic_sql.cpp',
|
||||
'handles.cpp',
|
||||
'module.cpp',
|
||||
'threading.cpp',
|
||||
'sdk/amxxmodule.cpp',
|
||||
'oldcompat_sql.cpp',
|
||||
'thread/BaseWorker.cpp',
|
||||
'thread/ThreadWorker.cpp',
|
||||
'thread/PosixThreads.cpp',
|
||||
'sqlitepp/SqliteQuery.cpp',
|
||||
'sqlitepp/SqliteResultSet.cpp',
|
||||
'sqlitepp/SqliteDatabase.cpp',
|
||||
'sqlitepp/SqliteDriver.cpp',
|
||||
'sqlite-source/alter.c',
|
||||
'sqlite-source/analyze.c',
|
||||
'sqlite-source/attach.c',
|
||||
'sqlite-source/auth.c',
|
||||
'sqlite-source/btree.c',
|
||||
'sqlite-source/build.c',
|
||||
'sqlite-source/callback.c',
|
||||
'sqlite-source/complete.c',
|
||||
'sqlite-source/date.c',
|
||||
'sqlite-source/delete.c',
|
||||
'sqlite-source/expr.c',
|
||||
'sqlite-source/func.c',
|
||||
'sqlite-source/hash.c',
|
||||
'sqlite-source/insert.c',
|
||||
'sqlite-source/legacy.c',
|
||||
'sqlite-source/loadext.c',
|
||||
'sqlite-source/main.c',
|
||||
'sqlite-source/opcodes.c',
|
||||
'sqlite-source/os.c',
|
||||
'sqlite-source/os_unix.c',
|
||||
'sqlite-source/pager.c',
|
||||
'sqlite-source/parse.c',
|
||||
'sqlite-source/pragma.c',
|
||||
'sqlite-source/prepare.c',
|
||||
'sqlite-source/printf.c',
|
||||
'sqlite-source/random.c',
|
||||
'sqlite-source/select.c',
|
||||
'sqlite-source/table.c',
|
||||
'sqlite-source/tokenize.c',
|
||||
'sqlite-source/trigger.c',
|
||||
'sqlite-source/update.c',
|
||||
'sqlite-source/utf.c',
|
||||
'sqlite-source/util.c',
|
||||
'sqlite-source/vacuum.c',
|
||||
'sqlite-source/vdbe.c',
|
||||
'sqlite-source/vdbeapi.c',
|
||||
'sqlite-source/vdbeaux.c',
|
||||
'sqlite-source/vdbefifo.c',
|
||||
'sqlite-source/vdbemem.c',
|
||||
'sqlite-source/vtab.c',
|
||||
'sqlite-source/where.c',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
17
dlls/tfcx/AMBuilder
Normal file
17
dlls/tfcx/AMBuilder
Normal file
@ -0,0 +1,17 @@
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os.path
|
||||
|
||||
binary = AMXX.MetaModule(builder, 'tfcx')
|
||||
|
||||
binary.sources = [
|
||||
'sdk/amxxmodule.cpp',
|
||||
'CRank.cpp',
|
||||
'CMisc.cpp',
|
||||
'NBase.cpp',
|
||||
'NRank.cpp',
|
||||
'usermsg.cpp',
|
||||
'Utils.cpp',
|
||||
'moduleconfig.cpp',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
10
dlls/ts/tsfun/AMBuilder
Normal file
10
dlls/ts/tsfun/AMBuilder
Normal file
@ -0,0 +1,10 @@
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os.path
|
||||
|
||||
binary = AMXX.MetaModule(builder, 'tsfun')
|
||||
|
||||
binary.sources = [
|
||||
'sdk/amxxmodule.cpp',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
17
dlls/ts/tsx/AMBuilder
Normal file
17
dlls/ts/tsx/AMBuilder
Normal file
@ -0,0 +1,17 @@
|
||||
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
||||
import os.path
|
||||
|
||||
binary = AMXX.MetaModule(builder, 'tsx')
|
||||
|
||||
binary.sources = [
|
||||
'sdk/amxxmodule.cpp',
|
||||
'CMisc.cpp',
|
||||
'CRank.cpp',
|
||||
'NBase.cpp',
|
||||
'NRank.cpp',
|
||||
'Utils.cpp',
|
||||
'moduleconfig.cpp',
|
||||
'usermsg.cpp',
|
||||
]
|
||||
|
||||
AMXX.modules += [builder.Add(binary)]
|
Reference in New Issue
Block a user