mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-07 18:38:37 +00:00
39 lines
1.7 KiB
Python
39 lines
1.7 KiB
Python
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
|
import os
|
|
|
|
for arch in SM.archs:
|
|
binary = SM.ExtLibrary(builder, 'dhooks.ext', arch)
|
|
binary.compiler.cxxincludes += [
|
|
os.path.join(builder.currentSourcePath),
|
|
os.path.join(SM.mms_root, 'core'),
|
|
os.path.join(SM.mms_root, 'core', 'sourcehook'),
|
|
os.path.join(builder.sourcePath, 'public'),
|
|
os.path.join(builder.sourcePath, 'public', 'extensions'),
|
|
os.path.join(builder.sourcePath, 'public', 'sourcepawn'),
|
|
os.path.join(builder.sourcePath, 'public', 'amtl'),
|
|
os.path.join(builder.sourcePath, 'sourcepawn', 'include'),
|
|
os.path.join(builder.sourcePath, 'public', 'jit'),
|
|
os.path.join(builder.sourcePath, 'public', 'jit', 'x86'),
|
|
os.path.join(builder.sourcePath, 'sourcepawn', 'vm'),
|
|
os.path.join(builder.sourcePath, 'sourcepawn', 'vm', 'x86'),
|
|
os.path.join(builder.sourcePath, 'public', 'amtl', 'include'),
|
|
os.path.join(builder.sourcePath, 'public', 'amtl', 'amtl'),
|
|
]
|
|
binary.compiler.defines += ['META_NO_HL2SDK']
|
|
binary.sources += [
|
|
'extension.cpp',
|
|
'listeners.cpp',
|
|
'natives.cpp',
|
|
'vhook.cpp',
|
|
'util.cpp',
|
|
os.path.join(builder.sourcePath, 'public', 'smsdk_ext.cpp'),
|
|
]
|
|
|
|
if os.path.isfile(os.path.join(builder.sourcePath, 'sourcepawn', 'vm', 'x86', 'assembler-x86.cpp')):
|
|
binary.sources += [os.path.join(builder.sourcePath, 'sourcepawn', 'vm', 'x86', 'assembler-x86.cpp'),]
|
|
elif os.path.isfile(os.path.join(builder.sourcePath, 'public', 'jit', 'x86', 'assembler-x86.cpp')):
|
|
binary.sources += [os.path.join(builder.sourcePath, 'public', 'jit', 'x86', 'assembler-x86.cpp'),]
|
|
else:
|
|
raise Exception('Could not find assembler-x86.cpp. Did you checkout SourceMod\'s submodules?')
|
|
|
|
SM.extensions += [builder.Add(binary)] |