add LIBSUPERDERPY_VERSION variable for packaging

This commit is contained in:
Sebastian Krzyszkowiak 2017-06-26 15:40:04 +02:00
parent 519a22c9ad
commit 0bdbd27320
2 changed files with 5 additions and 1 deletions

View file

@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.dosowisko.${LIBSUPERDERPY_GAMENAME}"
android:versionCode="1"
android:versionName="1.0"
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>

View file

@ -89,6 +89,10 @@ if(LIBSUPERDERPY_GAMENAME)
include_directories("${CMAKE_BINARY_DIR}/gen")
endif(LIBSUPERDERPY_GAMENAME)
if (NOT LIBSUPERDERPY_VERSION)
set(LIBSUPERDERPY_VERSION "0.1")
endif(NOT LIBSUPERDERPY_VERSION)
MACRO(add_libsuperderpy_target EXECUTABLE_SRC_LIST)
if(ANDROID)
set(EXECUTABLE game)