aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorIvan Dubrov <idubrov@guidewire.com>2014-04-25 16:06:44 -0700
committerIvan Dubrov <idubrov@guidewire.com>2014-04-25 16:06:44 -0700
commit112ea81c3236d4591cbbb44043bd8511024bf3b5 (patch)
tree53cd9f7d6251fa48d2e99056b21c9d3995ed001c /build.gradle
parente790d334c29abf0bf0680b6d2c9d337a2bb61d9d (diff)
downloaddcevm-112ea81c3236d4591cbbb44043bd8511024bf3b5.tar.gz
dcevm-112ea81c3236d4591cbbb44043bd8511024bf3b5.zip
Fixing compilation under Windows
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle20
1 files changed, 19 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index f0d0944b..62692747 100644
--- a/build.gradle
+++ b/build.gradle
@@ -127,11 +127,29 @@ project('agent') {
}
}
+project('native') {
+ task compile(type: Exec) {
+ if (root.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'
+ } else {
+ commandLine 'compile.cmd'
+ environment ARCH: root.arch == Arch.X86 ? 'x86' : 'x64'
+ environment JAVA_HOME: jre
+ }
+ }
+}
+
project('dcevm') {
dependencies {
compile project(':agent')
compile group: 'asm', name: 'asm-all', version: '3.3.+'
- compile files(System.getProperty("java.home") + '/../lib/tools.jar')
+ compile files(jre + '/../lib/tools.jar')
testCompile group: 'junit', name: 'junit', version: '4.11'
}