regenerate_vs_projects.cmd 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. @echo off
  2. set MY_DIR=%CD%
  3. set BATCH_DIR=%~dp0
  4. cd %BATCH_DIR% || goto err
  5. cd .. || goto err
  6. set PREMAKE=
  7. if exist "include\premake\premake5.exe" set PREMAKE=include\premake\premake5.exe
  8. if exist "include\premake\bin\release\premake5.exe" set PREMAKE=include\premake\bin\release\premake5.exe
  9. set GENIE=
  10. set GENIE=include\genie\bin\windows\genie.exe
  11. copy /y include\genie\OpenMPT.txt include\genie\OpenMPT-expected.txt
  12. fc include\genie\OpenMPT-expected.txt include\genie\OpenMPT-version.txt
  13. if errorlevel 1 goto errversion
  14. copy /y include\premake\OpenMPT.txt include\premake\OpenMPT-expected.txt
  15. fc include\premake\OpenMPT-expected.txt include\premake\OpenMPT-version.txt
  16. if errorlevel 1 goto errversion
  17. echo dofile "build/premake/premake.lua" > premake5.lua || goto err
  18. start cmd /c ^( ^
  19. %PREMAKE% --group=libopenmpt_test vs2017 --winxp ^&^& ^
  20. %PREMAKE% --group=in_openmpt vs2017 --winxp ^&^& ^
  21. %PREMAKE% --group=xmp-openmpt vs2017 --winxp ^&^& ^
  22. %PREMAKE% --group=libopenmpt-small vs2017 --winxp ^&^& ^
  23. %PREMAKE% --group=libopenmpt vs2017 --winxp ^&^& ^
  24. %PREMAKE% --group=openmpt123 vs2017 --winxp ^&^& ^
  25. %PREMAKE% --group=PluginBridge vs2017 --winxp ^&^& ^
  26. %PREMAKE% --group=OpenMPT vs2017 --winxp ^&^& ^
  27. %PREMAKE% --group=all-externals vs2017 --winxp ^&^& ^
  28. echo Done ^) ^|^| pause
  29. start cmd /c ^( ^
  30. %PREMAKE% --group=libopenmpt_test vs2017 --win7 ^&^& ^
  31. %PREMAKE% --group=in_openmpt vs2017 --win7 ^&^& ^
  32. %PREMAKE% --group=xmp-openmpt vs2017 --win7 ^&^& ^
  33. %PREMAKE% --group=libopenmpt-small vs2017 --win7 ^&^& ^
  34. %PREMAKE% --group=libopenmpt vs2017 --win7 ^&^& ^
  35. %PREMAKE% --group=openmpt123 vs2017 --win7 ^&^& ^
  36. %PREMAKE% --group=PluginBridge vs2017 --win7 ^&^& ^
  37. %PREMAKE% --group=OpenMPT vs2017 --win7 ^&^& ^
  38. %PREMAKE% --group=all-externals vs2017 --win7 ^&^& ^
  39. echo Done ^) ^|^| pause"
  40. start cmd /c ^( ^
  41. %PREMAKE% --group=libopenmpt_test vs2017 --win10 ^&^& ^
  42. %PREMAKE% --group=in_openmpt vs2017 --win10 ^&^& ^
  43. %PREMAKE% --group=xmp-openmpt vs2017 --win10 ^&^& ^
  44. %PREMAKE% --group=libopenmpt-small vs2017 --win10 ^&^& ^
  45. %PREMAKE% --group=libopenmpt vs2017 --win10 ^&^& ^
  46. %PREMAKE% --group=openmpt123 vs2017 --win10 ^&^& ^
  47. %PREMAKE% --group=PluginBridge vs2017 --win10 ^&^& ^
  48. %PREMAKE% --group=OpenMPT vs2017 --win10 ^&^& ^
  49. %PREMAKE% --group=all-externals vs2017 --win10 ^&^& ^
  50. echo Done ^) ^|^| pause"
  51. start cmd /c ^( ^
  52. %PREMAKE% --group=libopenmpt_test vs2019 --win7 ^&^& ^
  53. %PREMAKE% --group=in_openmpt vs2019 --win7 ^&^& ^
  54. %PREMAKE% --group=xmp-openmpt vs2019 --win7 ^&^& ^
  55. %PREMAKE% --group=libopenmpt-small vs2019 --win7 ^&^& ^
  56. %PREMAKE% --group=libopenmpt vs2019 --win7 ^&^& ^
  57. %PREMAKE% --group=openmpt123 vs2019 --win7 ^&^& ^
  58. %PREMAKE% --group=PluginBridge vs2019 --win7 ^&^& ^
  59. %PREMAKE% --group=OpenMPT vs2019 --win7 ^&^& ^
  60. %PREMAKE% --group=all-externals vs2019 --win7 ^&^& ^
  61. echo Done ^) ^|^| pause"
  62. start cmd /c ^( ^
  63. %PREMAKE% --group=libopenmpt_test vs2019 --win81 ^&^& ^
  64. %PREMAKE% --group=in_openmpt vs2019 --win81 ^&^& ^
  65. %PREMAKE% --group=xmp-openmpt vs2019 --win81 ^&^& ^
  66. %PREMAKE% --group=libopenmpt-small vs2019 --win81 ^&^& ^
  67. %PREMAKE% --group=libopenmpt vs2019 --win81 ^&^& ^
  68. %PREMAKE% --group=openmpt123 vs2019 --win81 ^&^& ^
  69. %PREMAKE% --group=PluginBridge vs2019 --win81 ^&^& ^
  70. %PREMAKE% --group=OpenMPT vs2019 --win81 ^&^& ^
  71. %PREMAKE% --group=all-externals vs2019 --win81 ^&^& ^
  72. echo Done ^) ^|^| pause"
  73. start cmd /c ^( ^
  74. %PREMAKE% --group=libopenmpt_test vs2019 --win10 ^&^& ^
  75. %PREMAKE% --group=in_openmpt vs2019 --win10 ^&^& ^
  76. %PREMAKE% --group=xmp-openmpt vs2019 --win10 ^&^& ^
  77. %PREMAKE% --group=libopenmpt-small vs2019 --win10 ^&^& ^
  78. %PREMAKE% --group=libopenmpt vs2019 --win10 ^&^& ^
  79. %PREMAKE% --group=openmpt123 vs2019 --win10 ^&^& ^
  80. %PREMAKE% --group=PluginBridge vs2019 --win10 ^&^& ^
  81. %PREMAKE% --group=OpenMPT vs2019 --win10 ^&^& ^
  82. %PREMAKE% --group=all-externals vs2019 --win10 ^&^& ^
  83. echo Done ^) ^|^| pause"
  84. start cmd /c ^( ^
  85. %PREMAKE% --group=libopenmpt_test vs2022 --win7 ^&^& ^
  86. %PREMAKE% --group=in_openmpt vs2022 --win7 ^&^& ^
  87. %PREMAKE% --group=xmp-openmpt vs2022 --win7 ^&^& ^
  88. %PREMAKE% --group=libopenmpt-small vs2022 --win7 ^&^& ^
  89. %PREMAKE% --group=libopenmpt vs2022 --win7 ^&^& ^
  90. %PREMAKE% --group=openmpt123 vs2022 --win7 ^&^& ^
  91. %PREMAKE% --group=PluginBridge vs2022 --win7 ^&^& ^
  92. %PREMAKE% --group=OpenMPT vs2022 --win7 ^&^& ^
  93. %PREMAKE% --group=all-externals vs2022 --win7 ^&^& ^
  94. echo Done ^) ^|^| pause"
  95. start cmd /c ^( ^
  96. %PREMAKE% --group=libopenmpt_test vs2022 --win81 ^&^& ^
  97. %PREMAKE% --group=in_openmpt vs2022 --win81 ^&^& ^
  98. %PREMAKE% --group=xmp-openmpt vs2022 --win81 ^&^& ^
  99. %PREMAKE% --group=libopenmpt-small vs2022 --win81 ^&^& ^
  100. %PREMAKE% --group=libopenmpt vs2022 --win81 ^&^& ^
  101. %PREMAKE% --group=openmpt123 vs2022 --win81 ^&^& ^
  102. %PREMAKE% --group=PluginBridge vs2022 --win81 ^&^& ^
  103. %PREMAKE% --group=OpenMPT vs2022 --win81 ^&^& ^
  104. %PREMAKE% --group=all-externals vs2022 --win81 ^&^& ^
  105. echo Done ^) ^|^| pause"
  106. start cmd /c ^( ^
  107. %PREMAKE% --group=libopenmpt_test vs2022 --win10 ^&^& ^
  108. %PREMAKE% --group=in_openmpt vs2022 --win10 ^&^& ^
  109. %PREMAKE% --group=xmp-openmpt vs2022 --win10 ^&^& ^
  110. %PREMAKE% --group=libopenmpt-small vs2022 --win10 ^&^& ^
  111. %PREMAKE% --group=libopenmpt vs2022 --win10 ^&^& ^
  112. %PREMAKE% --group=openmpt123 vs2022 --win10 ^&^& ^
  113. %PREMAKE% --group=PluginBridge vs2022 --win10 ^&^& ^
  114. %PREMAKE% --group=OpenMPT vs2022 --win10 ^&^& ^
  115. %PREMAKE% --group=all-externals vs2022 --win10 ^&^& ^
  116. echo Done ^) ^|^| pause"
  117. start cmd /c ^( ^
  118. %PREMAKE% --group=libopenmpt_test vs2022 --clang --win10 ^&^& ^
  119. %PREMAKE% --group=in_openmpt vs2022 --clang --win10 ^&^& ^
  120. %PREMAKE% --group=xmp-openmpt vs2022 --clang --win10 ^&^& ^
  121. %PREMAKE% --group=libopenmpt-small vs2022 --clang --win10 ^&^& ^
  122. %PREMAKE% --group=libopenmpt vs2022 --clang --win10 ^&^& ^
  123. %PREMAKE% --group=openmpt123 vs2022 --clang --win10 ^&^& ^
  124. %PREMAKE% --group=PluginBridge vs2022 --clang --win10 ^&^& ^
  125. %PREMAKE% --group=OpenMPT vs2022 --clang --win10 ^&^& ^
  126. %PREMAKE% --group=all-externals vs2022 --clang --win10 ^&^& ^
  127. echo Done ^) ^|^| pause"
  128. start cmd /c ^( ^
  129. %PREMAKE% --group=libopenmpt-small vs2019 --win10 --uwp ^&^& ^
  130. %PREMAKE% --group=libopenmpt vs2019 --win10 --uwp ^&^& ^
  131. %PREMAKE% --group=all-externals vs2019 --win10 --uwp ^&^& ^
  132. echo Done ^) ^|^| pause"
  133. start cmd /c ^( ^
  134. %PREMAKE% --group=libopenmpt-small vs2022 --win10 --uwp ^&^& ^
  135. %PREMAKE% --group=libopenmpt vs2022 --win10 --uwp ^&^& ^
  136. %PREMAKE% --group=all-externals vs2022 --win10 --uwp ^&^& ^
  137. echo Done ^) ^|^| pause"
  138. echo dofile "build/genie/genie.lua" > genie.lua || goto err
  139. %GENIE% --target="winstore82" vs2017 || goto err
  140. echo dofile "build/xcode-genie/genie.lua" > genie.lua || goto err
  141. %GENIE% --target="macosx" --os=macosx xcode9 || goto err
  142. %GENIE% --target="iphoneos" --os=macosx xcode9 || goto err
  143. cd %MY_DIR% || goto err
  144. goto end
  145. :errversion
  146. echo Genie or Premake version mismatch
  147. goto err
  148. :err
  149. echo ERROR!
  150. goto end
  151. :end
  152. cd %MY_DIR%
  153. pause