Added build scripts

This commit is contained in:
WolverinDEV 2018-08-08 14:21:32 +00:00
parent 2bf3088c77
commit 911423f867
15 changed files with 83 additions and 1 deletions

View File

@ -15,4 +15,29 @@ mkdir -p \
Thread-Pool/build \
tomcrypt/build \
tommath/build \
yaml-cpp/build
yaml-cpp/build \
protobuf/build
function exec_script() {
echo "Executing ${1}"
./${1}
if [ $? -ne 0 ]; then
echo "Failed to execute ${1}"
exit 1
fi
}
exec_script build_boringssl.sh
exec_script build_breakpad.sh
exec_script build_cxxterminal.sh
exec_script build_datapipes.sh
exec_script build_ed25519.sh
exec_script build_event.sh
exec_script build_jsoncpp.sh
exec_script build_mysqlconnector.sh
exec_script build_opus.sh
exec_script build_protobuf.sh
exec_script build_spdlog.sh
exec_script build_stringvariable.sh
exec_script build_threadpool.sh
exec_script build_tom.sh
exec_script build_yaml.sh

4
libraries/build_boringssl.sh Executable file
View File

@ -0,0 +1,4 @@
cd boringssl/build/
sudo apt-get install golang-go
cmake .. -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE="Release"
make -j 12

6
libraries/build_breakpad.sh Executable file
View File

@ -0,0 +1,6 @@
cd breakpad/
git clone https://chromium.googlesource.com/linux-syscall-support src/third_party/lss
cd build
../configure
make CXXFLAGS="-std=c++11"
#sudo make install

6
libraries/build_datapipes.sh Normal file → Executable file
View File

@ -0,0 +1,6 @@
cd DataPipes/
sudo apt-get install libnice-dev
./build_usrsctp.sh
cd build
cmake .. -DBUILD_TESTS=OFF
make -j 12

3
libraries/build_ed25519.sh Executable file
View File

@ -0,0 +1,3 @@
cd ed25519/build/
cmake ..
make -j 12

3
libraries/build_event.sh Executable file
View File

@ -0,0 +1,3 @@
cd event/build/
cmake .. -DCMAKE_C_FLAGS="-fPIC"
make -j 12

4
libraries/build_jsoncpp.sh Executable file
View File

@ -0,0 +1,4 @@
cd jsoncpp/build
cmake ..
make -j 12 CXX_FLAGS="-std=c++11 -fPIC"

View File

@ -0,0 +1,3 @@
cd mysqlconnector/build
cmake .. -DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++" -DWITH_JDBC=ON
make -j 12

5
libraries/build_opus.sh Executable file
View File

@ -0,0 +1,5 @@
cd opus
./autogen.sh
cd build
../configure
make

5
libraries/build_protobuf.sh Executable file
View File

@ -0,0 +1,5 @@
cd protobuf
./autogen.sh
cd build
../configure
make

3
libraries/build_spdlog.sh Executable file
View File

@ -0,0 +1,3 @@
cd spdlog/build/
cmake ..
make -j 12

View File

@ -0,0 +1,3 @@
cd StringVariable/build/
cmake ..
make -j 12

3
libraries/build_threadpool.sh Executable file
View File

@ -0,0 +1,3 @@
cd Thread-Pool/build/
cmake ..
make -j 12

5
libraries/build_tom.sh Executable file
View File

@ -0,0 +1,5 @@
cd tommath/build
cmake ..
make -j 12
cd ../../tomcrypt/
chmod +x create_build.sh && ./create_build.sh

4
libraries/build_yaml.sh Normal file
View File

@ -0,0 +1,4 @@
cd yaml-cpp/build/
cmake .. -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_SHARED_LIBS=Release
make -j 12 CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 -fPIC"