src/AMBuild.library
author David Anderson <dvander@alliedmods.net>
Sun Jul 29 02:17:11 2012 -0700 (2012-07-29)
changeset 124 0d7ac9ba25c2
parent 103 819a8e016990
child 168 4d0fff61d65e
permissions -rw-r--r--
Allow void to compare to void.
     1 # vim: set ts=2 sw=2 tw=99 noet ft=python: 
     2 # 
     3 # Copyright (C) 2004-2012 David Anderson
     4 # 
     5 # This file is part of SourcePawn.
     6 # 
     7 # SourcePawn is free software: you can redistribute it and/or modify it under
     8 # the terms of the GNU General Public License as published by the Free
     9 # Software Foundation, either version 3 of the License, or (at your option)
    10 # any later version.
    11 # 
    12 # SourcePawn is distributed in the hope that it will be useful, but WITHOUT ANY
    13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    14 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
    15 # 
    16 # You should have received a copy of the GNU General Public License along with
    17 # SourcePawn. If not, see http://www.gnu.org/licenses/.
    18 #
    19 import os
    20 
    21 compiler = KE.DefaultCompiler()
    22 base = AMBuild.sourceFolder
    23 
    24 compiler['CXXINCLUDES'].append(os.path.join(base, 'include'))
    25 
    26 job = AMBuild.AddJob('keima')
    27 library = Cpp.StaticLibraryBuilder('keima', AMBuild, job, compiler)
    28 files = [
    29 	'API.cpp',
    30 	'Array.cpp',
    31 	'BytecodeCompiler.cpp',
    32 	'BytecodeEmitter.cpp',
    33 	'CompileContext.cpp',
    34 	'Environments.cpp',
    35 	'Exception.cpp',
    36 	'FixedArray.cpp',
    37 	'Functions.cpp',
    38 	'GlobalRoots.cpp',
    39 	'Heap.cpp',
    40 	'Interpreter.cpp',
    41 	'Modules.cpp',
    42 	'NameBinding.cpp',
    43 	'Opcodes.cpp',
    44 	'Parser.cpp',
    45 	'PoolAllocator.cpp',
    46 	'Reference.cpp',
    47 	'RootScopes.cpp',
    48 	'Scanner.cpp',
    49 	'Scopes.cpp',
    50 	'SemanticAnalysis.cpp',
    51 	'Spaces.cpp',
    52 	'Stack.cpp',
    53 	'StringPool.cpp',
    54 	'Strings.cpp',
    55 	'Structures.cpp',
    56 	'TypeManager.cpp',
    57 	'Types.cpp',
    58 	'Zone.cpp'
    59 ]
    60 if AMBuild.target['platform'] == 'windows':
    61 	files.append('Platform-Windows.cpp')
    62 else:
    63 	files.append('Platform-Posix.cpp')
    64 library.AddSourceFiles('src', files)
    65 library.SendToJob()
    66