mirror of
https://github.com/godotengine/godot.git
synced 2024-11-23 12:43:43 +00:00
Automatically pick the Android sdk path using environment variables
This commit is contained in:
parent
6afd320984
commit
f86e6115d9
@ -42,7 +42,7 @@ void register_android_exporter_types() {
|
|||||||
|
|
||||||
void register_android_exporter() {
|
void register_android_exporter() {
|
||||||
#ifndef ANDROID_ENABLED
|
#ifndef ANDROID_ENABLED
|
||||||
EDITOR_DEF("export/android/android_sdk_path", "");
|
EDITOR_DEF("export/android/android_sdk_path", OS::get_singleton()->get_environment("ANDROID_SDK_ROOT"));
|
||||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING, "export/android/android_sdk_path", PROPERTY_HINT_GLOBAL_DIR));
|
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING, "export/android/android_sdk_path", PROPERTY_HINT_GLOBAL_DIR));
|
||||||
EDITOR_DEF("export/android/debug_keystore", "");
|
EDITOR_DEF("export/android/debug_keystore", "");
|
||||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING, "export/android/debug_keystore", PROPERTY_HINT_GLOBAL_FILE, "*.keystore,*.jks"));
|
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING, "export/android/debug_keystore", PROPERTY_HINT_GLOBAL_FILE, "*.keystore,*.jks"));
|
||||||
|
Loading…
Reference in New Issue
Block a user