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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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