-
Notifications
You must be signed in to change notification settings - Fork 23
/
build.gradle
executable file
·113 lines (95 loc) · 2.38 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
buildscript {
repositories {
ivy { url '../repository' }
ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' }
mavenCentral()
}
dependencies {
classpath 'kaizen:kaizen:0.2.6'
}
}
apply plugin: 'kaizen-bundle'
apply plugin: 'nunit'
apply plugin: 'idea'
allprojects {
group = 'unityscript'
version = '0.1.4'
repositories {
ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' }
}
}
configurations {
boo
}
ext {
booVersion = '0.9.7'
}
dependencies {
boo "boo:boo:$booVersion"
boo "boo:RetargetAssembly:0.2.1"
'default' project(':us'), project(':UnityScript'), project(':UnityScript.Lang')
}
unity.mono.booc.executable = file('lib/Boo/booc.exe')
project(':us') {
dependencies {
'default' project(':UnityScript'), project(':UnityScript.Lang')
'default' "boo:Boo.Lang.Useful:$booVersion"
}
assembly {
target = 'exe'
}
}
project(':UnityScript') {
dependencies {
'default' project(':UnityScript.Lang')
['Boo.Lang.Extensions', 'Boo.Lang.Parser', 'Boo.Lang.Compiler', 'Boo.Lang.PatternMatching', 'Boo.Lang.Useful'].each {
'default' "boo:$it:$booVersion"
}
}
}
project(':UnityScript.Lang') {
configurations {
windowsPhone8
}
dependencies {
'default' "boo:Boo.Lang:$booVersion"
//windowsPhone8 group: 'boo', name: 'Boo.Lang', version: booVersion, configuration: 'windowsPhone8'
}
tasks.compileWindowsPhone8 {
doLast {
rootProject.exec {
executable rootProject.extensions.unity.monoBleedingEdge.cli
args 'lib/Boo/RetargetAssembly.exe'
args assemblyFile
}
}
}
}
project(':UnityScript.Tests.CSharp') {
dependencies {
'default' "boo:Boo.Lang:$booVersion"
}
}
project(':UnityScript.Tests') {
apply plugin: 'nunit-assembly'
afterEvaluate {
testDefault {
exclude 'FailsOnMono'
}
}
dependencies {
[':UnityScript', ':UnityScript.Lang', ':us', ':UnityScript.Tests.CSharp'].each {
'default' project(it)
}
}
}
def allCompileTasks = subprojects.collectMany { it.tasks }.findAll { it.name.startsWith('compile') }
def booCompileTasks = allCompileTasks.findAll { it.assembly.language == 'boo' }
booCompileTasks.each {
logger.info "Configuring boo dependencies on $it"
it.dependsOn rootProject.configurations.boo
it.dependsOn rootProject.tasks.updateBoo
}
task publish {
dependsOn configurations['default'].dependencies*.dependencyProject.uploadArchives
}