?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. @call ContinuousIntegration\winbuild_priority_for_git_path.bat
  2.  
  3. rem Exploring the VM image and what is available
  4. rem STATUS: no MSC compiler installed in the image? Seems I need to install it myself every build
  5.  
  6. rem DEBUG search for Visual Studio and C compiler, when the windows image does change and paths breaks
  7. path
  8. dir /W "C:\Program Files"
  9. dir /W "C:\Program Files (x86)"
  10.  
  11. dir /W "C:\Program Files (x86)\Microsoft Visual Studio\2019"
  12. dir /W "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
  13. dir /W "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild"
  14. dir "C:\Program Files (x86)\Microsoft Visual Studio\2019\*.bat" /s /b
  15. dir "C:\Program Files (x86)\Microsoft Visual Studio\2019\*.exe" /s /b
  16. dir "C:\ProgramData\chocolatey\bin\*.bat" /s /b
  17. dir "C:\ProgramData\chocolatey\bin\*.exe" /s /b
  18. dir "C:\ProgramData\chocolatey\lib\*.bat" /s /b
  19. dir "C:\ProgramData\chocolatey\lib\*.exe" /s /b
  20.  
  21. dir "C:\Program Files (x86)\Microsoft Visual Studio\*vcvars64.bat" /s /b
  22. dir "C:\Program Files (x86)\Microsoft Visual Studio\*vcvarsall.bat" /s /b
  23.  
  24. rem Setup MSCC (VSC) by calling the vcvars batch file, TODO: rework with "where" or "dir /s /b" output?
  25. rem call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
  26. rem for /f "delims=" %%I in ('dir "%ProgramFiles(x86)%\*vcvars64.bat" /s /b') do call "%%I"
  27. path
  28.  
  29. rem CMAKE windows build with MS compiler
  30. del Makefile
  31. ren Makefile.win Makefile
  32. mkdir build
  33. cd build
  34. @rem cmake --help
  35. cmake --config Release ..
  36. if %ERRORLEVEL% NEQ 0 exit /b 1
  37.  
  38. dir /W
  39. echo "Starting build by running msbuild.exe"
  40. msbuild sjasmplus.vcxproj /property:Configuration=Release
  41. if %ERRORLEVEL% NEQ 0 exit /b 1
  42. echo "installing to c:\tools\sjasmplus"
  43. @echo on
  44. mkdir c:\tools\sjasmplus
  45. copy Debug\sjasmplus.exe c:\tools\sjasmplus\sjasmplus.exe
  46. copy Release\sjasmplus.exe c:\tools\sjasmplus\sjasmplus.exe
  47. rem check installation and paths
  48. dir /N c:\tools\sjasmplus
  49. sjasmplus.exe --version
  50. sjasmplus.exe --help
  51.