Edit Gradle: added defined CSTRIKE

This commit is contained in:
s1lentq 2015-12-27 15:06:24 +06:00
parent 9416463508
commit 5a4dfb0c3c

View File

@ -170,6 +170,7 @@ void setupToolchain(NativeBinarySpec b)
'_vsnprintf': 'vsnprintf', '_vsnprintf': 'vsnprintf',
'_write' : 'write', '_write' : 'write',
'_close' : 'close', '_close' : 'close',
'_vsnwprintf' : 'vsnwprintf'
]) ])
cfg.linkerOptions.args '-no-opt-class-analysis' cfg.linkerOptions.args '-no-opt-class-analysis'
@ -182,12 +183,16 @@ void setupToolchain(NativeBinarySpec b)
cfg.linkerOptions.definitionFile = "${projectDir}\\msvc\\mp.def"; cfg.linkerOptions.definitionFile = "${projectDir}\\msvc\\mp.def";
} }
if (!unitTestExecutable && !mpLib) if (!unitTestExecutable)
{ {
cfg.singleDefines 'HOOK_GAMEDLL', 'CSTRIKE' cfg.singleDefines 'CSTRIKE'
}
if (unitTestExecutable) if (!mpLib)
{
cfg.singleDefines 'HOOK_GAMEDLL'
}
}
else
{ {
cfg.singleDefines 'REGAMEDLL_UNIT_TESTS' cfg.singleDefines 'REGAMEDLL_UNIT_TESTS'
} }