mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
android: add support for automatic releases
This commit is contained in:
parent
0bdbd27320
commit
e931dbeb31
2 changed files with 12 additions and 4 deletions
|
@ -1,12 +1,12 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="net.dosowisko.${LIBSUPERDERPY_GAMENAME}"
|
package="net.dosowisko.${LIBSUPERDERPY_GAMENAME}"
|
||||||
android:versionCode="1"
|
android:versionCode="${LIBSUPERDERPY_RELEASE}"
|
||||||
android:versionName="${LIBSUPERDERPY_VERSION}"
|
android:versionName="${LIBSUPERDERPY_VERSION}"
|
||||||
android:installLocation="auto">
|
android:installLocation="auto">
|
||||||
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="16" />
|
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="16" />
|
||||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
|
||||||
<application android:label="@string/app_name" android:debuggable="true" android:icon="@mipmap/${LIBSUPERDERPY_GAMENAME}">
|
<application android:label="@string/app_name" android:debuggable="${LIBSUPERDERPY_ANDROID_DEBUGGABLE}" android:icon="@mipmap/${LIBSUPERDERPY_GAMENAME}">
|
||||||
<activity android:name="net.dosowisko.${LIBSUPERDERPY_GAMENAME}.SuperDerpyActivity"
|
<activity android:name="net.dosowisko.${LIBSUPERDERPY_GAMENAME}.SuperDerpyActivity"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
|
|
|
@ -89,9 +89,13 @@ if(LIBSUPERDERPY_GAMENAME)
|
||||||
include_directories("${CMAKE_BINARY_DIR}/gen")
|
include_directories("${CMAKE_BINARY_DIR}/gen")
|
||||||
endif(LIBSUPERDERPY_GAMENAME)
|
endif(LIBSUPERDERPY_GAMENAME)
|
||||||
|
|
||||||
if (NOT LIBSUPERDERPY_VERSION)
|
if (NOT DEFINED LIBSUPERDERPY_VERSION)
|
||||||
set(LIBSUPERDERPY_VERSION "0.1")
|
set(LIBSUPERDERPY_VERSION "0.1")
|
||||||
endif(NOT LIBSUPERDERPY_VERSION)
|
endif(NOT DEFINED LIBSUPERDERPY_VERSION)
|
||||||
|
|
||||||
|
if (NOT DEFINED LIBSUPERDERPY_RELEASE)
|
||||||
|
set(LIBSUPERDERPY_RELEASE "1")
|
||||||
|
endif(NOT DEFINED LIBSUPERDERPY_RELEASE)
|
||||||
|
|
||||||
MACRO(add_libsuperderpy_target EXECUTABLE_SRC_LIST)
|
MACRO(add_libsuperderpy_target EXECUTABLE_SRC_LIST)
|
||||||
if(ANDROID)
|
if(ANDROID)
|
||||||
|
@ -154,6 +158,10 @@ if(ANDROID)
|
||||||
set(LIBSUPERDERPY_ANDROID_ORIENTATION "unspecified")
|
set(LIBSUPERDERPY_ANDROID_ORIENTATION "unspecified")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (NOT DEFINED LIBSUPERDERPY_ANDROID_DEBUGGABLE)
|
||||||
|
set(LIBSUPERDERPY_ANDROID_DEBUGGABLE "true")
|
||||||
|
endif(NOT DEFINED LIBSUPERDERPY_ANDROID_DEBUGGABLE)
|
||||||
|
|
||||||
configure_android_file("AndroidManifest.xml")
|
configure_android_file("AndroidManifest.xml")
|
||||||
configure_android_file("localgen.properties")
|
configure_android_file("localgen.properties")
|
||||||
configure_android_file("build.xml" @ONLY)
|
configure_android_file("build.xml" @ONLY)
|
||||||
|
|
Loading…
Reference in a new issue