mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-14 15:48:01 +03:00
Edit Gradle: added defined CSTRIKE
This commit is contained in:
parent
9416463508
commit
5a4dfb0c3c
@ -170,6 +170,7 @@ void setupToolchain(NativeBinarySpec b)
|
||||
'_vsnprintf': 'vsnprintf',
|
||||
'_write' : 'write',
|
||||
'_close' : 'close',
|
||||
'_vsnwprintf' : 'vsnwprintf'
|
||||
])
|
||||
|
||||
cfg.linkerOptions.args '-no-opt-class-analysis'
|
||||
@ -182,12 +183,16 @@ void setupToolchain(NativeBinarySpec b)
|
||||
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'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user