config.termux.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/bash
  2. set -xe
  3. apt update
  4. apt install -y git cmake clang pkg-config
  5. apt install -y libcurl openssl pcre2
  6. git clone https://github.com/jbeder/yaml-cpp --depth=1
  7. cd yaml-cpp
  8. cmake -DCMAKE_INSTALL_PREFIX=$PREFIX -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF .
  9. make install -j3
  10. cd ..
  11. git clone https://github.com/tencent/rapidjson --depth=1
  12. cd rapidjson
  13. cp -r include/* $PREFIX/include/
  14. cd ..
  15. git clone https://github.com/ftk/quickjspp --depth=1
  16. cd quickjspp
  17. cmake -DCMAKE_BUILD_TYPE=Release .
  18. make quickjs -j3
  19. install -d $PREFIX/lib/quickjs/
  20. install -m644 quickjs/libquickjs.a $PREFIX/lib/quickjs/
  21. install -d $PREFIX/include/quickjs/
  22. install -m644 quickjs/quickjs.h quickjs/quickjs-libc.h $PREFIX/include/quickjs/
  23. install -m644 quickjspp.hpp $PREFIX/include/
  24. cd ..
  25. git clone https://github.com/PerMalmberg/libcron --depth=1
  26. cd libcron
  27. git submodule update --init
  28. cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX .
  29. make libcron install -j3
  30. cd ..
  31. git clone https://github.com/ToruNiina/toml11 --depth=1
  32. cd toml11
  33. cmake -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_CXX_STANDARD=11 .
  34. make install -j3
  35. cd ..