-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
61 lines (54 loc) · 2.25 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// this applied only to swt/* projects
subprojects { Project project ->
// only configure leaf projects.
if (!project.getSubprojects().isEmpty()) return
apply from: "$rootDir/buildSrc/base/baseJava.gradle"
apply plugin: 'sdk-java-lib'
version = rootProject.ext.baseVersion
// configuration for swt dependency since the packaged jar is platform dependent
// but at compile time we don't care. Also we don't want the artifact in the
// main repo, so use the provided configuration
configurations {
swt
}
dependencies{
swt "com.android.external.eclipse:swt:3.5.0"
compile 'com.android.external.eclipse:org-eclipse-jface:3.6.2'
testCompile "com.android.external.eclipse:swt:3.5.0"
}
// include swt for compilation
sourceSets.main.compileClasspath += configurations.swt
}
apply plugin: 'sdk-files'
sdk {
linux {
item("$rootProject.projectDir.parentFile/prebuilts/tools/linux-x86/swt/swt.jar") {
into 'lib/x86'
notice "$rootProject.projectDir.parentFile/prebuilts/tools/linux-x86/swt/NOTICE"
}
item("$rootProject.projectDir.parentFile/prebuilts/tools/linux-x86_64/swt/swt.jar") {
into 'lib/x86_64'
notice "$rootProject.projectDir.parentFile/prebuilts/tools/linux-x86_64/swt/NOTICE"
}
}
mac {
item("$rootProject.projectDir.parentFile/prebuilts/tools/darwin-x86/swt/swt.jar") {
into 'lib/x86'
notice "$rootProject.projectDir.parentFile/prebuilts/tools/darwin-x86/swt/NOTICE"
}
item("$rootProject.projectDir.parentFile/prebuilts/tools/darwin-x86_64/swt/swt.jar") {
into 'lib/x86_64'
notice "$rootProject.projectDir.parentFile/prebuilts/tools/darwin-x86_64/swt/NOTICE"
}
}
windows {
item("$rootProject.projectDir.parentFile/prebuilts/tools/windows/swt/swt.jar") {
into 'lib/x86'
notice "$rootProject.projectDir.parentFile/prebuilts/tools/windows/swt/NOTICE"
}
item("$rootProject.projectDir.parentFile/prebuilts/tools/windows-x86_64/swt/swt.jar") {
into 'lib/x86_64'
notice "$rootProject.projectDir.parentFile/prebuilts/tools/windows-x86_64/swt/NOTICE"
}
}
}