BuildAndroid.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  2. // Please see LICENSE.md in repository root for license information
  3. // https://github.com/AtomicGameEngine/AtomicGameEngine
  4. #pragma once
  5. #include "BuildBase.h"
  6. namespace AtomicEditor
  7. {
  8. class BuildAndroid : public BuildBase
  9. {
  10. OBJECT(BuildAndroid);
  11. public:
  12. BuildAndroid(Context* context);
  13. virtual ~BuildAndroid();
  14. void Build(const String& buildPath);
  15. virtual bool UseResourcePackager() { return false; }
  16. protected:
  17. void Initialize();
  18. private:
  19. void HandleEvent(StringHash eventType, VariantMap& eventData);
  20. // subprocesses
  21. void RunAndroidUpdate();
  22. void RunAntDebug();
  23. void RunADBInstall();
  24. void RunADBListDevices();
  25. void RunStartActivity();
  26. enum BuildPhase
  27. {
  28. AndroidUpdateProject,
  29. AntBuildDebug,
  30. ADBListDevices,
  31. ADBInstall,
  32. ADBStartActivity
  33. };
  34. BuildPhase currentBuildPhase_;
  35. String deviceListText_;
  36. String androidSDKPath_;
  37. String androidCommand_;
  38. String adbCommand_;
  39. String antCommand_;
  40. };
  41. }