summaryrefslogtreecommitdiffstats
path: root/ios/build.gradle
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-01-27 21:41:59 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-01-27 22:26:28 +0100
commit06e9e269c1eecb21a2c61d9bd6f2c1e43049fa55 (patch)
tree761f95994f0fe4d091a6822ff78a7f58957578ab /ios/build.gradle
parente01fdfee49867fffb8db66964130915186b81cea (diff)
downloadRustAndDust-06e9e269c1eecb21a2c61d9bd6f2c1e43049fa55.zip
RustAndDust-06e9e269c1eecb21a2c61d9bd6f2c1e43049fa55.tar.gz
remove project ios
Diffstat (limited to 'ios/build.gradle')
-rw-r--r--ios/build.gradle65
1 files changed, 0 insertions, 65 deletions
diff --git a/ios/build.gradle b/ios/build.gradle
deleted file mode 100644
index f237649..0000000
--- a/ios/build.gradle
+++ /dev/null
@@ -1,65 +0,0 @@
-sourceSets.main.java.srcDirs = [ "src/" ]
-
-sourceCompatibility = '1.7'
-[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
-
-ext {
- mainClassName = "ch.asynk.rustanddust.IOSLauncher"
-}
-
-// Extracts native libs (*.a) from the native-ios.jar and places them
-// under build/libs/ios/.
-task copyNatives << {
- file("build/libs/ios/").mkdirs();
- configurations.natives.files.each { jar ->
- def outputDir = null
- if (jar.name.endsWith("natives-ios.jar")) outputDir = file("build/libs/ios")
- if (outputDir != null) {
- copy {
- from zipTree(jar)
- into outputDir
- include "*.a"
- }
- }
- }
-}
-
-// Updates a robovm.xml file.
-task updateRoboVMXML << {
- def xml = file('robovm.xml')
-
- if (!xml.exists()) {
- return
- }
-
- // Find all native (*.a) libraries beneath libs
- def libtree = fileTree(dir: 'build/libs', include: '**/*.a')
-
- def config = new groovy.util.XmlParser().parse(xml)
- config.libs.each {libs ->
- libs.children().clear()
- libtree.each { File file ->
- libs.appendNode('lib', 'build/libs/ios/' + file.getName())
- }
- }
-
- def writer = new FileWriter(xml)
- def printer = new XmlNodePrinter(new PrintWriter(writer))
- printer.setPreserveWhitespace true
- printer.print(config)
-}
-
-updateRoboVMXML.dependsOn copyNatives
-build.dependsOn updateRoboVMXML
-tasks.eclipse.dependsOn updateRoboVMXML
-
-launchIPhoneSimulator.dependsOn build
-launchIPadSimulator.dependsOn build
-launchIOSDevice.dependsOn build
-createIPA.dependsOn build
-
-
-eclipse.project {
- name = appName + "-ios"
- natures 'org.robovm.eclipse.RoboVMNature'
-} \ No newline at end of file