summaryrefslogtreecommitdiffstats
path: root/platform/android/detect.py
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/detect.py')
-rw-r--r--platform/android/detect.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/platform/android/detect.py b/platform/android/detect.py
index 7515d0020d..33c6565789 100644
--- a/platform/android/detect.py
+++ b/platform/android/detect.py
@@ -9,10 +9,6 @@ if TYPE_CHECKING:
from SCons import Environment
-def is_active():
- return True
-
-
def get_name():
return "Android"
@@ -22,6 +18,8 @@ def can_build():
def get_opts():
+ from SCons.Variables import BoolVariable
+
return [
("ANDROID_SDK_ROOT", "Path to the Android SDK", get_env_android_sdk_root()),
(
@@ -29,6 +27,7 @@ def get_opts():
'Target platform (android-<api>, e.g. "android-' + str(get_min_target_api()) + '")',
"android-" + str(get_min_target_api()),
),
+ BoolVariable("store_release", "Editor build for Google Play Store (for official builds only)", False),
]
@@ -171,10 +170,6 @@ def configure(env: "Environment"):
env["RANLIB"] = compiler_path + "/llvm-ranlib"
env["AS"] = compiler_path + "/clang"
- # Disable exceptions on template builds
- if not env.editor_build:
- env.Append(CXXFLAGS=["-fno-exceptions"])
-
env.Append(
CCFLAGS=(
"-fpic -ffunction-sections -funwind-tables -fstack-protector-strong -fvisibility=hidden -fno-strict-aliasing".split()