Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1679 | chris | 1 | buildscript { |
| 2 | repositories { |
||
| 3 | mavenCentral() |
||
| 4 | mavenLocal() |
||
| 5 | } |
||
| 6 | dependencies { |
||
| 7 | classpath 'com.android.tools.build:gradle:0.10+' |
||
| 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 = 'petnpurr' |
||
| 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 | |||
| 71 | project(":core") { |
||
| 72 | apply plugin: "java" |
||
| 73 | |||
| 74 | |||
| 75 | dependencies { |
||
| 76 | compile "com.badlogicgames.gdx:gdx:$gdxVersion" |
||
| 77 | } |
||
| 78 | } |
||
| 79 | |||
| 80 | tasks.eclipse.doLast { |
||
| 81 | delete ".project" |
||
| 82 | } |