aboutsummaryrefslogtreecommitdiff
path: root/dists/android
diff options
context:
space:
mode:
authorJoel Teichroeb2014-01-22 14:23:30 -0800
committerJoel Teichroeb2014-07-22 16:57:30 -0700
commit563d83701313fcd71ac7090deb61e7f3910e6070 (patch)
treeb2c101eb89a641e7514a417758781ca6e6601712 /dists/android
parentbe9c3bf72bfc6d0abf650664df4be3595ad96933 (diff)
downloadscummvm-rg350-563d83701313fcd71ac7090deb61e7f3910e6070.tar.gz
scummvm-rg350-563d83701313fcd71ac7090deb61e7f3910e6070.tar.bz2
scummvm-rg350-563d83701313fcd71ac7090deb61e7f3910e6070.zip
ANDROID: Modernize build system
Written originally by @Botje for ResidualVM
Diffstat (limited to 'dists/android')
-rw-r--r--dists/android/custom_rules.xml31
-rw-r--r--dists/android/jni/Android.mk9
-rw-r--r--dists/android/project.properties11
-rw-r--r--dists/android/res/layout/main.xml4
4 files changed, 51 insertions, 4 deletions
diff --git a/dists/android/custom_rules.xml b/dists/android/custom_rules.xml
new file mode 100644
index 0000000000..5ed81b7273
--- /dev/null
+++ b/dists/android/custom_rules.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="custom_rules">
+ <!-- Override the built-in aapt task, don't compress assets. -->
+ <target name="-package-resources" depends="-crunch">
+ <!-- only package resources if *not* a library project -->
+ <do-only-if-not-library elseText="Library project: do not package resources..." >
+ <aapt executable="${aapt}"
+ command="package"
+ versioncode="${version.code}"
+ versionname="${version.name}"
+ debug="${build.is.packaging.debug}"
+ manifest="${out.manifest.abs.file}"
+ assets="${asset.absolute.dir}"
+ androidjar="${project.target.android.jar}"
+ apkfolder="${out.absolute.dir}"
+ nocrunch="${build.packaging.nocrunch}"
+ resourcefilename="${resource.package.file.name}"
+ resourcefilter="${aapt.resource.filter}"
+ libraryResFolderPathRefid="project.library.res.folder.path"
+ libraryPackagesRefid="project.library.packages"
+ libraryRFileRefid="project.library.bin.r.file.path"
+ previousBuildType="${build.last.target}"
+ buildType="${build.target}"
+ ignoreAssets="${aapt.ignore.assets}">
+ <res path="${out.res.absolute.dir}" />
+ <res path="${resource.absolute.dir}" />
+ <nocompress /> <!-- forces no compression on any files in assets or res/raw -->
+ </aapt>
+ </do-only-if-not-library>
+ </target>
+</project>
diff --git a/dists/android/jni/Android.mk b/dists/android/jni/Android.mk
new file mode 100644
index 0000000000..d5b398412f
--- /dev/null
+++ b/dists/android/jni/Android.mk
@@ -0,0 +1,9 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+APP_ABI := armeabi
+LOCAL_MODULE := scummvm
+LOCAL_SRC_FILES := ../libscummvm.so
+
+include $(PREBUILT_SHARED_LIBRARY)
diff --git a/dists/android/project.properties b/dists/android/project.properties
new file mode 100644
index 0000000000..730e911f2f
--- /dev/null
+++ b/dists/android/project.properties
@@ -0,0 +1,11 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system use,
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+
+# Project target.
+target=android-14
diff --git a/dists/android/res/layout/main.xml b/dists/android/res/layout/main.xml
index 31aa345cc7..8b0d515d62 100644
--- a/dists/android/res/layout/main.xml
+++ b/dists/android/res/layout/main.xml
@@ -9,8 +9,4 @@
android:keepScreenOn="true"
android:focusable="true"
android:focusableInTouchMode="true"
- android:layout_marginTop="@dimen/verticalMargin"
- android:layout_marginLeft="@dimen/horizontalMargin"
- android:layout_marginBottom="@dimen/verticalMargin"
- android:layout_marginRight="@dimen/horizontalMargin"
/>