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"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="net.dosowisko.${LIBSUPERDERPY_GAMENAME}"
|
||||
android:versionCode="1"
|
||||
android:versionCode="${LIBSUPERDERPY_RELEASE}"
|
||||
android:versionName="${LIBSUPERDERPY_VERSION}"
|
||||
android:installLocation="auto">
|
||||
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="16" />
|
||||
<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"
|
||||
android:label="@string/app_name"
|
||||
android:launchMode="singleTask"
|
||||
|
|
|
@ -89,9 +89,13 @@ if(LIBSUPERDERPY_GAMENAME)
|
|||
include_directories("${CMAKE_BINARY_DIR}/gen")
|
||||
endif(LIBSUPERDERPY_GAMENAME)
|
||||
|
||||
if (NOT LIBSUPERDERPY_VERSION)
|
||||
if (NOT DEFINED LIBSUPERDERPY_VERSION)
|
||||
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)
|
||||
if(ANDROID)
|
||||
|
@ -154,6 +158,10 @@ if(ANDROID)
|
|||
set(LIBSUPERDERPY_ANDROID_ORIENTATION "unspecified")
|
||||
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("localgen.properties")
|
||||
configure_android_file("build.xml" @ONLY)
|
||||
|
|
Loading…
Reference in a new issue