Skip to content

Commit

Permalink
[protobuf] Update to 3.11.4 (#10863)
Browse files Browse the repository at this point in the history
* Updated protobuf to 3.11.4

* Added vcpkg_check_features to handle feature checking

* Fixed indenting in vcpkg_configure_cmake

* Replaced tabs with spaces

Co-authored-by: Vincent Paladino <vincent.paladino@zebra.com>
  • Loading branch information
vpaladino778 and Vincent Paladino authored Apr 21, 2020
1 parent 1c3cab4 commit 84cf4b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ports/protobuf/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: protobuf
Version: 3.11.3
Version: 3.11.4
Homepage: https://github.com/google/protobuf
Description: Protocol Buffers - Google's data interchange format

Expand Down
14 changes: 7 additions & 7 deletions ports/protobuf/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO protocolbuffers/protobuf
REF v3.11.3
SHA512 beac21d495bfd8e9b40120d1db9fd82251958f954533fc6f76cd0b9c28f92533ac35368a4c298ebb1d8e09047b670ed3bd948bb7da6eb5cca7fdc0c1c44aa39b
REF v3.11.4
SHA512 777bbb0e9e2375eaebe6b8c87abd660bac70ee469c9ad00dd25917b82d7fb5bbe33cf87f0d69c90e19d55c07a7285ec20974ba4768623ce9ccfadf147fd5e261
HEAD_REF master
PATCHES
fix-uwp.patch
Expand Down Expand Up @@ -32,11 +32,10 @@ else()
set(VCPKG_BUILD_STATIC_CRT ON)
endif()

if("zlib" IN_LIST FEATURES)
set(protobuf_WITH_ZLIB ON)
else()
set(protobuf_WITH_ZLIB OFF)
endif()
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
zlib protobuf_WITH_ZLIB
)


vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}/cmake
Expand All @@ -48,6 +47,7 @@ vcpkg_configure_cmake(
-Dprotobuf_BUILD_TESTS=OFF
-DCMAKE_INSTALL_CMAKEDIR:STRING=share/protobuf
-Dprotobuf_BUILD_PROTOC_BINARIES=${protobuf_BUILD_PROTOC_BINARIES}
${FEATURE_OPTIONS}
)

vcpkg_install_cmake()
Expand Down

0 comments on commit 84cf4b3

Please sign in to comment.