From fd8e550f0d1ff39c0b775b37e4f812e6a76977a6 Mon Sep 17 00:00:00 2001 From: Lev Date: Sat, 11 Mar 2017 18:13:07 +0500 Subject: [PATCH] Enable useGcc gradle option for dedicated project. --- rehlds/dedicated/build.gradle | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/rehlds/dedicated/build.gradle b/rehlds/dedicated/build.gradle index 5f9cf42..8af0268 100644 --- a/rehlds/dedicated/build.gradle +++ b/rehlds/dedicated/build.gradle @@ -10,6 +10,7 @@ import org.gradle.nativeplatform.NativeExecutableBinarySpec apply plugin: 'cpp' apply plugin: 'windows-resources' apply plugin: IccCompilerPlugin +apply plugin: GccCompilerPlugin List getRcCompileTasks(NativeBinarySpec binary) { @@ -70,9 +71,11 @@ model { } toolChains { - visualCpp(VisualCpp) { - } - icc(Icc) { + visualCpp(VisualCpp) + if (project.hasProperty("useGcc")) { + gcc(Gcc) + } else { + icc(Icc) } }