From 1077ef9fb75adcb9e768a2a418f3c504f212bad2 Mon Sep 17 00:00:00 2001 From: Thad House Date: Sun, 4 Feb 2018 22:41:28 -0800 Subject: [PATCH] Adds compile task (#118) --- build.gradle | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index afe731a9d9..cc990deec0 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,7 @@ buildscript { } } dependencies { - classpath 'gradle.plugin.edu.wpi.first:native-utils:1.5.1' + classpath 'gradle.plugin.edu.wpi.first:native-utils:1.5.2' classpath 'gradle.plugin.edu.wpi.first.wpilib.versioning:wpilib-version-plugin:2.0' } } @@ -232,6 +232,16 @@ model { } } tasks { + compileCpp(Task) { + $.binaries.each { binary -> + if (binary in NativeBinarySpec && binary.buildable) { + binary.tasks.withType(AbstractNativeSourceCompileTask) { task-> + it.dependsOn task + } + } + } + } + def c = $.components project.tasks.create('runCpp', Exec) { def found = false