Source release v3.5.0

This commit is contained in:
Gene Morgan
2017-11-28 17:42:16 -08:00
parent 501c22890d
commit 31381a1311
155 changed files with 16680 additions and 3816 deletions

View File

@@ -2,4 +2,6 @@ export_variables = {
'CC': 'clang',
'CXX': 'clang++',
'AR': 'ar',
'GYP_CROSSCOMPILE': '1',
'CLANG_BUILD': '1',
}

View File

@@ -3,32 +3,36 @@
# Here you can override global gyp variables with platform-specific values.
# See cdm.gyp for a complete list of settings you can override.
'variables': {
'disable_cpp_11%': 0,
#'oemcrypto_version': 9,
}, # end variables
# Here you can set platform-specific compiler settings.
'target_defaults': {
# These are flags passed to the compiler for all C & C++ files.
'cflags': [
'-fPIC',
],
# These are flags passed to the compiler for plain C only.
'cflags_c': [
'-Wbad-function-cast',
],
# These are flags passed to the compiler for C++ only.
'cflags_cc': [
'-fPIC',
'-fno-rtti',
# Compile using the gnu'98 standard.
# C++ standards are not used becuase of use of va_copy in
# third_party/protobuf (When using std++03 it defines
# __STRICT_ANSI__, which will make clang headers not define
# va_copy.). C++11 is not used because some partner
# toolchains do not yet support it.
'-std=gnu++98',
# '-fno-rtti',
'-fno-exceptions',
# Enable all warnings, and treat warnings as errors.
'-Wall',
'-Werror',
'-Wextra',
'-Wunused',
'-fno-rtti',
# '-fno-rtti',
'-Wcast-qual',
'-Wno-long-long',
'-Wno-variadic-macros',
@@ -37,8 +41,8 @@
'-Wno-format-nonliteral',
'-Wshadow',
'-Wnon-virtual-dtor',
'-Woverloaded-virtual',
'-Wctor-dtor-privacy',
#'-Woverloaded-virtual',
#'-Wctor-dtor-privacy',
'-Wcast-align',
'-Wno-conversion',
'-Wignored-qualifiers',
@@ -46,6 +50,10 @@
#'-Wstrict-null-sentinel',
#'-Wuseless-cast',
'-Wno-unused-parameter', # repeated in protobufs triggers this
'-Wno-unused-local-typedefs', # metrics requires this
'-Wno-inconsistent-missing-override',
#'-Wno-maybe-uninitialized',
'-Wno-unknown-warning-option',
],
# These are flags passed to the linker.
@@ -54,6 +62,8 @@
# These are macros set by the compiler.
'defines': [
# suppress use of override keyword.
'DISABLE_OVERRIDE_KEYWORD',
#'EXAMPLE_MACRO_WITH_NO_VALUE',
#'EXAMPLE_KEY=EXAMPLE_VALUE',
],
@@ -75,24 +85,18 @@
],
'cflags_cc=': [
#'-fno-rtti',
'-Wcast-qual',
'-Wextra',
'-Wunused',
# '-Wextra',
'-Wno-unused',
'-Wno-long-long',
'-Wno-variadic-macros',
'-Wno-inline',
'-Wformat=2',
'-Wno-format-nonliteral',
#'-Wshadow',
'-Wnon-virtual-dtor',
'-Woverloaded-virtual',
#'-Wstrict-null-sentinel',
'-Wctor-dtor-privacy',
#'-Wbad-function-cast',
#'-Woverloaded-virtual',
#'-Wctor-dtor-privacy',
'-Wcast-align',
#'-Wconversion',
#'-Wuseless-cast',
'-Wno-ignored-qualifiers',
'-Wno-return-type',
],
@@ -106,23 +110,6 @@
'include_dirs=': [
],
}], # end _toolset == "host" condition
# Compile using C++11, unless we are forcing the use of C++03
['<(disable_cpp_11) == 1', {
'defines': [
'DISABLE_CPP_11',
],
'cflags_cc': [
# When using std++03 it defines __STRICT_ANSI__, which will make the
# clang headers not define va_copy.
'-std=gnu++98',
],
}, { # disable_cpp_11 != 1
'cflags_cc': [
'-std=c++11',
'-Wc++11-compat',
],
}], # end disable_cpp_11 == 1 condition
], # end target_conditions
'configurations': {