Switch from gradle 1.12 to 2.2.1
This commit is contained in:
parent
308e88fd21
commit
e3497dcf50
@ -110,7 +110,7 @@ task mergedSource(type: Copy){
|
|||||||
}
|
}
|
||||||
|
|
||||||
task wrapper(type: Wrapper, description: 'Creates and deploys the Gradle wrapper to the current directory.') {
|
task wrapper(type: Wrapper, description: 'Creates and deploys the Gradle wrapper to the current directory.') {
|
||||||
gradleVersion = '1.12'
|
gradleVersion = '2.2.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
String findNDK() {
|
String findNDK() {
|
||||||
|
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,6 +1,6 @@
|
|||||||
#Sun Sep 07 18:47:04 EDT 2014
|
#Mon Dec 01 20:04:11 EST 2014
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-bin.zip
|
||||||
|
@ -10,6 +10,32 @@ dependencies {
|
|||||||
compile project(':jme3-bullet')
|
compile project(':jme3-bullet')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Defines created C++ libraries
|
||||||
|
libraries {
|
||||||
|
bulletjme {
|
||||||
|
}
|
||||||
|
all {
|
||||||
|
binaries.all {
|
||||||
|
cppCompiler.args '-I', "${org.gradle.internal.jvm.Jvm.current().javaHome}/include"
|
||||||
|
if (targetPlatform.operatingSystem.name == "osx") {
|
||||||
|
cppCompiler.args '-I', "${org.gradle.internal.jvm.Jvm.current().javaHome}/include/darwin"
|
||||||
|
} else if (targetPlatform.operatingSystem.name == "linux") {
|
||||||
|
cppCompiler.args '-I', "${org.gradle.internal.jvm.Jvm.current().javaHome}/include/linux"
|
||||||
|
cppCompiler.args "-fPIC"
|
||||||
|
cppCompiler.args "-fpermissive"
|
||||||
|
cppCompiler.args "-static-libgcc"
|
||||||
|
cppCompiler.args "-static-libstdc++"
|
||||||
|
linker.args "-static-libgcc"
|
||||||
|
linker.args "-static-libstdc++"
|
||||||
|
} else if (targetPlatform.operatingSystem.name == "windows") {
|
||||||
|
cppCompiler.args "-I${org.gradle.internal.jvm.Jvm.current().javaHome}/include/win32"
|
||||||
|
// cppCompiler.define('WIN32')
|
||||||
|
// linker.args 'Shlwapi.lib', 'Advapi32.lib'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// C++ sources for binary compilation
|
// C++ sources for binary compilation
|
||||||
sources {
|
sources {
|
||||||
bulletjme {
|
bulletjme {
|
||||||
@ -73,32 +99,6 @@ model {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Defines created C++ libraries
|
|
||||||
libraries {
|
|
||||||
bulletjme {
|
|
||||||
}
|
|
||||||
all {
|
|
||||||
binaries.all {
|
|
||||||
cppCompiler.args '-I', "${org.gradle.internal.jvm.Jvm.current().javaHome}/include"
|
|
||||||
if (targetPlatform.operatingSystem.name == "osx") {
|
|
||||||
cppCompiler.args '-I', "${org.gradle.internal.jvm.Jvm.current().javaHome}/include/darwin"
|
|
||||||
} else if (targetPlatform.operatingSystem.name == "linux") {
|
|
||||||
cppCompiler.args '-I', "${org.gradle.internal.jvm.Jvm.current().javaHome}/include/linux"
|
|
||||||
cppCompiler.args "-fPIC"
|
|
||||||
cppCompiler.args "-fpermissive"
|
|
||||||
cppCompiler.args "-static-libgcc"
|
|
||||||
cppCompiler.args "-static-libstdc++"
|
|
||||||
linker.args "-static-libgcc"
|
|
||||||
linker.args "-static-libstdc++"
|
|
||||||
} else if (targetPlatform.operatingSystem.name == "windows") {
|
|
||||||
cppCompiler.args "-I${org.gradle.internal.jvm.Jvm.current().javaHome}/include/win32"
|
|
||||||
// cppCompiler.define('WIN32')
|
|
||||||
// linker.args 'Shlwapi.lib', 'Advapi32.lib'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Download bullet if not available
|
// Download bullet if not available
|
||||||
task downloadBullet(type: MyDownload) {
|
task downloadBullet(type: MyDownload) {
|
||||||
sourceUrl = bulletUrl
|
sourceUrl = bulletUrl
|
||||||
@ -145,7 +145,8 @@ binaries.withType(SharedLibraryBinary) { binary ->
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Get builder of this binary
|
// Get builder of this binary
|
||||||
def builderTask = binary.tasks.builder
|
def builderTask = binary.tasks
|
||||||
|
|
||||||
// Add output to jar file
|
// Add output to jar file
|
||||||
jar.into("native/${targetPlatform.operatingSystem.name}/${targetPlatform.architecture.name}") { from builderTask.outputFile }
|
jar.into("native/${targetPlatform.operatingSystem.name}/${targetPlatform.architecture.name}") { from builderTask.outputFile }
|
||||||
// Add depend on build
|
// Add depend on build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user