Further split out C++ Gradle targets to make life easier for people without a C++ build environment

Original commit: elastic/x-pack-elasticsearch@eeca100a3b
This commit is contained in:
David Roberts 2016-09-19 14:36:40 +01:00
parent c0b1ac948c
commit 1b667b2584
1 changed files with 5 additions and 3 deletions

View File

@ -5,17 +5,17 @@ import org.gradle.internal.os.OperatingSystem
project.ext.make = OperatingSystem.current().isLinux() ? "make" : "gnumake"
project.ext.numCpus = Runtime.runtime.availableProcessors()
task clean(type: Exec) {
task cppclean(type: Exec) {
commandLine make
args 'clean'
}
task objcompile(type: Exec) {
task cppobjcompile(type: Exec) {
commandLine make
args '-j' + numCpus, 'objcompile'
}
task make(type: Exec) {
task cppmake(type: Exec) {
commandLine make
args '-j' + numCpus
}
@ -29,6 +29,8 @@ subprojects {
apply plugin: 'maven'
apply plugin: 'java'
compileJava.options.encoding = 'UTF-8'
group = 'com.prelert'
version = '2.1.1'
sourceCompatibility = 1.8