Updated windows build
This commit is contained in:
parent
bdb34e6474
commit
dfc3e08681
2
third_party/DataPipes
vendored
2
third_party/DataPipes
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 4f199d074580a6cf591b6300024c09f4e5101326
|
Subproject commit 6803c93043aa1ec2ab962c99921e83144dc067ae
|
7
third_party/build.sh
vendored
7
third_party/build.sh
vendored
@ -3,7 +3,12 @@
|
|||||||
# Enter third_party/ directory
|
# Enter third_party/ directory
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
export build_helper_file="../build-helpers/build_helper.sh"
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
begin_task "build_third_party" "Building libraries"
|
begin_task "build_third_party" "Building libraries"
|
||||||
|
|
||||||
function exec_script() {
|
function exec_script() {
|
||||||
|
12
third_party/build_boringssl.sh
vendored
12
third_party/build_boringssl.sh
vendored
@ -1,6 +1,16 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
[[ -z "${build_helper_file}" ]] && {
|
||||||
|
echo "Missing build helper file. Please define \"build_helper_file\""
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
library_path="boringssl"
|
library_path="boringssl"
|
||||||
requires_rebuild ${library_path}
|
requires_rebuild ${library_path}
|
||||||
[[ $? -eq 0 ]] && exit 0
|
[[ $? -eq 0 ]] && exit 0
|
||||||
|
13
third_party/build_breakpad.sh
vendored
13
third_party/build_breakpad.sh
vendored
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
[[ -z "${build_helper_file}" ]] && {
|
||||||
|
echo "Missing build helper file. Please define \"build_helper_file\""
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
library_path="breakpad"
|
library_path="breakpad"
|
||||||
requires_rebuild ${library_path}
|
requires_rebuild ${library_path}
|
||||||
@ -27,4 +36,4 @@ cd ../..
|
|||||||
|
|
||||||
# cmake_build ${library_path} -DCMAKE_C_FLAGS="-fPIC -I../../boringssl/include/" -DEVENT__DISABLE_TESTS=ON -DEVENT__DISABLE_OPENSSL=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
# cmake_build ${library_path} -DCMAKE_C_FLAGS="-fPIC -I../../boringssl/include/" -DEVENT__DISABLE_TESTS=ON -DEVENT__DISABLE_OPENSSL=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||||
# check_err_exit ${library_path} "Failed to build libevent!"
|
# check_err_exit ${library_path} "Failed to build libevent!"
|
||||||
set_build_successful ${library_path}
|
set_build_successful ${library_path}
|
||||||
|
13
third_party/build_cxxterminal.sh
vendored
13
third_party/build_cxxterminal.sh
vendored
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
[[ -z "${build_helper_file}" ]] && {
|
||||||
|
echo "Missing build helper file. Please define \"build_helper_file\""
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
library_path="CXXTerminal"
|
library_path="CXXTerminal"
|
||||||
requires_rebuild ${library_path}
|
requires_rebuild ${library_path}
|
||||||
@ -10,4 +19,4 @@ _fpic=""
|
|||||||
[[ ${build_os_type} == "linux" ]] && _fpic="-fPIC"
|
[[ ${build_os_type} == "linux" ]] && _fpic="-fPIC"
|
||||||
cmake_build ${library_path} -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_CXX_FLAGS="${_fpic}" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_LIBEVENT=ON -DNO_EMBETTED_LIBEVENT=ON -DLibevent_DIR="`pwd`/libevent/out/${build_os_type}_${build_os_arch}/"
|
cmake_build ${library_path} -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_CXX_FLAGS="${_fpic}" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_LIBEVENT=ON -DNO_EMBETTED_LIBEVENT=ON -DLibevent_DIR="`pwd`/libevent/out/${build_os_type}_${build_os_arch}/"
|
||||||
check_err_exit ${library_path} "Failed to build CXXTerminal!"
|
check_err_exit ${library_path} "Failed to build CXXTerminal!"
|
||||||
set_build_successful ${library_path}
|
set_build_successful ${library_path}
|
||||||
|
13
third_party/build_datapipes.sh
vendored
13
third_party/build_datapipes.sh
vendored
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
[[ -z "${build_helper_file}" ]] && {
|
||||||
|
echo "Missing build helper file. Please define \"build_helper_file\""
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
library_path="DataPipes"
|
library_path="DataPipes"
|
||||||
requires_rebuild ${library_path}
|
requires_rebuild ${library_path}
|
||||||
@ -34,4 +43,4 @@ _cxx_options=""
|
|||||||
[[ ${build_os_type} == "win32" ]] && _cxx_options="-DWIN32"
|
[[ ${build_os_type} == "win32" ]] && _cxx_options="-DWIN32"
|
||||||
cmake_build ${library_path} -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED=OFF -DCrypto_ROOT_DIR="`pwd`/boringssl/" -DCRYPTO_TYPE="boringssl" -DCMAKE_CXX_FLAGS="${_cxx_options}" -DBUILD_TESTS=OFF -DBUILD_WEBRTC=OFF -DMSVC_RUNTIME=static
|
cmake_build ${library_path} -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED=OFF -DCrypto_ROOT_DIR="`pwd`/boringssl/" -DCRYPTO_TYPE="boringssl" -DCMAKE_CXX_FLAGS="${_cxx_options}" -DBUILD_TESTS=OFF -DBUILD_WEBRTC=OFF -DMSVC_RUNTIME=static
|
||||||
check_err_exit ${library_path} "Failed to build DataPipes!"
|
check_err_exit ${library_path} "Failed to build DataPipes!"
|
||||||
set_build_successful ${library_path}
|
set_build_successful ${library_path}
|
||||||
|
13
third_party/build_ed25519.sh
vendored
13
third_party/build_ed25519.sh
vendored
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
[[ -z "${build_helper_file}" ]] && {
|
||||||
|
echo "Missing build helper file. Please define \"build_helper_file\""
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
library_path="ed25519"
|
library_path="ed25519"
|
||||||
requires_rebuild ${library_path}
|
requires_rebuild ${library_path}
|
||||||
@ -19,4 +28,4 @@ crypto_include="`pwd`/boringssl/include/"
|
|||||||
#-L`pwd`/boringssl/build/ssl/ -L`pwd`/boringssl/build/crypto/
|
#-L`pwd`/boringssl/build/ssl/ -L`pwd`/boringssl/build/crypto/
|
||||||
cmake_build ${library_path} -DCMAKE_C_FLAGS="${_fpic} -I$crypto_include" -DUSE_OPENSSL=OFF -DBUILD_TESTS=OFF -DCMAKE_CXX_FLAGS="${_fpic}" -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
cmake_build ${library_path} -DCMAKE_C_FLAGS="${_fpic} -I$crypto_include" -DUSE_OPENSSL=OFF -DBUILD_TESTS=OFF -DCMAKE_CXX_FLAGS="${_fpic}" -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||||
check_err_exit ${library_path} "Failed to build ed25519!"
|
check_err_exit ${library_path} "Failed to build ed25519!"
|
||||||
set_build_successful ${library_path}
|
set_build_successful ${library_path}
|
||||||
|
13
third_party/build_jemalloc.sh
vendored
13
third_party/build_jemalloc.sh
vendored
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
[[ -z "${build_helper_file}" ]] && {
|
||||||
|
echo "Missing build helper file. Please define \"build_helper_file\""
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
library_path="jemalloc"
|
library_path="jemalloc"
|
||||||
requires_rebuild ${library_path}
|
requires_rebuild ${library_path}
|
||||||
@ -54,4 +63,4 @@ if [[ $? -ne 0 ]]; then #Workaround because the install fails
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cd ../../../
|
cd ../../../
|
||||||
set_build_successful ${library_path}
|
set_build_successful ${library_path}
|
||||||
|
11
third_party/build_jsoncpp.sh
vendored
11
third_party/build_jsoncpp.sh
vendored
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
[[ -z "${build_helper_file}" ]] && {
|
||||||
|
echo "Missing build helper file. Please define \"build_helper_file\""
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
library_path="jsoncpp"
|
library_path="jsoncpp"
|
||||||
requires_rebuild ${library_path}
|
requires_rebuild ${library_path}
|
||||||
|
13
third_party/build_libevent.sh
vendored
13
third_party/build_libevent.sh
vendored
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
[[ -z "${build_helper_file}" ]] && {
|
||||||
|
echo "Missing build helper file. Please define \"build_helper_file\""
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
library_path="libevent"
|
library_path="libevent"
|
||||||
requires_rebuild ${library_path}
|
requires_rebuild ${library_path}
|
||||||
@ -11,7 +20,7 @@ _fpic=""
|
|||||||
|
|
||||||
make_targets=("event_static")
|
make_targets=("event_static")
|
||||||
[[ ${build_os_type} == "linux" ]] && make_targets+=("event_pthreads_static")
|
[[ ${build_os_type} == "linux" ]] && make_targets+=("event_pthreads_static")
|
||||||
#cmake ../../ -G"Visual Studio 14 2015 Win64" -DEVENT_INSTALL_CMAKE_DIR=cmake -DCMAKE_INSTALL_PREFIX=. -DEVENT__DISABLE_BENCHMARK=ON -DEVENT__LIBRARY_TYPE=BOTH -DEVENT__MSVC_STATIC_RUNTIME=ON -DEVENT__DISABLE_TESTS=ON -DEVENT__DISABLE_SAMPLES=ON -DEVENT__DISABLE_OPENSSL=ON
|
#cmake ../../ -G"Visual Studio 16 2019" -DEVENT_INSTALL_CMAKE_DIR=cmake -DCMAKE_INSTALL_PREFIX=. -DEVENT__DISABLE_BENCHMARK=ON -DEVENT__LIBRARY_TYPE=BOTH -DEVENT__MSVC_STATIC_RUNTIME=ON -DEVENT__DISABLE_TESTS=ON -DEVENT__DISABLE_SAMPLES=ON -DEVENT__DISABLE_OPENSSL=ON
|
||||||
cmake_build ${library_path} -DCMAKE_C_FLAGS="${_fpic} -I../../boringssl/include/" -DEVENT__DISABLE_BENCHMARK=ON -DEVENT__LIBRARY_TYPE=STATIC -DEVENT__MSVC_STATIC_RUNTIME=ON -DEVENT__DISABLE_TESTS=ON -DEVENT__DISABLE_SAMPLES=ON -DEVENT__DISABLE_OPENSSL=ON -DCMAKE_BUILD_TYPE="Release"
|
cmake_build ${library_path} -DCMAKE_C_FLAGS="${_fpic} -I../../boringssl/include/" -DEVENT__DISABLE_BENCHMARK=ON -DEVENT__LIBRARY_TYPE=STATIC -DEVENT__MSVC_STATIC_RUNTIME=ON -DEVENT__DISABLE_TESTS=ON -DEVENT__DISABLE_SAMPLES=ON -DEVENT__DISABLE_OPENSSL=ON -DCMAKE_BUILD_TYPE="Release"
|
||||||
check_err_exit ${library_path} "Failed to build libevent!"
|
check_err_exit ${library_path} "Failed to build libevent!"
|
||||||
set_build_successful ${library_path}
|
set_build_successful ${library_path}
|
||||||
|
13
third_party/build_libfvad.sh
vendored
13
third_party/build_libfvad.sh
vendored
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
[[ -z "${build_helper_file}" ]] && {
|
||||||
|
echo "Missing build helper file. Please define \"build_helper_file\""
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
library_path="libfvad"
|
library_path="libfvad"
|
||||||
requires_rebuild ${library_path}
|
requires_rebuild ${library_path}
|
||||||
@ -10,4 +19,4 @@ _fpic=""
|
|||||||
[[ ${build_os_type} == "linux" ]] && _fpic="-fPIC"
|
[[ ${build_os_type} == "linux" ]] && _fpic="-fPIC"
|
||||||
cmake_build ${library_path} -DCMAKE_C_FLAGS="${_fpic}" -DBUILD_TESTS=OFF -DCMAKE_CXX_FLAGS="${_fpic}" -DBUILD_TESTS=OFF -DBUILD_SHARED=OFF -DBUILD_STATIC=ON -DBUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Release
|
cmake_build ${library_path} -DCMAKE_C_FLAGS="${_fpic}" -DBUILD_TESTS=OFF -DCMAKE_CXX_FLAGS="${_fpic}" -DBUILD_TESTS=OFF -DBUILD_SHARED=OFF -DBUILD_STATIC=ON -DBUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Release
|
||||||
check_err_exit ${library_path} "Failed to build ed25519!"
|
check_err_exit ${library_path} "Failed to build ed25519!"
|
||||||
set_build_successful ${library_path}
|
set_build_successful ${library_path}
|
||||||
|
4
third_party/build_mysqlconnector.sh
vendored
4
third_party/build_mysqlconnector.sh
vendored
@ -1,7 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
|
||||||
|
|
||||||
library_path="mysqlconnector"
|
library_path="mysqlconnector"
|
||||||
requires_rebuild ${library_path}
|
requires_rebuild ${library_path}
|
||||||
[[ $? -eq 0 ]] && exit 0
|
[[ $? -eq 0 ]] && exit 0
|
||||||
@ -22,4 +20,4 @@ cd ..
|
|||||||
|
|
||||||
cmake_build ${library_path} -DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -I`pwd`/boringssl/include/" -DWITH_JDBC=ON -DWITH_SSL="`pwd`/boringssl/" -DOPENSSL_ROOT_DIR="`pwd`/boringssl/" -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
cmake_build ${library_path} -DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -I`pwd`/boringssl/include/" -DWITH_JDBC=ON -DWITH_SSL="`pwd`/boringssl/" -DOPENSSL_ROOT_DIR="`pwd`/boringssl/" -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||||
check_err_exit ${library_path} "Failed to build mysqlconnector!"
|
check_err_exit ${library_path} "Failed to build mysqlconnector!"
|
||||||
set_build_successful ${library_path}
|
set_build_successful ${library_path}
|
||||||
|
13
third_party/build_opus.sh
vendored
13
third_party/build_opus.sh
vendored
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
[[ -z "${build_helper_file}" ]] && {
|
||||||
|
echo "Missing build helper file. Please define \"build_helper_file\""
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
library_path="opus"
|
library_path="opus"
|
||||||
requires_rebuild ${library_path}
|
requires_rebuild ${library_path}
|
||||||
@ -21,4 +30,4 @@ _cflags=""
|
|||||||
cmake_build ${library_path} -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_FLAGS="${_fpic} ${_cflags}" -DOPUS_X86_PRESUME_AVX=OFF -DOPUS_X86_PRESUME_SSE4_1=OFF
|
cmake_build ${library_path} -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_FLAGS="${_fpic} ${_cflags}" -DOPUS_X86_PRESUME_AVX=OFF -DOPUS_X86_PRESUME_SSE4_1=OFF
|
||||||
check_err_exit ${library_path} "Failed to build opus!"
|
check_err_exit ${library_path} "Failed to build opus!"
|
||||||
set_build_successful ${library_path}
|
set_build_successful ${library_path}
|
||||||
#
|
#
|
||||||
|
13
third_party/build_portaudio.sh
vendored
13
third_party/build_portaudio.sh
vendored
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
[[ -z "${build_helper_file}" ]] && {
|
||||||
|
echo "Missing build helper file. Please define \"build_helper_file\""
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
library_path="portaudio"
|
library_path="portaudio"
|
||||||
requires_rebuild ${library_path}
|
requires_rebuild ${library_path}
|
||||||
@ -10,4 +19,4 @@ _fpic=""
|
|||||||
[[ ${build_os_type} == "linux" ]] && _fpic="-fPIC"
|
[[ ${build_os_type} == "linux" ]] && _fpic="-fPIC"
|
||||||
cmake_build ${library_path} -DCMAKE_C_FLAGS="${_fpic}" -DPA_BUILD_SHARED=OFF -DPA_BUILD_STATIC=ON -DPA_BUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
cmake_build ${library_path} -DCMAKE_C_FLAGS="${_fpic}" -DPA_BUILD_SHARED=OFF -DPA_BUILD_STATIC=ON -DPA_BUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||||
check_err_exit ${library_path} "Failed to build portaudio!"
|
check_err_exit ${library_path} "Failed to build portaudio!"
|
||||||
set_build_successful ${library_path}
|
set_build_successful ${library_path}
|
||||||
|
13
third_party/build_soxr.sh
vendored
13
third_party/build_soxr.sh
vendored
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
[[ -z "${build_helper_file}" ]] && {
|
||||||
|
echo "Missing build helper file. Please define \"build_helper_file\""
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
library_path="soxr"
|
library_path="soxr"
|
||||||
requires_rebuild ${library_path}
|
requires_rebuild ${library_path}
|
||||||
@ -10,4 +19,4 @@ _fpic=""
|
|||||||
[[ ${build_os_type} == "linux" ]] && _fpic="-fPIC"
|
[[ ${build_os_type} == "linux" ]] && _fpic="-fPIC"
|
||||||
cmake_build ${library_path} -DCMAKE_C_FLAGS="${_fpic}" -DBUILD_SHARED_RUNTIME=OFF -DWITH_OPENMP=OFF -DBUILD_TESTS=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_EXAMPLES=OFF
|
cmake_build ${library_path} -DCMAKE_C_FLAGS="${_fpic}" -DBUILD_SHARED_RUNTIME=OFF -DWITH_OPENMP=OFF -DBUILD_TESTS=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_EXAMPLES=OFF
|
||||||
check_err_exit ${library_path} "Failed to build soxr!"
|
check_err_exit ${library_path} "Failed to build soxr!"
|
||||||
set_build_successful ${library_path}
|
set_build_successful ${library_path}
|
||||||
|
11
third_party/build_spdlog.sh
vendored
11
third_party/build_spdlog.sh
vendored
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
[[ -z "${build_helper_file}" ]] && {
|
||||||
|
echo "Missing build helper file. Please define \"build_helper_file\""
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
library_path="spdlog"
|
library_path="spdlog"
|
||||||
requires_rebuild ${library_path}
|
requires_rebuild ${library_path}
|
||||||
|
13
third_party/build_stringvariable.sh
vendored
13
third_party/build_stringvariable.sh
vendored
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
[[ -z "${build_helper_file}" ]] && {
|
||||||
|
echo "Missing build helper file. Please define \"build_helper_file\""
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
library_path="StringVariable"
|
library_path="StringVariable"
|
||||||
requires_rebuild ${library_path}
|
requires_rebuild ${library_path}
|
||||||
@ -12,4 +21,4 @@ _cmake_options=""
|
|||||||
[[ ${build_os_type} == "win32" ]] && _cmake_options="-DMSVC_RUNTIME=static"
|
[[ ${build_os_type} == "win32" ]] && _cmake_options="-DMSVC_RUNTIME=static"
|
||||||
cmake_build ${library_path} -DCMAKE_CXX_FLAGS="${_fpic}" -DCMAKE_BUILD_TYPE=RelWithDebInfo ${_cmake_options}
|
cmake_build ${library_path} -DCMAKE_CXX_FLAGS="${_fpic}" -DCMAKE_BUILD_TYPE=RelWithDebInfo ${_cmake_options}
|
||||||
check_err_exit ${library_path} "Failed to build StringVariable!"
|
check_err_exit ${library_path} "Failed to build StringVariable!"
|
||||||
set_build_successful ${library_path}
|
set_build_successful ${library_path}
|
||||||
|
11
third_party/build_threadpool.sh
vendored
11
third_party/build_threadpool.sh
vendored
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
[[ -z "${build_helper_file}" ]] && {
|
||||||
|
echo "Missing build helper file. Please define \"build_helper_file\""
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
library_path="Thread-Pool"
|
library_path="Thread-Pool"
|
||||||
requires_rebuild ${library_path}
|
requires_rebuild ${library_path}
|
||||||
|
13
third_party/build_tom.sh
vendored
13
third_party/build_tom.sh
vendored
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
[[ -z "${build_helper_file}" ]] && {
|
||||||
|
echo "Missing build helper file. Please define \"build_helper_file\""
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
_fpic=""
|
_fpic=""
|
||||||
[[ ${build_os_type} == "linux" ]] && _fpic="-fPIC"
|
[[ ${build_os_type} == "linux" ]] && _fpic="-fPIC"
|
||||||
@ -32,4 +41,4 @@ requires_rebuild ${library_path}
|
|||||||
check_err_exit ${library_path} "Failed to build tomcrypt!"
|
check_err_exit ${library_path} "Failed to build tomcrypt!"
|
||||||
set_build_successful ${library_path}
|
set_build_successful ${library_path}
|
||||||
}
|
}
|
||||||
exit 0
|
exit 0
|
||||||
|
12
third_party/build_unbound.sh
vendored
12
third_party/build_unbound.sh
vendored
@ -1,12 +1,22 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
[[ -z "${build_helper_file}" ]] && {
|
||||||
|
echo "Missing build helper file. Please define \"build_helper_file\""
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if [[ ${build_os_type} == "win32" ]]; then
|
if [[ ${build_os_type} == "win32" ]]; then
|
||||||
echo "Windows does not require libunbound"
|
echo "Windows does not require libunbound"
|
||||||
echo "Dont building library"
|
echo "Dont building library"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
|
||||||
library_path="unbound"
|
library_path="unbound"
|
||||||
requires_rebuild ${library_path}
|
requires_rebuild ${library_path}
|
||||||
[[ $? -eq 0 ]] && exit 0
|
[[ $? -eq 0 ]] && exit 0
|
||||||
|
13
third_party/build_yaml.sh
vendored
13
third_party/build_yaml.sh
vendored
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source ../scripts/build_helper.sh
|
[[ -z "${build_helper_file}" ]] && {
|
||||||
|
echo "Missing build helper file. Please define \"build_helper_file\""
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
source ${build_helper_file}
|
||||||
|
[[ $build_helpers_defined -ne 1 ]] && {
|
||||||
|
echo "Failed to include build helpers."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
library_path="yaml-cpp"
|
library_path="yaml-cpp"
|
||||||
requires_rebuild ${library_path}
|
requires_rebuild ${library_path}
|
||||||
@ -10,4 +19,4 @@ _cxx_flags=""
|
|||||||
[[ ${build_os_type} == "linux" ]] && _cxx_flags="-D_GLIBCXX_USE_CXX11_ABI=1 -std=c++11 -fPIC"
|
[[ ${build_os_type} == "linux" ]] && _cxx_flags="-D_GLIBCXX_USE_CXX11_ABI=1 -std=c++11 -fPIC"
|
||||||
cmake_build ${library_path} -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="${_cxx_flags}"
|
cmake_build ${library_path} -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="${_cxx_flags}"
|
||||||
check_err_exit ${library_path} "Failed to build yaml-cpp!"
|
check_err_exit ${library_path} "Failed to build yaml-cpp!"
|
||||||
set_build_successful ${library_path}
|
set_build_successful ${library_path}
|
||||||
|
Loading…
Reference in New Issue
Block a user