Add version.rc in AMBuilder for all modules

This commit is contained in:
Arkshine 2014-12-08 01:44:27 +01:00
parent 291a33ce65
commit f5e23903a2
18 changed files with 58 additions and 4 deletions

View File

@ -6,7 +6,7 @@ binary = AMXX.MetaModule(builder, 'cstrike')
binary.compiler.defines += [
'HAVE_STDINT_H',
]
binary.sources = [
'../../../public/sdk/amxxmodule.cpp',
'amxx_api.cpp',
@ -19,4 +19,7 @@ binary.sources = [
'../../../public/memtools/CDetour/asm/asm.c',
]
if builder.target_platform == 'windows':
binary.sources += ['version.rc']
AMXX.modules += [builder.Add(binary)]

View File

@ -12,4 +12,7 @@ binary.sources = [
'usermsg.cpp',
]
if builder.target_platform == 'windows':
binary.sources += ['version.rc']
AMXX.modules += [builder.Add(binary)]

View File

@ -13,4 +13,7 @@ binary.sources = [
'moduleconfig.cpp',
]
if builder.target_platform == 'windows':
binary.sources += ['version.rc']
AMXX.modules += [builder.Add(binary)]

View File

@ -14,4 +14,7 @@ binary.sources = [
'moduleconfig.cpp',
]
if builder.target_platform == 'windows':
binary.sources += ['version.rc']
AMXX.modules += [builder.Add(binary)]

View File

@ -6,7 +6,7 @@ binary = AMXX.MetaModule(builder, 'engine')
binary.compiler.defines += [
'HAVE_STDINT_H',
]
binary.sources = [
'../../public/sdk/amxxmodule.cpp',
'amxxapi.cpp',
@ -15,5 +15,8 @@ binary.sources = [
'globals.cpp',
'forwards.cpp',
]
if builder.target_platform == 'windows':
binary.sources += ['version.rc']
AMXX.modules += [builder.Add(binary)]

View File

@ -21,4 +21,7 @@ binary.sources = [
'misc.cpp',
]
if builder.target_platform == 'windows':
binary.sources += ['version.rc']
AMXX.modules += [builder.Add(binary)]

View File

@ -2,10 +2,13 @@
import os.path
binary = AMXX.MetaModule(builder, 'fun')
binary.sources = [
'../../public/sdk/amxxmodule.cpp',
'fun.cpp',
]
if builder.target_platform == 'windows':
binary.sources += ['version.rc']
AMXX.modules += [builder.Add(binary)]

View File

@ -15,6 +15,9 @@ binary.sources = [
'geoip_util.cpp',
]
if builder.target_platform == 'windows':
binary.sources += ['version.rc']
if builder.target_platform == 'windows':
binary.compiler.postlink += ['ws2_32.lib']
binary.compiler.includes += [os.path.join(builder.sourcePath, 'dlls', 'geoip', 'GeoIP2')]

View File

@ -21,4 +21,7 @@ binary.sources = [
'hook_specialbot.cpp',
]
if builder.target_platform == 'windows':
binary.sources += ['version.rc']
AMXX.modules += [builder.Add(binary)]

View File

@ -45,6 +45,9 @@ if AMXX.mysql_path:
'mysql/MysqlDriver.cpp',
]
if builder.target_platform == 'windows':
binary.sources += ['version.rc']
if builder.target_platform == 'windows':
binary.sources += [
'thread/WinThreads.cpp',

View File

@ -26,4 +26,7 @@ binary.sources = [
'natives/memberfuncs.cpp',
]
if builder.target_platform == 'windows':
binary.sources += ['version.rc']
AMXX.modules += [builder.Add(binary)]

View File

@ -15,4 +15,7 @@ binary.sources = [
'NVault.cpp',
]
if builder.target_platform == 'windows':
binary.sources += ['version.rc']
AMXX.modules += [builder.Add(binary)]

View File

@ -14,6 +14,7 @@ binary.compiler.defines += [
'PCRE_STATIC',
'HAVE_STDINT_H',
]
binary.sources = [
'../../public/sdk/amxxmodule.cpp',
'module.cpp',
@ -21,4 +22,7 @@ binary.sources = [
'utils.cpp',
]
if builder.target_platform == 'windows':
binary.sources += ['version.rc']
AMXX.modules += [builder.Add(binary)]

View File

@ -8,6 +8,9 @@ binary.sources = [
'sockets.cpp',
]
if builder.target_platform == 'windows':
binary.sources += ['version.rc']
if builder.target_platform == 'windows':
binary.compiler.postlink += ['wsock32.lib', 'ws2_32.lib']

View File

@ -82,5 +82,7 @@ else:
'sqlite-source/os_unix.c',
]
if builder.target_platform == 'windows':
binary.sources += ['version.rc']
AMXX.modules += [builder.Add(binary)]

View File

@ -14,4 +14,7 @@ binary.sources = [
'moduleconfig.cpp',
]
if builder.target_platform == 'windows':
binary.sources += ['version.rc']
AMXX.modules += [builder.Add(binary)]

View File

@ -7,4 +7,7 @@ binary.sources = [
'../../../public/sdk/amxxmodule.cpp',
]
if builder.target_platform == 'windows':
binary.sources += ['version.rc']
AMXX.modules += [builder.Add(binary)]

View File

@ -14,4 +14,7 @@ binary.sources = [
'usermsg.cpp',
]
if builder.target_platform == 'windows':
binary.sources += ['version.rc']
AMXX.modules += [builder.Add(binary)]