From f5e23903a2ff5d8e09a146cbaca52b91a615f3fd Mon Sep 17 00:00:00 2001 From: Arkshine Date: Mon, 8 Dec 2014 01:44:27 +0100 Subject: [PATCH] Add version.rc in AMBuilder for all modules --- dlls/cstrike/cstrike/AMBuilder | 5 ++++- dlls/cstrike/csx/AMBuilder | 3 +++ dlls/dod/dodfun/AMBuilder | 3 +++ dlls/dod/dodx/AMBuilder | 3 +++ dlls/engine/AMBuilder | 7 +++++-- dlls/fakemeta/AMBuilder | 3 +++ dlls/fun/AMBuilder | 5 ++++- dlls/geoip/AMBuilder | 3 +++ dlls/hamsandwich/AMBuilder | 3 +++ dlls/mysqlx/AMBuilder | 3 +++ dlls/ns/AMBuilder | 3 +++ dlls/nvault/AMBuilder | 3 +++ dlls/regex/AMBuilder | 4 ++++ dlls/sockets/AMBuilder | 3 +++ dlls/sqlite/AMBuilder | 2 ++ dlls/tfcx/AMBuilder | 3 +++ dlls/ts/tsfun/AMBuilder | 3 +++ dlls/ts/tsx/AMBuilder | 3 +++ 18 files changed, 58 insertions(+), 4 deletions(-) diff --git a/dlls/cstrike/cstrike/AMBuilder b/dlls/cstrike/cstrike/AMBuilder index 9910b69e..aaffd58f 100644 --- a/dlls/cstrike/cstrike/AMBuilder +++ b/dlls/cstrike/cstrike/AMBuilder @@ -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)] diff --git a/dlls/cstrike/csx/AMBuilder b/dlls/cstrike/csx/AMBuilder index 6e9925f5..c4f76d57 100644 --- a/dlls/cstrike/csx/AMBuilder +++ b/dlls/cstrike/csx/AMBuilder @@ -12,4 +12,7 @@ binary.sources = [ 'usermsg.cpp', ] +if builder.target_platform == 'windows': + binary.sources += ['version.rc'] + AMXX.modules += [builder.Add(binary)] diff --git a/dlls/dod/dodfun/AMBuilder b/dlls/dod/dodfun/AMBuilder index 1617ce21..ed9bbb00 100644 --- a/dlls/dod/dodfun/AMBuilder +++ b/dlls/dod/dodfun/AMBuilder @@ -13,4 +13,7 @@ binary.sources = [ 'moduleconfig.cpp', ] +if builder.target_platform == 'windows': + binary.sources += ['version.rc'] + AMXX.modules += [builder.Add(binary)] diff --git a/dlls/dod/dodx/AMBuilder b/dlls/dod/dodx/AMBuilder index 67d9b368..5df82d46 100644 --- a/dlls/dod/dodx/AMBuilder +++ b/dlls/dod/dodx/AMBuilder @@ -14,4 +14,7 @@ binary.sources = [ 'moduleconfig.cpp', ] +if builder.target_platform == 'windows': + binary.sources += ['version.rc'] + AMXX.modules += [builder.Add(binary)] diff --git a/dlls/engine/AMBuilder b/dlls/engine/AMBuilder index efa278ae..e94a3797 100644 --- a/dlls/engine/AMBuilder +++ b/dlls/engine/AMBuilder @@ -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)] diff --git a/dlls/fakemeta/AMBuilder b/dlls/fakemeta/AMBuilder index 3d2a5552..bf6c495f 100644 --- a/dlls/fakemeta/AMBuilder +++ b/dlls/fakemeta/AMBuilder @@ -21,4 +21,7 @@ binary.sources = [ 'misc.cpp', ] +if builder.target_platform == 'windows': + binary.sources += ['version.rc'] + AMXX.modules += [builder.Add(binary)] diff --git a/dlls/fun/AMBuilder b/dlls/fun/AMBuilder index 25b16ff9..d7222b23 100644 --- a/dlls/fun/AMBuilder +++ b/dlls/fun/AMBuilder @@ -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)] diff --git a/dlls/geoip/AMBuilder b/dlls/geoip/AMBuilder index a7a86d98..6f76ef27 100644 --- a/dlls/geoip/AMBuilder +++ b/dlls/geoip/AMBuilder @@ -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')] diff --git a/dlls/hamsandwich/AMBuilder b/dlls/hamsandwich/AMBuilder index c6cd6409..29f5bc1c 100644 --- a/dlls/hamsandwich/AMBuilder +++ b/dlls/hamsandwich/AMBuilder @@ -21,4 +21,7 @@ binary.sources = [ 'hook_specialbot.cpp', ] +if builder.target_platform == 'windows': + binary.sources += ['version.rc'] + AMXX.modules += [builder.Add(binary)] diff --git a/dlls/mysqlx/AMBuilder b/dlls/mysqlx/AMBuilder index a8524830..3ec1305b 100644 --- a/dlls/mysqlx/AMBuilder +++ b/dlls/mysqlx/AMBuilder @@ -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', diff --git a/dlls/ns/AMBuilder b/dlls/ns/AMBuilder index 10498892..81130d8c 100644 --- a/dlls/ns/AMBuilder +++ b/dlls/ns/AMBuilder @@ -26,4 +26,7 @@ binary.sources = [ 'natives/memberfuncs.cpp', ] +if builder.target_platform == 'windows': + binary.sources += ['version.rc'] + AMXX.modules += [builder.Add(binary)] diff --git a/dlls/nvault/AMBuilder b/dlls/nvault/AMBuilder index 11685b90..52d3f012 100644 --- a/dlls/nvault/AMBuilder +++ b/dlls/nvault/AMBuilder @@ -15,4 +15,7 @@ binary.sources = [ 'NVault.cpp', ] +if builder.target_platform == 'windows': + binary.sources += ['version.rc'] + AMXX.modules += [builder.Add(binary)] diff --git a/dlls/regex/AMBuilder b/dlls/regex/AMBuilder index 0775e479..07a66fcf 100644 --- a/dlls/regex/AMBuilder +++ b/dlls/regex/AMBuilder @@ -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)] diff --git a/dlls/sockets/AMBuilder b/dlls/sockets/AMBuilder index 7ceb5c74..22a93d8d 100644 --- a/dlls/sockets/AMBuilder +++ b/dlls/sockets/AMBuilder @@ -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'] diff --git a/dlls/sqlite/AMBuilder b/dlls/sqlite/AMBuilder index 2c29b612..913860aa 100644 --- a/dlls/sqlite/AMBuilder +++ b/dlls/sqlite/AMBuilder @@ -82,5 +82,7 @@ else: 'sqlite-source/os_unix.c', ] +if builder.target_platform == 'windows': + binary.sources += ['version.rc'] AMXX.modules += [builder.Add(binary)] diff --git a/dlls/tfcx/AMBuilder b/dlls/tfcx/AMBuilder index 80e95188..c49e522e 100644 --- a/dlls/tfcx/AMBuilder +++ b/dlls/tfcx/AMBuilder @@ -14,4 +14,7 @@ binary.sources = [ 'moduleconfig.cpp', ] +if builder.target_platform == 'windows': + binary.sources += ['version.rc'] + AMXX.modules += [builder.Add(binary)] diff --git a/dlls/ts/tsfun/AMBuilder b/dlls/ts/tsfun/AMBuilder index 97d90a77..e2093512 100644 --- a/dlls/ts/tsfun/AMBuilder +++ b/dlls/ts/tsfun/AMBuilder @@ -7,4 +7,7 @@ binary.sources = [ '../../../public/sdk/amxxmodule.cpp', ] +if builder.target_platform == 'windows': + binary.sources += ['version.rc'] + AMXX.modules += [builder.Add(binary)] diff --git a/dlls/ts/tsx/AMBuilder b/dlls/ts/tsx/AMBuilder index 6b9945c4..c3df01fe 100644 --- a/dlls/ts/tsx/AMBuilder +++ b/dlls/ts/tsx/AMBuilder @@ -14,4 +14,7 @@ binary.sources = [ 'usermsg.cpp', ] +if builder.target_platform == 'windows': + binary.sources += ['version.rc'] + AMXX.modules += [builder.Add(binary)]