From 5a4dfb0c3cb04a0e3b89e5d9b3e1889a04d96404 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Sun, 27 Dec 2015 15:06:24 +0600 Subject: [PATCH] Edit Gradle: added defined CSTRIKE --- regamedll/build.gradle | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/regamedll/build.gradle b/regamedll/build.gradle index 84407948..a8b10582 100644 --- a/regamedll/build.gradle +++ b/regamedll/build.gradle @@ -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' }