core/logic/AMBuilder
author Nicholas Hastings <skamonkey@gmail.com>
Wed May 21 17:25:30 2014 -0400 (2014-05-21)
changeset 4377 7a44be5b7162
parent 4182 8ef93b2feddf
permissions -rw-r--r--
Trigger build for hl2sdk-l4d changes.
     1 # vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
     2 import os
     3 
     4 binary = SM.Library(builder, 'sourcemod.logic')
     5 binary.compiler.cxxincludes += [
     6   os.path.join(builder.sourcePath, 'core', 'logic'),
     7   os.path.join(builder.sourcePath, 'public'),
     8   os.path.join(builder.sourcePath, 'public', 'sourcepawn'),
     9   os.path.join(builder.sourcePath, 'public', 'amtl'),
    10   os.path.join(SM.mms_root, 'core', 'sourcehook')
    11 ]
    12 binary.compiler.defines += [
    13   'SM_DEFAULT_THREADER',
    14   'SM_LOGIC'
    15 ]
    16   
    17 if builder.target_platform == 'linux':
    18   binary.compiler.postlink += ['-lpthread', '-lrt']
    19 elif builder.target_platform == 'mac':
    20   binary.compiler.cflags += ['-Wno-deprecated-declarations']
    21   binary.compiler.postlink += ['-framework', 'CoreServices']
    22 binary.sources += [
    23   'common_logic.cpp',
    24   'smn_adt_array.cpp',
    25   'smn_sorting.cpp',
    26   'smn_maplists.cpp',
    27   'ADTFactory.cpp',
    28   'smn_adt_stack.cpp',
    29   'thread/ThreadWorker.cpp',
    30   'thread/BaseWorker.cpp',
    31   'ThreadSupport.cpp',
    32   'smn_float.cpp',
    33   'TextParsers.cpp',
    34   'smn_textparse.cpp',
    35   'smn_adt_trie.cpp',
    36   'Profiler.cpp',
    37   'smn_functions.cpp',
    38   'smn_timers.cpp',
    39   'smn_players.cpp',
    40   'MemoryUtils.cpp',
    41   'smn_admin.cpp',
    42   'smn_banning.cpp',
    43   'smn_filesystem.cpp',
    44   'stringutil.cpp',
    45   'Translator.cpp',
    46   'PhraseCollection.cpp',
    47   'smn_lang.cpp',
    48   'smn_string.cpp',
    49   'smn_handles.cpp',
    50   'smn_datapacks.cpp',
    51   'smn_gameconfigs.cpp',
    52   'smn_fakenatives.cpp',
    53   'GameConfigs.cpp',
    54   'sm_crc32.cpp',
    55   'smn_profiler.cpp',
    56   'ShareSys.cpp',
    57   'PluginSys.cpp',
    58   'HandleSys.cpp',
    59   'NativeOwner.cpp',
    60   'NativeInvoker.cpp',
    61   'ExtensionSys.cpp',
    62   'DebugReporter.cpp',
    63   'Database.cpp',
    64   'smn_database.cpp',
    65   'ForwardSys.cpp',
    66 ]
    67 if builder.target_platform == 'windows':
    68   binary.sources += ['thread/WinThreads.cpp']
    69 else:
    70   binary.sources += ['thread/PosixThreads.cpp']
    71 
    72 SM.binaries += [builder.Add(binary)]