Adds compile task (#118)

This commit is contained in:
Thad House
2018-02-04 22:41:28 -08:00
committed by Peter Johnson
parent 882399c65e
commit 1077ef9fb7

View File

@@ -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