Skip to content

Commit

Permalink
upgrade the flatbuffers's version
Browse files Browse the repository at this point in the history
  • Loading branch information
jixingcn committed Jul 10, 2021
1 parent 1559315 commit 86591c8
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 36 deletions.
4 changes: 2 additions & 2 deletions ports/flatbuffers/CONTROL
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Source: flatbuffers
Version: 1.12.0
Port-Version: 2
Version: 2.0.0
Port-Version: 0
Description: Memory Efficient Serialization Library
FlatBuffers is an efficient cross platform serialization library for games and other memory constrained apps. It allows you to directly access serialized data without unpacking/parsing it first, while still having great forwards/backwards compatibility.
Homepage: https://google.github.io/flatbuffers/
23 changes: 0 additions & 23 deletions ports/flatbuffers/fix-issue-6036.patch

This file was deleted.

4 changes: 2 additions & 2 deletions ports/flatbuffers/fix-uwp-build.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/src/util.cpp b/src/util.cpp
index c1bb197..658e116 100644
index 3670a019..fb5d884f 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -245,9 +245,15 @@ bool ReadEnvironmentVariable(const char *var_name, std::string *_value) {
@@ -255,9 +255,15 @@ bool ReadEnvironmentVariable(const char *var_name, std::string *_value) {
#ifdef _MSC_VER
__pragma(warning(disable : 4996)); // _CRT_SECURE_NO_WARNINGS
#endif
Expand Down
4 changes: 2 additions & 2 deletions ports/flatbuffers/ignore_use_of_cmake_toolchain_file.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 119855a..945085a 100644
index ec782239..f163b64d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -155,7 +155,7 @@ set(FlatBuffers_GRPCTest_SRCS
@@ -216,7 +216,7 @@ set(FlatBuffers_GRPCTest_SRCS
# source_group(Compiler FILES ${FlatBuffers_Compiler_SRCS})
# source_group(Tests FILES ${FlatBuffers_Tests_SRCS})

Expand Down
6 changes: 3 additions & 3 deletions ports/flatbuffers/no-werror.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 119855a..6269362 100644
index ec782239..57566c5a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -172,13 +172,17 @@ elseif(CMAKE_COMPILER_IS_GNUCXX)
@@ -233,13 +233,17 @@ elseif(CMAKE_COMPILER_IS_GNUCXX)
"${CMAKE_CXX_FLAGS} -std=c++0x")
endif(CYGWIN)
set(CMAKE_CXX_FLAGS
- "${CMAKE_CXX_FLAGS} -Wall -pedantic -Werror -Wextra -Werror=shadow")
+ "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra -Werror=shadow")
+ "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra -Werror=shadow")
set(FLATBUFFERS_PRIVATE_CXX_FLAGS "-Wold-style-cast")
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.4)
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
Expand Down
6 changes: 2 additions & 4 deletions ports/flatbuffers/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/flatbuffers
REF v1.12.0
SHA512 8a0b88d739fa4694a69d3630140fe89fdd70d50bba4dadd1758d9aa2920cda16700bcafb8d89fe2a09ac907d3f378240c3cb4abc7106318136799836aba4b063
REF v2.0.0
SHA512 26a06b572c0e4c9685743bd2d2162ac7dcd74b9324624cc3f3ef5b154c0cee7c52a04b77cdc184245d2d6ae38dfdcc4fd66001c318aa8ca001d2bf1d85d66a89
HEAD_REF master
PATCHES
ignore_use_of_cmake_toolchain_file.patch
no-werror.patch
fix-uwp-build.patch
fix-issue-6036.patch # this patch is already applied to the latest master branch.
# remove it in next version update
)

set(OPTIONS)
Expand Down

0 comments on commit 86591c8

Please sign in to comment.