|
@@ -7,6 +7,7 @@
|
|
|
|
|
|
|
|
#include <Atomic/IO/MemoryBuffer.h>
|
|
#include <Atomic/IO/MemoryBuffer.h>
|
|
|
#include <Atomic/IO/FileSystem.h>
|
|
#include <Atomic/IO/FileSystem.h>
|
|
|
|
|
+#include <Atomic/IO/Log.h>
|
|
|
|
|
|
|
|
#include "../ToolEnvironment.h"
|
|
#include "../ToolEnvironment.h"
|
|
|
#include "../Subprocess/SubprocessSystem.h"
|
|
#include "../Subprocess/SubprocessSystem.h"
|
|
@@ -83,6 +84,17 @@ void PlatformAndroid::RefreshAndroidTargets()
|
|
|
if (refreshAndroidTargetsProcess_.NotNull())
|
|
if (refreshAndroidTargetsProcess_.NotNull())
|
|
|
return;
|
|
return;
|
|
|
|
|
|
|
|
|
|
+ ToolPrefs* prefs = GetSubsystem<ToolEnvironment>()->GetToolPrefs();
|
|
|
|
|
+ FileSystem* fileSystem = GetSubsystem<FileSystem>();
|
|
|
|
|
+
|
|
|
|
|
+ String androidSDKPath = prefs->GetAndroidSDKPath();
|
|
|
|
|
+
|
|
|
|
|
+ if (!fileSystem->DirExists(androidSDKPath))
|
|
|
|
|
+ {
|
|
|
|
|
+ LOGERRORF("Android path not exists");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
SubprocessSystem* subs = GetSubsystem<SubprocessSystem>();
|
|
SubprocessSystem* subs = GetSubsystem<SubprocessSystem>();
|
|
|
|
|
|
|
|
String androidCommand = GetAndroidCommand();
|
|
String androidCommand = GetAndroidCommand();
|