MatureJson.Build.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // Copyright aXiuShen. All Rights Reserved.
  2. using UnrealBuildTool;
  3. using System.IO;
  4. using System;
  5. public class MatureJson : ModuleRules
  6. {
  7. public MatureJson(ReadOnlyTargetRules Target) : base(Target)
  8. {
  9. PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
  10. PublicIncludePaths.AddRange(
  11. new string[] {
  12. // ... add public include paths required here ...
  13. }
  14. );
  15. int EngineVersion = Target.Version.MajorVersion * 100 + Target.Version.MinorVersion;
  16. PublicDefinitions.Add("MATUREJSON_VERSION=" + EngineVersion.ToString());
  17. if(EngineVersion<=426) CppStandard = CppStandardVersion.Cpp17;
  18. else if(EngineVersion <= 501) CppStandard = CppStandardVersion.Cpp17;
  19. else CppStandard = CppStandardVersion.Default;
  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. "RapidForUe"
  38. // ... add other public dependencies that you statically link with here ...
  39. }
  40. );
  41. PrivateDependencyModuleNames.AddRange(
  42. new string[]
  43. {
  44. "CoreUObject",
  45. "Engine",
  46. "Slate",
  47. "SlateCore",
  48. "Projects",
  49. // ... add private dependencies that you statically link with here ...
  50. }
  51. );
  52. DynamicallyLoadedModuleNames.AddRange(
  53. new string[]
  54. {
  55. // ... add any modules that your module loads dynamically here ...
  56. }
  57. );
  58. }
  59. }