Updated windows build

This commit is contained in:
WolverinDEV 2019-12-07 19:18:46 +01:00
parent bdb34e6474
commit dfc3e08681
No known key found for this signature in database
GPG Key ID: 77A6C15085150EEB
21 changed files with 203 additions and 36 deletions

@ -1 +1 @@
Subproject commit 4f199d074580a6cf591b6300024c09f4e5101326
Subproject commit 6803c93043aa1ec2ab962c99921e83144dc067ae

View File

@ -3,7 +3,12 @@
# Enter third_party/ directory
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"
function exec_script() {

View File

@ -1,6 +1,16 @@
#!/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"
requires_rebuild ${library_path}
[[ $? -eq 0 ]] && exit 0

View File

@ -1,6 +1,15 @@
#!/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"
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
# check_err_exit ${library_path} "Failed to build libevent!"
set_build_successful ${library_path}
set_build_successful ${library_path}

View File

@ -1,6 +1,15 @@
#!/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"
requires_rebuild ${library_path}
@ -10,4 +19,4 @@ _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}/"
check_err_exit ${library_path} "Failed to build CXXTerminal!"
set_build_successful ${library_path}
set_build_successful ${library_path}

View File

@ -1,6 +1,15 @@
#!/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"
requires_rebuild ${library_path}
@ -34,4 +43,4 @@ _cxx_options=""
[[ ${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
check_err_exit ${library_path} "Failed to build DataPipes!"
set_build_successful ${library_path}
set_build_successful ${library_path}

View File

@ -1,6 +1,15 @@
#!/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"
requires_rebuild ${library_path}
@ -19,4 +28,4 @@ crypto_include="`pwd`/boringssl/include/"
#-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
check_err_exit ${library_path} "Failed to build ed25519!"
set_build_successful ${library_path}
set_build_successful ${library_path}

View File

@ -1,6 +1,15 @@
#!/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"
requires_rebuild ${library_path}
@ -54,4 +63,4 @@ if [[ $? -ne 0 ]]; then #Workaround because the install fails
fi
cd ../../../
set_build_successful ${library_path}
set_build_successful ${library_path}

View File

@ -1,6 +1,15 @@
#!/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"
requires_rebuild ${library_path}

View File

@ -1,6 +1,15 @@
#!/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"
requires_rebuild ${library_path}
@ -11,7 +20,7 @@ _fpic=""
make_targets=("event_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"
check_err_exit ${library_path} "Failed to build libevent!"
set_build_successful ${library_path}

View File

@ -1,6 +1,15 @@
#!/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"
requires_rebuild ${library_path}
@ -10,4 +19,4 @@ _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
check_err_exit ${library_path} "Failed to build ed25519!"
set_build_successful ${library_path}
set_build_successful ${library_path}

View File

@ -1,7 +1,5 @@
#!/usr/bin/env bash
source ../scripts/build_helper.sh
library_path="mysqlconnector"
requires_rebuild ${library_path}
[[ $? -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
check_err_exit ${library_path} "Failed to build mysqlconnector!"
set_build_successful ${library_path}
set_build_successful ${library_path}

View File

@ -1,6 +1,15 @@
#!/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"
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
check_err_exit ${library_path} "Failed to build opus!"
set_build_successful ${library_path}
#
#

View File

@ -1,6 +1,15 @@
#!/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"
requires_rebuild ${library_path}
@ -10,4 +19,4 @@ _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
check_err_exit ${library_path} "Failed to build portaudio!"
set_build_successful ${library_path}
set_build_successful ${library_path}

View File

@ -1,6 +1,15 @@
#!/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"
requires_rebuild ${library_path}
@ -10,4 +19,4 @@ _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
check_err_exit ${library_path} "Failed to build soxr!"
set_build_successful ${library_path}
set_build_successful ${library_path}

View File

@ -1,6 +1,15 @@
#!/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"
requires_rebuild ${library_path}

View File

@ -1,6 +1,15 @@
#!/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"
requires_rebuild ${library_path}
@ -12,4 +21,4 @@ _cmake_options=""
[[ ${build_os_type} == "win32" ]] && _cmake_options="-DMSVC_RUNTIME=static"
cmake_build ${library_path} -DCMAKE_CXX_FLAGS="${_fpic}" -DCMAKE_BUILD_TYPE=RelWithDebInfo ${_cmake_options}
check_err_exit ${library_path} "Failed to build StringVariable!"
set_build_successful ${library_path}
set_build_successful ${library_path}

View File

@ -1,6 +1,15 @@
#!/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"
requires_rebuild ${library_path}

View File

@ -1,6 +1,15 @@
#!/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=""
[[ ${build_os_type} == "linux" ]] && _fpic="-fPIC"
@ -32,4 +41,4 @@ requires_rebuild ${library_path}
check_err_exit ${library_path} "Failed to build tomcrypt!"
set_build_successful ${library_path}
}
exit 0
exit 0

View File

@ -1,12 +1,22 @@
#!/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
echo "Windows does not require libunbound"
echo "Dont building library"
exit 0
fi
source ../scripts/build_helper.sh
library_path="unbound"
requires_rebuild ${library_path}
[[ $? -eq 0 ]] && exit 0

View File

@ -1,6 +1,15 @@
#!/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"
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"
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!"
set_build_successful ${library_path}
set_build_successful ${library_path}