genie-defaults.lua 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. configuration {}
  2. objdir ( "../../build/obj/" .. mpt_projectpathname .. "/" .. mpt_projectname )
  3. flags { "Cpp17" }
  4. configuration { "Debug", "x32" }
  5. targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/x86" )
  6. configuration { "DebugShared", "x32" }
  7. targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/x86" )
  8. configuration { "Release", "x32" }
  9. targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/x86" )
  10. configuration { "ReleaseShared", "x32" }
  11. targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/x86" )
  12. configuration { "Debug", "x64" }
  13. targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/amd64" )
  14. configuration { "DebugShared", "x64" }
  15. targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/amd64" )
  16. configuration { "Release", "x64" }
  17. targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/amd64" )
  18. configuration { "ReleaseShared", "x64" }
  19. targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/amd64" )
  20. configuration { "Debug", "ARM" }
  21. targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/arm" )
  22. configuration { "DebugShared", "ARM" }
  23. targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/arm" )
  24. configuration { "Release", "ARM" }
  25. targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/arm" )
  26. configuration { "ReleaseShared", "ARM" }
  27. targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/arm" )
  28. configuration { "Debug", "ARM64" }
  29. targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/arm64" )
  30. configuration { "DebugShared", "ARM64" }
  31. targetdir ( "../../bin/debug/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/arm64" )
  32. configuration { "Release", "ARM64" }
  33. targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-static/arm64" )
  34. configuration { "ReleaseShared", "ARM64" }
  35. targetdir ( "../../bin/release/" .. _ACTION .. "-" .. mpt_bindirsuffix .. "-shared/arm64" )
  36. configuration "Debug"
  37. defines { "DEBUG" }
  38. defines { "MPT_BUILD_DEBUG" }
  39. defines { "MPT_BUILD_MSVC_STATIC" }
  40. flags { "Symbols" }
  41. configuration "DebugShared"
  42. defines { "DEBUG" }
  43. defines { "MPT_BUILD_DEBUG" }
  44. defines { "MPT_BUILD_MSVC_SHARED" }
  45. flags { "Symbols" }
  46. configuration "Release"
  47. defines { "NDEBUG" }
  48. defines { "MPT_BUILD_MSVC_STATIC" }
  49. flags { "Symbols" }
  50. flags { "OptimizeSpeed" }
  51. configuration "ReleaseShared"
  52. defines { "NDEBUG" }
  53. defines { "MPT_BUILD_MSVC_SHARED" }
  54. flags { "Symbols" }
  55. flags { "OptimizeSpeed" }
  56. configuration {}
  57. defines { "MPT_BUILD_MSVC" }
  58. configuration {}
  59. defines {
  60. "WIN32",
  61. "_CRT_NONSTDC_NO_WARNINGS",
  62. "_CRT_SECURE_NO_WARNINGS",
  63. "_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=1",
  64. "_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT=1",
  65. }
  66. configuration {}
  67. if _ACTION ~= "postprocess" then
  68. if _OPTIONS["target"] == "windesktop81" then
  69. defines { "_WIN32_WINNT=0x0603" }
  70. elseif _OPTIONS["target"] == "winphone8" then
  71. defines { "_WIN32_WINNT=0x0602" }
  72. premake.vstudio.toolset = "v110_wp80"
  73. elseif _OPTIONS["target"] == "winphone81" then
  74. defines { "_WIN32_WINNT=0x0603" }
  75. premake.vstudio.toolset = "v120_wp81"
  76. premake.vstudio.storeapp = "8.1"
  77. elseif _OPTIONS["target"] == "winstore81" then
  78. defines { "_WIN32_WINNT=0x0603" }
  79. premake.vstudio.toolset = "v120"
  80. premake.vstudio.storeapp = "8.1"
  81. elseif _OPTIONS["target"] == "winstore82" then
  82. defines { "_WIN32_WINNT=0x0603" }
  83. premake.vstudio.storeapp = "8.2"
  84. local action = premake.action.current()
  85. action.vstudio.windowsTargetPlatformVersion = "10.0.10240.0"
  86. action.vstudio.windowsTargetPlatformMinVersion = "10.0.10240.0"
  87. elseif _OPTIONS["target"] == "winstore10" then
  88. defines { "_WIN32_WINNT=0x0A00" }
  89. premake.vstudio.storeapp = "10.0"
  90. configuration {}
  91. configuration { "x32" }
  92. defines { "NTDDI_VERSION=0x0A000000" }
  93. configuration {}
  94. configuration { "x64" }
  95. defines { "NTDDI_VERSION=0x0A000000" }
  96. configuration {}
  97. configuration { "ARM" }
  98. defines { "NTDDI_VERSION=0x0A000000" }
  99. configuration {}
  100. configuration { "ARM64" }
  101. defines { "NTDDI_VERSION=0x0A000004" }
  102. configuration {}
  103. end
  104. end
  105. configuration {}