1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Use EnumVariable for choice-based build options.

This commit is contained in:
Elliott Sales de Andrade
2017-09-24 23:06:45 -04:00
parent 0a6446ff36
commit f9e463bce2
6 changed files with 15 additions and 10 deletions

View File

@@ -18,11 +18,12 @@ def can_build():
def get_opts():
from SCons.Variables import EnumVariable
return [
('ANDROID_NDK_ROOT', 'Path to the Android NDK', os.environ.get("ANDROID_NDK_ROOT", 0)),
('ndk_platform', 'Target platform (android-<api>, e.g. "android-18")', "android-18"),
('android_arch', 'Target architecture (armv7/armv6/arm64v8/x86)', "armv7"),
EnumVariable('android_arch', 'Target architecture', "armv7", ('armv7', 'armv6', 'arm64v8', 'x86')),
('android_neon', 'Enable NEON support (armv7 only)', "yes"),
('android_stl', 'Enable Android STL support (for modules)', "no")
]