Subversion Repositories AndroidProjects

Rev

Rev 1688 | Rev 1712 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1688 chris 1
buildscript {
2
    repositories {
3
        mavenCentral()
4
        mavenLocal()
5
    }
6
    dependencies {
1707 chris 7
        classpath 'com.android.tools.build:gradle:0.12+'
1688 chris 8
        classpath 'com.github.jtakakura:gradle-robovm-plugin:0.0.8'
9
    }
10
}
11
 
12
allprojects {
13
    apply plugin: "eclipse"
14
    apply plugin: "idea"
15
 
16
    version = '1.0'
17
    ext {
18
        appName = 'watergame'
19
        gdxVersion = '1.0.1'
20
        roboVMVersion = '0.0.12'
21
    }
22
 
23
    repositories {
24
        mavenLocal()
25
        mavenCentral()
26
        maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
27
        maven { url "https://oss.sonatype.org/content/repositories/releases/" }
28
    }
29
}
30
 
31
project(":desktop") {
32
    apply plugin: "java"
33
 
34
 
35
    dependencies {
36
        compile project(":core")
37
        compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
38
        compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
39
    }
40
}
41
 
42
project(":android") {
43
    apply plugin: "android"
44
 
45
    configurations { natives }
46
 
47
    dependencies {
48
        compile project(":core")
49
        compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
50
        natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
51
        natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
52
        natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
53
    }
54
}
55
 
56
project(":ios") {
57
    apply plugin: "java"
58
    apply plugin: "robovm"
59
 
60
    configurations { natives }
61
 
62
    dependencies {
63
        compile project(":core")
64
        compile "org.robovm:robovm-rt:${roboVMVersion}"
65
        compile "org.robovm:robovm-cocoatouch:${roboVMVersion}"
66
        compile "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
67
        natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
68
    }
69
}
70
 
1707 chris 71
project(":annotations") {
72
    apply plugin: "java"
73
}
74
 
1688 chris 75
project(":core") {
76
    apply plugin: "java"
77
 
78
 
79
    dependencies {
1707 chris 80
        compile project(':annotations')
1688 chris 81
        compile "com.badlogicgames.gdx:gdx:$gdxVersion"
82
    }
83
}
84
 
1707 chris 85
 
1688 chris 86
tasks.eclipse.doLast {
87
    delete ".project"
1707 chris 88
}
89
 
90