aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorIvan Dubrov <idubrov@guidewire.com>2014-04-25 16:21:17 -0700
committerIvan Dubrov <idubrov@guidewire.com>2014-04-25 16:24:56 -0700
commita2a4b21d0f1addadb8e1d9845f7464e3603719ab (patch)
tree744f287362d9dec8cff0d5e5881391ab21eabac3 /build.gradle
parent25ec3e2061f4e304f13923702354b75bb77e7809 (diff)
downloaddcevm-a2a4b21d0f1addadb8e1d9845f7464e3603719ab.tar.gz
dcevm-a2a4b21d0f1addadb8e1d9845f7464e3603719ab.zip
Support for Mac OS X in native code compilation
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle12
1 files changed, 9 insertions, 3 deletions
diff --git a/build.gradle b/build.gradle
index dae673ea..88e06736 100644
--- a/build.gradle
+++ b/build.gradle
@@ -136,11 +136,17 @@ project('native') {
if (os != Os.WINDOWS) {
commandLine 'gcc'
args "-I${jre}/../include"
- args "-I${jre}/../include/linux"
args '-shared'
args 'natives.c'
- args '-o'
- args 'build/libnatives.so'
+ if (os == Os.UNIX) {
+ args "-I${jre}/../include/linux"
+ args '-o'
+ args 'build/libnatives.so'
+ } else if (os == Os.MAC) {
+ args "-I${jre}/../include/darwin"
+ args '-o'
+ args 'build/libnatives.dylib'
+ }
} else {
commandLine 'cmd', '/c', 'compile.cmd'
environment ARCH: arch == Arch.X86 ? 'x86' : 'x64'