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 # 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() {

View File

@ -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

View File

@ -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}

View File

@ -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}

View File

@ -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}

View File

@ -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}

View File

@ -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}

View File

@ -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}

View File

@ -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}

View File

@ -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}

View File

@ -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

View File

@ -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}

View File

@ -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}

View File

@ -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}

View File

@ -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}

View File

@ -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}

View File

@ -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}

View File

@ -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"

View File

@ -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

View File

@ -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}