sourcepawn/jit/AMBuilder
author David Anderson <dvander@alliedmods.net>
Mon Dec 30 17:50:56 2013 -0500 (2013-12-30)
changeset 4182 8ef93b2feddf
parent 4116 3e58428d988f
child 4241 46fdb8cd9883
permissions -rw-r--r--
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:
     2 import os
     3 
     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'),
    15 ]
    16 
    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']
    21 
    22 binary.sources += [
    23   'BaseRuntime.cpp',
    24   'engine2.cpp',
    25   'dll_exports.cpp',
    26   'jit_function.cpp',
    27   'sp_vm_basecontext.cpp',
    28   'sp_vm_engine.cpp',
    29   'sp_vm_function.cpp',
    30   'opcodes.cpp',
    31   'interpreter.cpp',
    32   'watchdog_timer.cpp',
    33   'x86/jit_x86.cpp',
    34   'zlib/adler32.c',
    35   'zlib/compress.c',
    36   'zlib/crc32.c',
    37   'zlib/deflate.c',
    38   'zlib/gzio.c',
    39   'zlib/infback.c',
    40   'zlib/inffast.c',
    41   'zlib/inflate.c',
    42   'zlib/inftrees.c',
    43   'zlib/trees.c',
    44   'zlib/uncompr.c',
    45   'zlib/zutil.c',
    46   'md5/md5.cpp',
    47   '../../knight/shared/KeCodeAllocator.cpp',
    48   '../../public/jit/x86/assembler-x86.cpp',
    49 ]
    50 SM.binaries += [builder.Add(binary)]