build.sh 749 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/bash
  2. echo "Building ${PKG_NAME}."
  3. # Isolate the build.
  4. mkdir -p build
  5. cd build || exit 1
  6. # Generate the build files.
  7. echo "Generating the build files..."
  8. cmake .. ${CMAKE_ARGS} \
  9. -GNinja \
  10. -DCMAKE_PREFIX_PATH=$PREFIX \
  11. -DCMAKE_INSTALL_PREFIX=$PREFIX \
  12. -DCMAKE_BUILD_TYPE=Release \
  13. -DCMAKE_INSTALL_LIBDIR=lib \
  14. -DENABLE_CONDA=ON \
  15. -DMULTI_SEMANTICS=ON \
  16. -DENABLE_PCRE2=ON \
  17. -DENABLE_STATIC=ON
  18. # Build.
  19. echo "Building..."
  20. ninja || exit 1
  21. # Perform tests.
  22. # echo "Testing..."
  23. # ninja test || exit 1
  24. # path_to/test || exit 1
  25. # ctest -VV --output-on-failure || exit 1
  26. # Installing
  27. #echo "Installing..."
  28. #ninja install || exit 1
  29. # Error free exit!
  30. echo "Error free exit!"
  31. exit 0