build-deps.sh 631 B

123456789101112131415161718192021222324252627282930
  1. #! /bin/sh
  2. #
  3. # Copyright (c), Recep Aslantas.
  4. #
  5. # MIT License (MIT), http://opensource.org/licenses/MIT
  6. # Full license can be found in the LICENSE file
  7. #
  8. # check if deps are pulled
  9. git submodule update --init --recursive
  10. # fix glibtoolize
  11. cd $(dirname "$0")
  12. if [ "$(uname)" = "Darwin" ]; then
  13. libtoolBin=$(which glibtoolize)
  14. libtoolBinDir=$(dirname "${libtoolBin}")
  15. ln -s $libtoolBin "${libtoolBinDir}/libtoolize"
  16. fi
  17. # general deps: gcc make autoconf automake libtool cmake
  18. # test - cmocka
  19. cd ./test/lib/cmocka
  20. mkdir build
  21. cd build
  22. cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ..
  23. make -j8
  24. cd ../../../../