mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
Adds compile task (#118)
This commit is contained in:
committed by
Peter Johnson
parent
882399c65e
commit
1077ef9fb7
12
build.gradle
12
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
|
||||
|
||||
Reference in New Issue
Block a user