BsScriptBuildManager.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 "Build/BsBuildManager.h"
  7. namespace bs
  8. {
  9. /** @addtogroup ScriptInteropEditor
  10. * @{
  11. */
  12. /** Types of various folders used by the managed build manager. */
  13. enum class ScriptBuildFolder
  14. {
  15. SourceRoot, /**< Absolute path to the root folder where all the prebuilt binaries and data exist. */
  16. DestinationRoot, /**< Absolute path to the root folder for a build for a specific platform. */
  17. NativeBinaries, /**< Folder where native binaries are stored. Relative to root. */
  18. BansheeDebugAssemblies, /**< Folder where Banshee specific debug assemblies are stored. Relative to root. */
  19. BansheeReleaseAssemblies, /**< Folder where Banshee specific release assemblies are stored. Relative to root. */
  20. FrameworkAssemblies, /**< Folder where .NET framework assemblies are stored. Relative to root. */
  21. Mono, /**< Folder where miscelaneous Mono files are stored. Relative to root. */
  22. Data /**< Folder where builtin data is stored. Relative to root. */
  23. };
  24. /** Interop class between C++ & CLR for BuildManager. */
  25. class BS_SCR_BED_EXPORT ScriptBuildManager : public ScriptObject <ScriptBuildManager>
  26. {
  27. public:
  28. SCRIPT_OBJ(EDITOR_ASSEMBLY, EDITOR_NS, "BuildManager")
  29. private:
  30. ScriptBuildManager(MonoObject* instance);
  31. /************************************************************************/
  32. /* CLR HOOKS */
  33. /************************************************************************/
  34. static MonoArray* internal_GetAvailablePlatforms();
  35. static PlatformType internal_GetActivePlatform();
  36. static void internal_SetActivePlatform(PlatformType value);
  37. static MonoObject* internal_GetActivePlatformInfo();
  38. static MonoObject* internal_GetPlatformInfo(PlatformType type);
  39. static MonoArray* internal_GetFrameworkAssemblies(PlatformType type);
  40. static MonoString* internal_GetMainExecutable(PlatformType type);
  41. static MonoString* internal_GetDefines(PlatformType type);
  42. static MonoArray* internal_GetNativeBinaries(PlatformType type);
  43. static MonoString* internal_GetBuildFolder(ScriptBuildFolder folder, PlatformType platform);
  44. static void internal_InjectIcons(MonoString* filePath, ScriptPlatformInfo* info);
  45. static void internal_PackageResources(MonoString* buildFolder, ScriptPlatformInfo* info);
  46. static void internal_CreateStartupSettings(MonoString* buildFolder, ScriptPlatformInfo* info);
  47. };
  48. /** @} */
  49. }