1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/sourcepawn/jit/AMBuilder Sun Aug 30 00:46:56 2009 -0700
1.3 @@ -0,0 +1,43 @@
1.4 +# vim: set ts=2 sw=2 tw=99 noet ft=python:
1.5 +import os
1.6 +
1.7 +compiler = SM.DefaultCompiler()
1.8 +base = AMBuild.sourceFolder
1.9 +compiler['CXXINCLUDES'].append(os.path.join(SM.mmsPath, 'core', 'sourcehook'))
1.10 +compiler['CXXINCLUDES'].append(os.path.join(base, 'sourcepawn', 'jit'))
1.11 +compiler['CXXINCLUDES'].append(os.path.join(base, 'sourcepawn', 'jit', 'x86'))
1.12 +compiler['CXXINCLUDES'].append(os.path.join(base, 'public'))
1.13 +compiler['CXXINCLUDES'].append(os.path.join(base, 'public', 'sourcepawn'))
1.14 +compiler['CXXINCLUDES'].append(os.path.join(base, 'public', 'jit'))
1.15 +compiler['CXXINCLUDES'].append(os.path.join(base, 'public', 'jit', 'x86'))
1.16 +compiler['CXXINCLUDES'].append(os.path.join(base, 'knight', 'shared'))
1.17 +
1.18 +extension = AMBuild.AddJob('sourcepawn.jit.x86')
1.19 +binary = Cpp.LibraryBuilder('sourcepawn.jit.x86', AMBuild, extension, compiler)
1.20 +binary.AddSourceFiles('sourcepawn/jit', [
1.21 + 'BaseRuntime.cpp',
1.22 + 'engine2.cpp',
1.23 + 'dll_exports.cpp',
1.24 + 'jit_function.cpp',
1.25 + 'sp_vm_basecontext.cpp',
1.26 + 'sp_vm_engine.cpp',
1.27 + 'sp_vm_function.cpp',
1.28 + 'x86/jit_x86.cpp',
1.29 + 'x86/opcode_helpers.cpp',
1.30 + 'zlib/adler32.c',
1.31 + 'zlib/compress.c',
1.32 + 'zlib/crc32.c',
1.33 + 'zlib/deflate.c',
1.34 + 'zlib/gzio.c',
1.35 + 'zlib/infback.c',
1.36 + 'zlib/inffast.c',
1.37 + 'zlib/inflate.c',
1.38 + 'zlib/inftrees.c',
1.39 + 'zlib/trees.c',
1.40 + 'zlib/uncompr.c',
1.41 + 'zlib/zutil.c',
1.42 + '../../knight/shared/KeCodeAllocator.cpp'
1.43 + ])
1.44 +SM.AutoVersion('sourcepawn/jit', binary)
1.45 +binary.SendToJob()
1.46 +