aboutsummaryrefslogtreecommitdiff
path: root/ports/protobuf
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-11-25 12:36:50 -0800
committerRobert Schumacher <roschuma@microsoft.com>2017-11-25 12:36:50 -0800
commitfec269d594723bf605a1d65b0fb05f869d954906 (patch)
treedd3ee27ddfdfec61d1cdf1e879ae1094a6a81745 /ports/protobuf
parent9a9c3a8634207c9473f178dcf6c2819f6cb7686f (diff)
downloadvcpkg-fec269d594723bf605a1d65b0fb05f869d954906.tar.gz
vcpkg-fec269d594723bf605a1d65b0fb05f869d954906.zip
[protobuf] Restore removed export required for GRPC. [grpc] Update to 1.7.2
Diffstat (limited to 'ports/protobuf')
-rw-r--r--ports/protobuf/CONTROL2
-rw-r--r--ports/protobuf/export-ParseGeneratorParameter.patch13
-rw-r--r--ports/protobuf/portfile.cmake4
3 files changed, 17 insertions, 2 deletions
diff --git a/ports/protobuf/CONTROL b/ports/protobuf/CONTROL
index 5bdb879dc..c52a3ce55 100644
--- a/ports/protobuf/CONTROL
+++ b/ports/protobuf/CONTROL
@@ -1,5 +1,5 @@
Source: protobuf
-Version: 3.5.0
+Version: 3.5.0-1
Description: Protocol Buffers - Google's data interchange format
Feature: zlib
diff --git a/ports/protobuf/export-ParseGeneratorParameter.patch b/ports/protobuf/export-ParseGeneratorParameter.patch
new file mode 100644
index 000000000..38b45a4c4
--- /dev/null
+++ b/ports/protobuf/export-ParseGeneratorParameter.patch
@@ -0,0 +1,13 @@
+diff --git a/src/google/protobuf/compiler/code_generator.h b/src/google/protobuf/compiler/code_generator.h
+index 4b1d90b..4c2b3ee 100644
+--- a/src/google/protobuf/compiler/code_generator.h
++++ b/src/google/protobuf/compiler/code_generator.h
+@@ -166,7 +166,7 @@ typedef GeneratorContext OutputDirectory;
+ // "foo=bar,baz,qux=corge"
+ // parses to the pairs:
+ // ("foo", "bar"), ("baz", ""), ("qux", "corge")
+-void ParseGeneratorParameter(
++LIBPROTOC_EXPORT void ParseGeneratorParameter(
+ const string&, std::vector<std::pair<string, string> >*);
+
+ } // namespace compiler
diff --git a/ports/protobuf/portfile.cmake b/ports/protobuf/portfile.cmake
index 22421d513..7e0c5c4f8 100644
--- a/ports/protobuf/portfile.cmake
+++ b/ports/protobuf/portfile.cmake
@@ -22,7 +22,9 @@ vcpkg_extract_source_archive(${ARCHIVE_FILE})
# Add a flag that can be set to disable the protobuf compiler
vcpkg_apply_patches(
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/protobuf-${PROTOBUF_VERSION}
- PATCHES "${CMAKE_CURRENT_LIST_DIR}/001-add-compiler-flag.patch"
+ PATCHES
+ "${CMAKE_CURRENT_LIST_DIR}/001-add-compiler-flag.patch"
+ "${CMAKE_CURRENT_LIST_DIR}/export-ParseGeneratorParameter.patch"
)