vtm/vtm-ios-example/build.gradle
2017-05-30 14:11:44 +03:00

74 lines
1.8 KiB
Groovy

buildscript {
repositories {
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
classpath 'com.mobidevelop.robovm:robovm-gradle-plugin:2.3.1'
}
}
apply plugin: 'java'
apply plugin: 'robovm'
sourceSets.main.java.srcDirs = ["src/"]
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
ext {
roboVMVersion = "2.3.1"
}
launchIPhoneSimulator.dependsOn build
launchIPadSimulator.dependsOn build
launchIOSDevice.dependsOn build
createIPA.dependsOn build
dependencies {
compile project(':vtm')
compile project(':vtm-gdx')
compile project(':vtm-jts')
compile project(':vtm-ios')
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
compile "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
compile "com.mobidevelop.robovm:robovm-rt:$roboVMVersion"
compile "com.mobidevelop.robovm:robovm-cocoatouch:$roboVMVersion"
compile "org.slf4j:slf4j-simple:$slf4jVersion"
}
task copyVtmResources(type: Copy) {
from("../vtm/resources")
into("${buildDir}")
}
task copyVtmThemesResources(type: Copy) {
from("../vtm-themes/resources")
into("${buildDir}")
}
task copyVtmPlaygroundResources(type: Copy) {
from("../vtm-playground/resources")
into("${buildDir}/assets/")
}
task copyIosNatives(type: Copy) {
from("../vtm-ios/natives")
into("${buildDir}/natives/")
}
tasks.withType(JavaCompile) {
compileTask -> compileTask.dependsOn copyVtmResources
}
tasks.withType(JavaCompile) {
compileTask -> compileTask.dependsOn copyVtmThemesResources
}
tasks.withType(JavaCompile) {
compileTask -> compileTask.dependsOn copyVtmPlaygroundResources
}
tasks.withType(JavaCompile) {
compileTask -> compileTask.dependsOn copyIosNatives
}