client-root/third_party/build_protobuf.sh

17 lines
583 B
Bash
Raw Normal View History

2019-07-01 16:32:56 -04:00
#!/usr/bin/env bash
source ../scripts/build_helper.sh
library_path="protobuf"
requires_rebuild ${library_path}
[[ $? -eq 0 ]] && exit 0
#./${library_path}/libraries/build_event.sh
#check_err_exit ${library_path} "Failed to build library libevent"
2019-07-04 12:00:03 -04:00
_cxx_options=""
[[ ${build_os_type} == "linux" ]] && _cxx_options="-fPIC -std=c++11"
2019-07-01 16:32:56 -04:00
base_path_suffix="/cmake/"
2019-07-04 12:00:03 -04:00
cmake_build ${library_path} -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_CXX_FLAGS="${_cxx_options}" -DCMAKE_BUILD_TYPE=RelWithDebInfo
2019-07-01 16:32:56 -04:00
check_err_exit ${library_path} "Failed to build protobuf!"
set_build_successful ${library_path}