-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
31 lines (25 loc) · 1023 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
group "com.github.zutherb.gradle"
apply plugin: 'groovy'
apply plugin: 'idea'
repositories {
mavenCentral()
}
dependencies {
compile gradleApi()
compile localGroovy()
}
task compileJavaAppLuncher(type: Exec) {
def javaAppLuncherDir = "${buildDir}/resources/main/com/github/zutherb/gradle/mapAppBundle"
mkdir javaAppLuncherDir
executable "gcc"
args "-I", "/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/include",
"-I", "/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/include/darwin",
"-o", "${javaAppLuncherDir}/JavaAppLauncher",
"-framework", "Cocoa",
"-arch", "x86_64",
"-isysroot", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk",
"-mmacosx-version-min=10.7",
"${projectDir}/src/main/object-c/main.m",
"-v"
}
tasks.processResources.dependsOn(compileJavaAppLuncher)