build_wine_support.cmd 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. rem @echo off
  2. set CUR_DIR=%CD%
  3. set BATCH_DIR=%~dp0
  4. set INTDIR=%1
  5. set OUTDIR=%2
  6. cd %BATCH_DIR%
  7. cd ..\..
  8. del /f /q "%OUTDIR%\openmpt-wine-support.zip"
  9. "C:\Program Files\7-Zip\7z.exe" a -tzip -mm=Deflate -mx=9 openmpt-wine-support.zip ^
  10. LICENSE ^
  11. include\nlohmann-json\LICENSE.MIT ^
  12. include\nlohmann-json\include\nlohmann\*.hpp ^
  13. include\nlohmann-json\include\nlohmann\detail\*.hpp ^
  14. include\nlohmann-json\include\nlohmann\detail\conversions\*.hpp ^
  15. include\nlohmann-json\include\nlohmann\detail\input\*.hpp ^
  16. include\nlohmann-json\include\nlohmann\detail\iterators\*.hpp ^
  17. include\nlohmann-json\include\nlohmann\detail\meta\*.hpp ^
  18. include\nlohmann-json\include\nlohmann\detail\meta\call_std\*.hpp ^
  19. include\nlohmann-json\include\nlohmann\detail\output\*.hpp ^
  20. include\nlohmann-json\include\nlohmann\thirdparty\hedley\*.hpp ^
  21. include\rtkit\rtkit.c ^
  22. include\rtkit\rtkit.h ^
  23. src\mpt\audio\*.hpp ^
  24. src\mpt\base\*.hpp ^
  25. src\mpt\base\tests\*.hpp ^
  26. src\mpt\binary\*.hpp ^
  27. src\mpt\binary\tests\*.hpp ^
  28. src\mpt\check\*.hpp ^
  29. src\mpt\crc\*.hpp ^
  30. src\mpt\crc\tests\*.hpp ^
  31. src\mpt\crypto\*.hpp ^
  32. src\mpt\crypto\tests\*.hpp ^
  33. src\mpt\detect\*.hpp ^
  34. src\mpt\endian\*.hpp ^
  35. src\mpt\endian\tests\*.hpp ^
  36. src\mpt\environment\*.hpp ^
  37. src\mpt\exception_text\*.hpp ^
  38. src\mpt\format\*.hpp ^
  39. src\mpt\format\test\*.hpp ^
  40. src\mpt\io\*.hpp ^
  41. src\mpt\io\tests\*.hpp ^
  42. src\mpt\io_read\*.hpp ^
  43. src\mpt\io_write\*.hpp ^
  44. src\mpt\json\*.hpp ^
  45. src\mpt\library\*.hpp ^
  46. src\mpt\mutex\*.hpp ^
  47. src\mpt\osinfo\*.hpp ^
  48. src\mpt\parse\*.hpp ^
  49. src\mpt\parse\tests\*.hpp ^
  50. src\mpt\path\*.hpp ^
  51. src\mpt\out_of_memory\*.hpp ^
  52. src\mpt\random\*.hpp ^
  53. src\mpt\random\tests\*.hpp ^
  54. src\mpt\string\*.hpp ^
  55. src\mpt\string\tests\*.hpp ^
  56. src\mpt\string_transcode\*.hpp ^
  57. src\mpt\string_transcode\tests\*.hpp ^
  58. src\mpt\system_error\*.hpp ^
  59. src\mpt\test\*.hpp ^
  60. src\mpt\uuid\*.hpp ^
  61. src\mpt\uuid\test\*.hpp ^
  62. src\mpt\uuid_namespace\*.hpp ^
  63. src\mpt\uuid_namespace\tests\*.hpp ^
  64. src\openmpt\all\*.cpp ^
  65. src\openmpt\all\*.hpp ^
  66. src\openmpt\base\*.cpp ^
  67. src\openmpt\base\*.hpp ^
  68. src\openmpt\logging\*.cpp ^
  69. src\openmpt\logging\*.hpp ^
  70. src\openmpt\random\*.cpp ^
  71. src\openmpt\random\*.hpp ^
  72. src\openmpt\soundbase\*.cpp ^
  73. src\openmpt\soundbase\*.hpp ^
  74. src\openmpt\sounddevice\*.cpp ^
  75. src\openmpt\sounddevice\*.hpp ^
  76. common\*.h ^
  77. common\*.cpp ^
  78. misc\*.h ^
  79. misc\*.cpp ^
  80. mptrack\wine\*.h ^
  81. mptrack\wine\*.cpp ^
  82. mptrack\wine\*.c ^
  83. build\wine\dialog.sh ^
  84. build\wine\native_support.mk ^
  85. build\wine\wine_wrapper.mk ^
  86. build\wine\wine_wrapper.spec ^
  87. build\wine\deps\*.txt ^
  88. || goto error
  89. cd %BATCH_DIR%
  90. mkdir "%OUTDIR%"
  91. move ..\..\openmpt-wine-support.zip "%OUTDIR%\" || goto error
  92. goto noerror
  93. :error
  94. exit 1
  95. :noerror
  96. exit 0