BsScriptBuildManager.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsScriptEditorPrerequisites.h"
  5. #include "BsScriptObject.h"
  6. #include "BsBuildManager.h"
  7. namespace BansheeEngine
  8. {
  9. /**
  10. * @brief Types of various folders used by the managed build manager.
  11. */
  12. enum class ScriptBuildFolder
  13. {
  14. SourceRoot, /**< Absolute path to the root folder where all the prebuilt binaries and data exist. */
  15. DestinationRoot, /**< Absolute path to the root folder for a build for a specific platform. */
  16. NativeBinaries, /**< Folder where native binaries are stored. Relative to root. */
  17. BansheeDebugAssemblies, /**< Folder where Banshee specific debug assemblies are stored. Relative to root. */
  18. BansheeReleaseAssemblies, /**< Folder where Banshee specific release assemblies are stored. Relative to root. */
  19. FrameworkAssemblies, /**< Folder where .NET framework assemblies are stored. Relative to root. */
  20. Mono, /**< Folder where miscelaneous Mono files are stored. Relative to root. */
  21. Data /**< Folder where builtin data is stored. Relative to root. */
  22. };
  23. /**
  24. * @brief Interop class between C++ & CLR for BuildManager.
  25. */
  26. class BS_SCR_BED_EXPORT ScriptBuildManager : public ScriptObject <ScriptBuildManager>
  27. {
  28. public:
  29. SCRIPT_OBJ(EDITOR_ASSEMBLY, "BansheeEditor", "BuildManager")
  30. private:
  31. ScriptBuildManager(MonoObject* instance);
  32. /************************************************************************/
  33. /* CLR HOOKS */
  34. /************************************************************************/
  35. static MonoArray* internal_GetAvailablePlatforms();
  36. static PlatformType internal_GetActivePlatform();
  37. static void internal_SetActivePlatform(PlatformType value);
  38. static MonoObject* internal_GetActivePlatformInfo();
  39. static MonoObject* internal_GetPlatformInfo(PlatformType type);
  40. static MonoArray* internal_GetFrameworkAssemblies(PlatformType type);
  41. static MonoString* internal_GetMainExecutable(PlatformType type);
  42. static MonoString* internal_GetDefines(PlatformType type);
  43. static MonoArray* internal_GetNativeBinaries(PlatformType type);
  44. static MonoString* internal_GetBuildFolder(ScriptBuildFolder folder, PlatformType platform);
  45. static void internal_InjectIcons(MonoString* filePath, ScriptPlatformInfo* info);
  46. static void internal_PackageResources(MonoString* buildFolder, ScriptPlatformInfo* info);
  47. static void internal_CreateStartupSettings(MonoString* buildFolder, ScriptPlatformInfo* info);
  48. };
  49. }