Add a cpp dev run task. (#17)

This commit is contained in:
Thad House
2017-08-12 23:51:25 -07:00
committed by Peter Johnson
parent 5439fe7b16
commit 9f5f6111d4

View File

@@ -109,6 +109,26 @@ model {
}
}
}
tasks {
def c = $.components
project.tasks.create('runCpp', Exec) {
def found = false
c.each {
if (it in NativeExecutableSpec && it.name == 'wpiutilDev') {
it.binaries.each {
if (!found) {
def arch = it.targetPlatform.architecture.name
if (arch == 'x86-64' || arch == 'x86') {
dependsOn it.tasks.install
commandLine it.tasks.install.runScript
found = true
}
}
}
}
}
}
}
}
apply from: 'publish.gradle'