Port simple C++ build scripts to AMBuild 2 (
bug 5997 part 1, r=ds).
1 # vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
4 binary = SM.Library(builder, 'sourcepawn.jit.x86')
5 binary.compiler.includes += [
6 os.path.join(SM.mms_root, 'core', 'sourcehook'),
7 os.path.join(builder.sourcePath, 'sourcepawn', 'jit'),
8 os.path.join(builder.sourcePath, 'sourcepawn', 'jit', 'x86'),
9 os.path.join(builder.sourcePath, 'public'),
10 os.path.join(builder.sourcePath, 'public', 'sourcepawn'),
11 os.path.join(builder.sourcePath, 'public', 'amtl'),
12 os.path.join(builder.sourcePath, 'public', 'jit'),
13 os.path.join(builder.sourcePath, 'public', 'jit', 'x86'),
14 os.path.join(builder.sourcePath, 'knight', 'shared'),
17 if builder.target_platform is 'linux':
18 binary.compiler.postlink += ['-lpthread', '-lrt']
19 elif builder.target_platform is 'darwin':
20 binary.compiler.postlink += ['-lpthread', '-ldl']
27 'sp_vm_basecontext.cpp',
47 '../../knight/shared/KeCodeAllocator.cpp',
48 '../../public/jit/x86/assembler-x86.cpp',
50 SM.binaries += [builder.Add(binary)]