Add CMake support

Clean up file structure.
Update build scripts.
This commit is contained in:
Tindy X committed 2019-12-26 20:37:47 +08:00
1 parent e5eb7a4ae2
commit b89a8b1f7c
136 files changed
+326 -88

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
set -xe
apt update
apt install git cmake clang
apt install libevent libcurl openssl pcre
git clone https://github.com/jbeder/yaml-cpp
cd yaml-cpp
cmake -DCMAKE_INSTALL_PREFIX=/data/data/com.termux/files/usr .
make install -j3
cd ..
git clone https://github.com/tencent/rapidjson
cd rapidjson
cp -r include/* /data/data/com.termux/files/usr/include/
cd ..