AndroidProjectGenerator.h 975 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 <Atomic/Container/Str.h>
  6. #include <Atomic/Core/Object.h>
  7. #include "BuildSettings.h"
  8. using namespace Atomic;
  9. namespace AtomicEditor
  10. {
  11. class AndroidProjectGenerator : public Object
  12. {
  13. OBJECT(AndroidProjectGenerator);
  14. public:
  15. AndroidProjectGenerator(Context* context);
  16. virtual ~AndroidProjectGenerator();
  17. void SetBuildPath(const String& buildpath) { buildPath_ = buildpath; }
  18. bool Generate();
  19. const String& GetErrorText() { return errorText_; }
  20. private:
  21. bool GenerateAndroidManifest();
  22. bool GenerateStringXML();
  23. bool GenerateLocalProperties();
  24. bool GenerateProjectProperties();
  25. bool GenerateActivitySource();
  26. String buildPath_;
  27. String errorText_;
  28. AndroidBuildSettings buildSettings_;
  29. };
  30. }