Source release v3.5.0
This commit is contained in:
100
third_party/protobuf.gypi
vendored
100
third_party/protobuf.gypi
vendored
@@ -32,35 +32,40 @@
|
||||
],
|
||||
},
|
||||
'target_defaults': {
|
||||
# These flags silence warnings that appear in protobuf upstream.
|
||||
# We will not maintain a divergent copy of protobuf to fix them.
|
||||
'cflags': [
|
||||
# Ignore unknown warning options, to support both gcc & clang at once.
|
||||
'-Wno-unknown-warning-option',
|
||||
# GCC:
|
||||
'-Wno-sign-compare',
|
||||
'-Wno-unused-local-typedefs',
|
||||
# Clang:
|
||||
'-Wno-unused-const-variable',
|
||||
'-Wno-unused-function',
|
||||
],
|
||||
'cflags_cc': [
|
||||
'-frtti',
|
||||
'-Wno-sign-compare',
|
||||
'-Wno-unused-const-variable',
|
||||
'-Wno-unused-function',
|
||||
'-Wno-unused-parameter',
|
||||
'-Wno-shadow',
|
||||
'-Wno-tautological-undefined-compare',
|
||||
'-Wno-conversion',
|
||||
'-Wno-useless-cast',
|
||||
],
|
||||
},
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'protobuf_lite',
|
||||
'type': 'static_library',
|
||||
'toolsets': ['target'],
|
||||
# These flags silence warnings that appear in protobuf upstream.
|
||||
# We will not maintain a divergent copy of protobuf to fix them.
|
||||
'cflags=': [
|
||||
# Ignore unknown warning options, to support both gcc & clang at once.
|
||||
'-Wno-unknown-warning-option',
|
||||
# GCC:
|
||||
'-Wno-sign-compare',
|
||||
'-Wno-unused-local-typedefs',
|
||||
# Clang:
|
||||
'-Wno-unused-const-variable',
|
||||
'-Wno-unused-function',
|
||||
'-std=gnu++98',
|
||||
],
|
||||
'cflags_cc=': [
|
||||
# Ignore unknown warning options, to support both gcc & clang at once.
|
||||
'-Wno-unknown-warning-option',
|
||||
'-Wno-shadow',
|
||||
# GCC:
|
||||
'-Wno-sign-compare',
|
||||
'-Wno-unused-local-typedefs',
|
||||
'-Wno-ignored-qualifiers',
|
||||
'-Wno-return-type',
|
||||
'-Wno-maybe-uninitialized',
|
||||
# Clang:
|
||||
'-Wno-unused-const-variable',
|
||||
'-Wno-unused-function',
|
||||
'-std=gnu++98',
|
||||
],
|
||||
'sources': [
|
||||
'<@(protobuf_lite_sources)',
|
||||
],
|
||||
@@ -79,6 +84,31 @@
|
||||
'type': 'static_library',
|
||||
'toolsets': ['host'],
|
||||
'includes': ['xcode_host.gypi'], # xcode workaround
|
||||
# These flags silence warnings that appear in protobuf upstream.
|
||||
# We will not maintain a divergent copy of protobuf to fix them.
|
||||
'cflags=': [
|
||||
# Ignore unknown warning options, to support both gcc & clang at once.
|
||||
'-Wno-unknown-warning-option',
|
||||
# GCC:
|
||||
'-Wno-sign-compare',
|
||||
'-Wno-unused-local-typedefs',
|
||||
# Clang:
|
||||
'-Wno-unused-const-variable',
|
||||
'-Wno-unused-function',
|
||||
'-Wno-maybe-uninitialized',
|
||||
],
|
||||
'cflags_cc=': [
|
||||
# Ignore unknown warning options, to support both gcc & clang at once.
|
||||
'-Wno-unknown-warning-option',
|
||||
'-Wno-shadow',
|
||||
# GCC:
|
||||
'-Wno-sign-compare',
|
||||
'-Wno-unused-local-typedefs',
|
||||
# Clang:
|
||||
'-Wno-unused-const-variable',
|
||||
'-Wno-unused-function',
|
||||
'-Wno-misleading-indentation',
|
||||
],
|
||||
'sources': [
|
||||
'<@(protobuf_lite_sources)',
|
||||
|
||||
@@ -118,6 +148,30 @@
|
||||
'type': 'executable',
|
||||
'toolsets': ['host'],
|
||||
'includes': ['xcode_host.gypi'], # xcode workaround
|
||||
|
||||
# These flags silence warnings that appear in protobuf upstream.
|
||||
# We will not maintain a divergent copy of protobuf to fix them.
|
||||
'cflags=': [
|
||||
# Ignore unknown warning options, to support both gcc & clang at once.
|
||||
'-Wno-unknown-warning-option',
|
||||
# GCC:
|
||||
'-Wno-sign-compare',
|
||||
'-Wno-unused-local-typedefs',
|
||||
# Clang:
|
||||
'-Wno-unused-const-variable',
|
||||
'-Wno-unused-function',
|
||||
],
|
||||
'cflags_cc=': [
|
||||
# Ignore unknown warning options, to support both gcc & clang at once.
|
||||
'-Wno-unknown-warning-option',
|
||||
'-Wno-shadow',
|
||||
# GCC:
|
||||
'-Wno-sign-compare',
|
||||
'-Wno-unused-local-typedefs',
|
||||
# Clang:
|
||||
'-Wno-unused-const-variable',
|
||||
'-Wno-unused-function',
|
||||
],
|
||||
'sources': [
|
||||
'<(protobuf_source)/src/google/protobuf/compiler/code_generator.cc',
|
||||
'<(protobuf_source)/src/google/protobuf/compiler/command_line_interface.cc',
|
||||
|
||||
Reference in New Issue
Block a user