regenerate_vs_projects.sh 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. #!/usr/bin/env bash
  2. set -e
  3. MY_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  4. echo $MY_DIR
  5. cd "${MY_DIR}"
  6. cd ..
  7. GENIE=include/genie/bin/linux/genie
  8. PREMAKE=include/premake/bin/release/premake5
  9. cp include/genie/OpenMPT.txt include/genie/OpenMPT-expected.txt
  10. if ! diff include/genie/OpenMPT-expected.txt include/genie/OpenMPT-version.txt >/dev/null ; then
  11. echo "Genie version mismatch"
  12. exit 1
  13. fi
  14. cp include/premake/OpenMPT.txt include/premake/OpenMPT-expected.txt
  15. if ! diff include/premake/OpenMPT-expected.txt include/premake/OpenMPT-version.txt >/dev/null ; then
  16. echo "Premake version mismatch"
  17. exit 1
  18. fi
  19. echo dofile \"build/premake/premake.lua\" > premake5.lua
  20. ${PREMAKE} --group=libopenmpt_test vs2017 --winxp && \
  21. ${PREMAKE} --group=in_openmpt vs2017 --winxp && \
  22. ${PREMAKE} --group=xmp-openmpt vs2017 --winxp && \
  23. ${PREMAKE} --group=libopenmpt-small vs2017 --winxp && \
  24. ${PREMAKE} --group=libopenmpt vs2017 --winxp && \
  25. ${PREMAKE} --group=openmpt123 vs2017 --winxp && \
  26. ${PREMAKE} --group=PluginBridge vs2017 --winxp && \
  27. ${PREMAKE} --group=OpenMPT vs2017 --winxp && \
  28. ${PREMAKE} --group=all-externals vs2017 --winxp && \
  29. echo ok &
  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 ok &
  40. ${PREMAKE} --group=libopenmpt_test vs2017 --win10 && \
  41. ${PREMAKE} --group=in_openmpt vs2017 --win10 && \
  42. ${PREMAKE} --group=xmp-openmpt vs2017 --win10 && \
  43. ${PREMAKE} --group=libopenmpt-small vs2017 --win10 && \
  44. ${PREMAKE} --group=libopenmpt vs2017 --win10 && \
  45. ${PREMAKE} --group=openmpt123 vs2017 --win10 && \
  46. ${PREMAKE} --group=PluginBridge vs2017 --win10 && \
  47. ${PREMAKE} --group=OpenMPT vs2017 --win10 && \
  48. ${PREMAKE} --group=all-externals vs2017 --win10 && \
  49. echo ok &
  50. ${PREMAKE} --group=libopenmpt_test vs2019 --win7 && \
  51. ${PREMAKE} --group=in_openmpt vs2019 --win7 && \
  52. ${PREMAKE} --group=xmp-openmpt vs2019 --win7 && \
  53. ${PREMAKE} --group=libopenmpt-small vs2019 --win7 && \
  54. ${PREMAKE} --group=libopenmpt vs2019 --win7 && \
  55. ${PREMAKE} --group=openmpt123 vs2019 --win7 && \
  56. ${PREMAKE} --group=PluginBridge vs2019 --win7 && \
  57. ${PREMAKE} --group=OpenMPT vs2019 --win7 && \
  58. ${PREMAKE} --group=all-externals vs2019 --win7 && \
  59. echo ok &
  60. ${PREMAKE} --group=libopenmpt_test vs2019 --win81 && \
  61. ${PREMAKE} --group=in_openmpt vs2019 --win81 && \
  62. ${PREMAKE} --group=xmp-openmpt vs2019 --win81 && \
  63. ${PREMAKE} --group=libopenmpt-small vs2019 --win81 && \
  64. ${PREMAKE} --group=libopenmpt vs2019 --win81 && \
  65. ${PREMAKE} --group=openmpt123 vs2019 --win81 && \
  66. ${PREMAKE} --group=PluginBridge vs2019 --win81 && \
  67. ${PREMAKE} --group=OpenMPT vs2019 --win81 && \
  68. ${PREMAKE} --group=all-externals vs2019 --win81 && \
  69. echo ok &
  70. ${PREMAKE} --group=libopenmpt_test vs2019 --win10 && \
  71. ${PREMAKE} --group=in_openmpt vs2019 --win10 && \
  72. ${PREMAKE} --group=xmp-openmpt vs2019 --win10 && \
  73. ${PREMAKE} --group=libopenmpt-small vs2019 --win10 && \
  74. ${PREMAKE} --group=libopenmpt vs2019 --win10 && \
  75. ${PREMAKE} --group=openmpt123 vs2019 --win10 && \
  76. ${PREMAKE} --group=PluginBridge vs2019 --win10 && \
  77. ${PREMAKE} --group=OpenMPT vs2019 --win10 && \
  78. ${PREMAKE} --group=all-externals vs2019 --win10 && \
  79. echo ok &
  80. ${PREMAKE} --group=libopenmpt_test vs2022 --win7 && \
  81. ${PREMAKE} --group=in_openmpt vs2022 --win7 && \
  82. ${PREMAKE} --group=xmp-openmpt vs2022 --win7 && \
  83. ${PREMAKE} --group=libopenmpt-small vs2022 --win7 && \
  84. ${PREMAKE} --group=libopenmpt vs2022 --win7 && \
  85. ${PREMAKE} --group=openmpt123 vs2022 --win7 && \
  86. ${PREMAKE} --group=PluginBridge vs2022 --win7 && \
  87. ${PREMAKE} --group=OpenMPT vs2022 --win7 && \
  88. ${PREMAKE} --group=all-externals vs2022 --win7 && \
  89. echo ok &
  90. ${PREMAKE} --group=libopenmpt_test vs2022 --win81 && \
  91. ${PREMAKE} --group=in_openmpt vs2022 --win81 && \
  92. ${PREMAKE} --group=xmp-openmpt vs2022 --win81 && \
  93. ${PREMAKE} --group=libopenmpt-small vs2022 --win81 && \
  94. ${PREMAKE} --group=libopenmpt vs2022 --win81 && \
  95. ${PREMAKE} --group=openmpt123 vs2022 --win81 && \
  96. ${PREMAKE} --group=PluginBridge vs2022 --win81 && \
  97. ${PREMAKE} --group=OpenMPT vs2022 --win81 && \
  98. ${PREMAKE} --group=all-externals vs2022 --win81 && \
  99. echo ok &
  100. ${PREMAKE} --group=libopenmpt_test vs2022 --win10 && \
  101. ${PREMAKE} --group=in_openmpt vs2022 --win10 && \
  102. ${PREMAKE} --group=xmp-openmpt vs2022 --win10 && \
  103. ${PREMAKE} --group=libopenmpt-small vs2022 --win10 && \
  104. ${PREMAKE} --group=libopenmpt vs2022 --win10 && \
  105. ${PREMAKE} --group=openmpt123 vs2022 --win10 && \
  106. ${PREMAKE} --group=PluginBridge vs2022 --win10 && \
  107. ${PREMAKE} --group=OpenMPT vs2022 --win10 && \
  108. ${PREMAKE} --group=all-externals vs2022 --win10 && \
  109. echo ok &
  110. ${PREMAKE} --group=libopenmpt_test vs2022 --clang --win10 && \
  111. ${PREMAKE} --group=in_openmpt vs2022 --clang --win10 && \
  112. ${PREMAKE} --group=xmp-openmpt vs2022 --clang --win10 && \
  113. ${PREMAKE} --group=libopenmpt-small vs2022 --clang --win10 && \
  114. ${PREMAKE} --group=libopenmpt vs2022 --clang --win10 && \
  115. ${PREMAKE} --group=openmpt123 vs2022 --clang --win10 && \
  116. ${PREMAKE} --group=PluginBridge vs2022 --clang --win10 && \
  117. ${PREMAKE} --group=OpenMPT vs2022 --clang --win10 && \
  118. ${PREMAKE} --group=all-externals vs2022 --clang --win10 && \
  119. echo ok &
  120. ${PREMAKE} --group=libopenmpt-small vs2019 --win10 --uwp && \
  121. ${PREMAKE} --group=libopenmpt vs2019 --win10 --uwp && \
  122. ${PREMAKE} --group=all-externals vs2019 --win10 --uwp && \
  123. echo ok &
  124. ${PREMAKE} --group=libopenmpt-small vs2022 --win10 --uwp && \
  125. ${PREMAKE} --group=libopenmpt vs2022 --win10 --uwp && \
  126. ${PREMAKE} --group=all-externals vs2022 --win10 --uwp && \
  127. echo ok &
  128. echo dofile \"build/genie/genie.lua\" > genie.lua
  129. ${GENIE} --target="winstore82" vs2017
  130. echo dofile \"build/xcode-genie/genie.lua\" > genie.lua
  131. ${GENIE} --target="macosx" --os=macosx xcode9
  132. ${GENIE} --target="iphoneos" --os=macosx xcode9
  133. wait