2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-01 01:25:38 +03:00

Enable useGcc gradle option for dedicated project.

This commit is contained in:
Lev 2017-03-11 18:13:07 +05:00
parent 08825fdf0d
commit fd8e550f0d

View File

@ -10,6 +10,7 @@ import org.gradle.nativeplatform.NativeExecutableBinarySpec
apply plugin: 'cpp' apply plugin: 'cpp'
apply plugin: 'windows-resources' apply plugin: 'windows-resources'
apply plugin: IccCompilerPlugin apply plugin: IccCompilerPlugin
apply plugin: GccCompilerPlugin
List<Task> getRcCompileTasks(NativeBinarySpec binary) List<Task> getRcCompileTasks(NativeBinarySpec binary)
{ {
@ -70,9 +71,11 @@ model {
} }
toolChains { toolChains {
visualCpp(VisualCpp) { visualCpp(VisualCpp)
} if (project.hasProperty("useGcc")) {
icc(Icc) { gcc(Gcc)
} else {
icc(Icc)
} }
} }