1
0

mpt-PluginBridge.lua 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. project "PluginBridge"
  2. uuid "1A147336-891E-49AC-9EAD-A750599A224C"
  3. language "C++"
  4. location ( "../../build/" .. mpt_projectpathname )
  5. vpaths { ["*"] = "../../" }
  6. mpt_projectname = "PluginBridge"
  7. dofile "../../build/premake/premake-defaults-EXEGUI.lua"
  8. dofile "../../build/premake/premake-defaults.lua"
  9. local extincludedirs = {
  10. }
  11. filter { "action:vs*" }
  12. includedirs ( extincludedirs )
  13. filter { "not action:vs*" }
  14. sysincludedirs ( extincludedirs )
  15. filter {}
  16. includedirs {
  17. "../../src",
  18. "../../common",
  19. "$(IntDir)/svn_version",
  20. "../../build/svn_version",
  21. }
  22. files {
  23. "../../src/mpt/**.cpp",
  24. "../../src/mpt/**.hpp",
  25. "../../src/openmpt/**.cpp",
  26. "../../src/openmpt/**.hpp",
  27. "../../pluginBridge/AEffectWrapper.h",
  28. "../../pluginBridge/Bridge.cpp",
  29. "../../pluginBridge/Bridge.h",
  30. "../../pluginBridge/BridgeCommon.h",
  31. "../../pluginBridge/BridgeOpCodes.h",
  32. "../../misc/WriteMemoryDump.h",
  33. "../../common/versionNumber.h",
  34. }
  35. excludes {
  36. "../../src/openmpt/soundbase/**.cpp",
  37. "../../src/openmpt/soundbase/**.hpp",
  38. "../../src/openmpt/sounddevice/**.cpp",
  39. "../../src/openmpt/sounddevice/**.hpp",
  40. }
  41. files {
  42. "../../pluginBridge/PluginBridge.rc",
  43. }
  44. if _OPTIONS["win10"] then
  45. files {
  46. "../../pluginBridge/PluginBridge-win10.manifest",
  47. }
  48. elseif _OPTIONS["win81"] then
  49. files {
  50. "../../pluginBridge/PluginBridge-win81.manifest",
  51. }
  52. elseif _OPTIONS["win7"] then
  53. files {
  54. "../../pluginBridge/PluginBridge-win7.manifest",
  55. }
  56. end
  57. defines { "MODPLUG_TRACKER" }
  58. dpiawareness "None"
  59. largeaddressaware ( true )
  60. characterset "Unicode"
  61. warnings "Extra"
  62. prebuildcommands { "..\\..\\build\\svn_version\\update_svn_version_vs_premake.cmd $(IntDir)" }
  63. filter { "architecture:x86" }
  64. targetsuffix "-x86"
  65. filter { "architecture:x86_64" }
  66. targetsuffix "-amd64"
  67. filter { "architecture:ARM" }
  68. targetsuffix "-arm"
  69. filter { "architecture:ARM64" }
  70. targetsuffix "-arm64"
  71. project "PluginBridgeLegacy"
  72. uuid "BDEC2D44-C957-4940-A32B-02824AF6E21D"
  73. language "C++"
  74. location ( "../../build/" .. mpt_projectpathname )
  75. vpaths { ["*"] = "../../" }
  76. mpt_projectname = "PluginBridgeLegacy"
  77. dofile "../../build/premake/premake-defaults-EXEGUI.lua"
  78. dofile "../../build/premake/premake-defaults.lua"
  79. local extincludedirs = {
  80. }
  81. filter { "action:vs*" }
  82. includedirs ( extincludedirs )
  83. filter { "not action:vs*" }
  84. sysincludedirs ( extincludedirs )
  85. filter {}
  86. includedirs {
  87. "../../src",
  88. "../../common",
  89. "$(IntDir)/svn_version",
  90. "../../build/svn_version",
  91. }
  92. files {
  93. "../../src/mpt/**.cpp",
  94. "../../src/mpt/**.hpp",
  95. "../../src/openmpt/**.cpp",
  96. "../../src/openmpt/**.hpp",
  97. "../../pluginBridge/AEffectWrapper.h",
  98. "../../pluginBridge/Bridge.cpp",
  99. "../../pluginBridge/Bridge.h",
  100. "../../pluginBridge/BridgeCommon.h",
  101. "../../pluginBridge/BridgeOpCodes.h",
  102. "../../misc/WriteMemoryDump.h",
  103. "../../common/versionNumber.h",
  104. }
  105. excludes {
  106. "../../src/openmpt/soundbase/**.cpp",
  107. "../../src/openmpt/soundbase/**.hpp",
  108. "../../src/openmpt/sounddevice/**.cpp",
  109. "../../src/openmpt/sounddevice/**.hpp",
  110. }
  111. files {
  112. "../../pluginBridge/PluginBridge.rc",
  113. }
  114. if _OPTIONS["win10"] then
  115. files {
  116. "../../pluginBridge/PluginBridge-win10.manifest",
  117. }
  118. elseif _OPTIONS["win81"] then
  119. files {
  120. "../../pluginBridge/PluginBridge-win81.manifest",
  121. }
  122. elseif _OPTIONS["win7"] then
  123. files {
  124. "../../pluginBridge/PluginBridge-win7.manifest",
  125. }
  126. end
  127. defines { "MODPLUG_TRACKER" }
  128. dpiawareness "None"
  129. largeaddressaware ( false )
  130. filter {}
  131. filter { "action:vs*", "architecture:x86" }
  132. dataexecutionprevention "Off"
  133. filter { "action:vs*", "architecture:x86_64" }
  134. dataexecutionprevention "Off"
  135. filter { "action:vs*", "architecture:ARM" }
  136. -- dataexecutionprevention "Off" -- not supported by windows loader on arm64
  137. filter { "action:vs*", "architecture:ARM64" }
  138. -- dataexecutionprevention "Off" -- not supported by windows loader on arm64
  139. filter {}
  140. characterset "Unicode"
  141. warnings "Extra"
  142. prebuildcommands { "..\\..\\build\\svn_version\\update_svn_version_vs_premake.cmd $(IntDir)" }
  143. filter { "architecture:x86" }
  144. targetsuffix "-x86"
  145. filter { "architecture:x86_64" }
  146. targetsuffix "-amd64"
  147. filter { "architecture:ARM" }
  148. targetsuffix "-arm"
  149. filter { "architecture:ARM64" }
  150. targetsuffix "-arm64"
  151. filter {}
  152. filter {}
  153. filter { "action:vs*", "architecture:x86_64" }
  154. linkoptions { "/HIGHENTROPYVA:NO" }
  155. filter { "action:vs*", "architecture:ARM64" }
  156. linkoptions { "/HIGHENTROPYVA:NO" }
  157. filter {}