2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-29 08:05:50 +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: 'windows-resources'
apply plugin: IccCompilerPlugin
apply plugin: GccCompilerPlugin
List<Task> getRcCompileTasks(NativeBinarySpec binary)
{
@ -70,9 +71,11 @@ model {
}
toolChains {
visualCpp(VisualCpp) {
}
icc(Icc) {
visualCpp(VisualCpp)
if (project.hasProperty("useGcc")) {
gcc(Gcc)
} else {
icc(Icc)
}
}