prepare_solution_linux.sh 985 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/bin/bash
  2. #
  3. # Copyright (c) Contributors to the Open 3D Engine Project.
  4. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. #
  6. # SPDX-License-Identifier: Apache-2.0 OR MIT
  7. #
  8. # Build
  9. mkdir build
  10. mkdir build/release
  11. mkdir build/debug
  12. CMAKE='cmake'
  13. $CMAKE -DMAKE_BUILD_TYPE=Release -S "src/external/antlr4/runtime/Cpp/" -B "build/release/external/antlr4/runtime/Cpp/"
  14. pushd build/release/external/antlr4/runtime/Cpp
  15. make -j16
  16. popd
  17. $CMAKE -DMAKE_BUILD_TYPE=Release -S "src/" -B "build/release"
  18. pushd build/release
  19. echo "Building release..."
  20. make -j16
  21. ls
  22. echo "Release version:"
  23. ./azslc --version
  24. popd
  25. $CMAKE -DMAKE_BUILD_TYPE=Debug -S "src/" -B "build/debug"
  26. pushd build/debug
  27. echo "Building debug..."
  28. make -j16
  29. ls
  30. echo "Debug version:"
  31. ./azslc --version
  32. popd
  33. # Deploy
  34. mkdir bin
  35. mkdir bin/linux
  36. mkdir bin/linux/release
  37. mkdir bin/linux/debug
  38. cp build/release/azslc bin/linux/release/azslc
  39. cp build/debug/azslc bin/linux/debug/azslc