aboutsummaryrefslogtreecommitdiff
path: root/ports/protobuf
diff options
context:
space:
mode:
authorVictor Romero <viromer@microsoft.com>2019-01-10 09:54:02 -0800
committerVictor Romero <viromer@microsoft.com>2019-01-10 09:54:02 -0800
commitf9732c27f1bf9aa127ed9b53d4bb20612a6fd0af (patch)
tree652e6b64bb2e47ac124fd4b73e97cea2e92abbeb /ports/protobuf
parent67ca08e9d3d0fb8097da84bc593a805f7169095f (diff)
parent7578a485b181ded330b87cc72726f01e38ff7ed6 (diff)
downloadvcpkg-f9732c27f1bf9aa127ed9b53d4bb20612a6fd0af.tar.gz
vcpkg-f9732c27f1bf9aa127ed9b53d4bb20612a6fd0af.zip
Merge branch 'master' of https://github.com/Microsoft/vcpkg into dev/viromer/5019
Diffstat (limited to 'ports/protobuf')
-rw-r--r--ports/protobuf/CONTROL2
-rw-r--r--ports/protobuf/portfile.cmake12
-rw-r--r--ports/protobuf/version-rc-msvc.patch16
3 files changed, 25 insertions, 5 deletions
diff --git a/ports/protobuf/CONTROL b/ports/protobuf/CONTROL
index c2be8e0f3..88bc7d3ee 100644
--- a/ports/protobuf/CONTROL
+++ b/ports/protobuf/CONTROL
@@ -1,5 +1,5 @@
Source: protobuf
-Version: 3.6.1-4
+Version: 3.6.1.3-1
Description: Protocol Buffers - Google's data interchange format
Feature: zlib
diff --git a/ports/protobuf/portfile.cmake b/ports/protobuf/portfile.cmake
index 1dc7e6cf5..32e8ccd91 100644
--- a/ports/protobuf/portfile.cmake
+++ b/ports/protobuf/portfile.cmake
@@ -3,12 +3,13 @@ include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/protobuf
- REF v3.6.1
- SHA512 1bc175d24b49de1b1e41eaf39598194e583afffb924c86c8d2e569d935af21874be76b2cbd4d9655a1d38bac3d4cd811de88bc2c72d81bad79115e69e5b0d839
+ REF v3.6.1.3
+ SHA512 9eadb46c7daa19e612516958169bc90943b38b429a4b2cf2171b66b57f50a2f8a9b66cbf58bdd44517af414b78e0f3ab2e1361891dc60ecd098185da2638d37e
HEAD_REF master
PATCHES
fix-uwp.patch
disable-lite.patch
+ version-rc-msvc.patch
)
if(CMAKE_HOST_WIN32 AND NOT VCPKG_TARGET_ARCHITECTURE MATCHES "x64" AND NOT VCPKG_TARGET_ARCHITECTURE MATCHES "x86")
@@ -105,9 +106,12 @@ if(CMAKE_HOST_WIN32)
protobuf_try_remove_recurse_wait(${CURRENT_PACKAGES_DIR}/debug/bin/protoc.exe)
endif()
else()
+ file(GLOB EXECUTABLES ${CURRENT_PACKAGES_DIR}/bin/protoc*)
+ foreach(E IN LISTS EXECUTABLES)
+ file(INSTALL ${E} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/protobuf
+ PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ)
+ endforeach()
protobuf_try_remove_recurse_wait(${CURRENT_PACKAGES_DIR}/debug/bin)
- file(INSTALL ${CURRENT_PACKAGES_DIR}/bin/protoc DESTINATION ${CURRENT_PACKAGES_DIR}/tools/protobuf
- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ)
protobuf_try_remove_recurse_wait(${CURRENT_PACKAGES_DIR}/bin)
endif()
diff --git a/ports/protobuf/version-rc-msvc.patch b/ports/protobuf/version-rc-msvc.patch
new file mode 100644
index 000000000..b24a862d9
--- /dev/null
+++ b/ports/protobuf/version-rc-msvc.patch
@@ -0,0 +1,16 @@
+diff --git a/cmake/protoc.cmake b/cmake/protoc.cmake
+index 9bf6f5a..b58a12a 100644
+--- a/cmake/protoc.cmake
++++ b/cmake/protoc.cmake
+@@ -2,9 +2,11 @@ set(protoc_files
+ ${protobuf_source_dir}/src/google/protobuf/compiler/main.cc
+ )
+
++if(MSVC)
+ set(protoc_rc_files
+ ${CMAKE_CURRENT_BINARY_DIR}/version.rc
+ )
++endif()
+
+ add_executable(protoc ${protoc_files} ${protoc_rc_files})
+ target_link_libraries(protoc libprotobuf libprotoc)