Skip to content

Commit

Permalink
fix compile for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
frett27 committed May 2, 2016
1 parent a6f4732 commit c78fda9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ apply plugin:'distribution'
}

// we must have the binaries compiled for the java wrapper
//tasks.getByPath(':jfgdb:compileJava').dependsOn(tasks.getByPath(":nativewrapper:build"))
tasks.getByPath(':jfgdb:compileJava').dependsOn(tasks.getByPath(":nativewrapper:build"))

6 changes: 3 additions & 3 deletions nativewrapper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

def JAVA_HOME;

task checkEnv << {
// task checkEnv << {

if (!System.getenv('ESRI_FILE_GDB_HOME')) throw new Exception("environment variable ESRI_FILE_GDB_HOME must be defined")

Expand All @@ -28,7 +28,7 @@ task checkEnv << {
if (!JAVA_HOME.exists()) throw Exception("folder " + JAVA_HOME + " does not exists");


}
// }

distributions {
main {
Expand Down Expand Up @@ -64,7 +64,6 @@ task checkEnv << {
// targetPlatform "x86" // only available for windows
targetPlatform "x64"

binaries.all {

sources {
cpp {
Expand All @@ -75,6 +74,7 @@ task checkEnv << {
}
}

binaries.all {
if (toolChain in VisualCpp) {

cppCompiler.args "/Zi", "-I" + new File(ESRI_FILE_GDB_HOME, "include").getAbsolutePath(),
Expand Down

0 comments on commit c78fda9

Please sign in to comment.