mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
922b4802f1
Former-commit-id: 9af9b5f205
33 lines
816 B
Python
33 lines
816 B
Python
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
|
import os.path
|
|
|
|
binary = AMXX.Program(builder, 'amxxpc')
|
|
|
|
binary.compiler.defines += [
|
|
'AMX_ANSIONLY',
|
|
]
|
|
|
|
if builder.target_platform != 'windows':
|
|
binary.compiler.cxxflags.remove('-fno-exceptions')
|
|
|
|
if builder.target_platform == 'linux':
|
|
binary.compiler.postlink += [
|
|
'-ldl',
|
|
binary.Dep('libz.a'),
|
|
]
|
|
elif builder.target_platform == 'mac':
|
|
binary.compiler.postlink += [binary.Dep('libz-darwin.a')]
|
|
elif builder.target_platform == 'windows':
|
|
binary.compiler.defines += ['_MBCS']
|
|
binary.compiler.linkflags += [binary.Dep('zlib.lib')]
|
|
binary.compiler.linkflags.remove('/SUBSYSTEM:WINDOWS')
|
|
binary.compiler.linkflags.append('/SUBSYSTEM:CONSOLE')
|
|
|
|
binary.sources = [
|
|
'amx.cpp',
|
|
'amxxpc.cpp',
|
|
'Binary.cpp',
|
|
]
|
|
|
|
AMXX.amxxpc = builder.Add(binary)
|