BaseBrowser.Build.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // Copyright aXiuShen. All Rights Reserved.
  2. using UnrealBuildTool;
  3. using System.IO;
  4. using System;
  5. public class BaseBrowser : ModuleRules
  6. {
  7. public BaseBrowser(ReadOnlyTargetRules Target) : base(Target)
  8. {
  9. PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
  10. if (Target.Version.MajorVersion < 5) CppStandard = CppStandardVersion.Cpp17;
  11. string CEFRoot = Path.Combine(ModuleDirectory, "Public");
  12. PublicSystemIncludePaths.Add(Path.Combine(CEFRoot));
  13. PublicIncludePaths.AddRange(
  14. new string[] {
  15. // ... add public include paths required here ...
  16. }
  17. );
  18. Int32 ue_version = Target.Version.MajorVersion * 10000 + Target.Version.MinorVersion * 100 + Target.Version.PatchVersion;
  19. PublicDefinitions.Add("WEBVIEW_ENGINE_VERSION=" + ue_version); //
  20. PrivateIncludePaths.AddRange(
  21. new string[] {
  22. // ... add other private include paths required here ...
  23. }
  24. );
  25. PublicDependencyModuleNames.AddRange(
  26. new string[]
  27. {
  28. "Slate",
  29. "SlateCore",
  30. "Core",
  31. "CoreUObject",
  32. "ApplicationCore",
  33. "RHI",
  34. "RenderCore",
  35. "InputCore",
  36. "Serialization",
  37. "MediaUtils",
  38. "MatureJson",
  39. // ... add other public dependencies that you statically link with here ...
  40. }
  41. );
  42. PrivateDependencyModuleNames.AddRange(
  43. new string[]
  44. {
  45. "CoreUObject",
  46. "Engine",
  47. "Slate",
  48. "SlateCore",
  49. "Projects",
  50. // ... add private dependencies that you statically link with here ...
  51. }
  52. );
  53. DynamicallyLoadedModuleNames.AddRange(
  54. new string[]
  55. {
  56. // ... add any modules that your module loads dynamically here ...
  57. }
  58. );
  59. PublicIncludePathModuleNames.AddRange(
  60. new string[] {
  61. "MediaUtils",
  62. }
  63. );
  64. }
  65. }