File tree Expand file tree Collapse file tree 4 files changed +14
-3
lines changed
Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ android {
2828 minSdkVersion 21
2929
3030 // NOTE: Don't forget to bump the version code!
31- versionCode 5
31+ versionCode 6
3232 versionName " 0.7.0-beta.2"
3333
3434 ndkVersion " 29.0.14206865"
@@ -52,6 +52,9 @@ android {
5252 " -Wno-dev"
5353 abiFilters rootProject. ext. cpuarch as String []
5454 }
55+ if (rootProject. ext. googleplay) {
56+ android. defaultConfig. externalNativeBuild. cmake. arguments. add(" -DSUPERTUX_GOOGLE_PLAY=ON" )
57+ }
5558 android. defaultConfig. externalNativeBuild. cmake. arguments. addAll(rootProject. ext. cmake_args)
5659 }
5760 }
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ for (String task : gradle.startParameter.getTaskNames()) {
88 }
99}
1010
11+ ext. googleplay = hasProperty(" googleplay" )
12+
1113if (hasProperty(" cpuarch" )) {
1214 ext. cpuarch = property(" cpuarch" ). split()
1315} else {
Original file line number Diff line number Diff line change 11message (STATUS "ANDROID_ABI: ${ANDROID_ABI} :)" )
22
3+ option (SUPERTUX_GOOGLE_PLAY NO "Build SuperTux for Google Play" )
4+
35if (NOT DEFINED ENV{ANDROID_NDK_HOME})
46 set (ndk_home "${SUPERTUX_NDK_HOME} " )
57else ()
@@ -26,6 +28,10 @@ endif()
2628
2729add_compile_options (-D__ANDROID__ )
2830
31+ if (SUPERTUX_GOOGLE_PLAY)
32+ add_compile_definitions (GOOGLE_PLAY )
33+ endif ()
34+
2935set (ANDROID_STL "c++_shared" )
3036set (VCPKG_CHAINLOAD_TOOLCHAIN_FILE ${ndk_home} /build/cmake/android .toolchain.cmake)
3137set (CMAKE_TOOLCHAIN_FILE ${vcpkg_root} /scripts/buildsystems/vcpkg.cmake)
Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ MainMenu::MainMenu()
6666 add_entry (MNID_LEVELEDITOR, _ (" Level Editor" ));
6767#endif
6868 add_entry (MNID_CREDITS, _ (" Credits" ));
69- #ifndef STEAM_BUILD
70- // Links to external purchases are not allowed on Steam, including donations
69+ #if !defined( STEAM_BUILD) && !defined(GOOGLE_PLAY)
70+ // Links to external purchases are not allowed on Steam or Google Play , including donations
7171 add_entry (MNID_DONATE, _ (" Donate" ));
7272#endif
7373#ifndef REMOVE_QUIT_BUTTON
You can’t perform that action at this time.
0 commit comments