Files
ce_cdm/platforms/x86-64/settings.gypi
2017-09-01 14:17:56 -07:00

155 lines
3.8 KiB
Python

# Copyright 2015 Google Inc. All rights reserved.
{
# 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': [
],
# 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',
'-fno-exceptions',
# Enable all warnings, and treat warnings as errors.
'-Wall',
'-Werror',
'-Wextra',
'-Wunused',
'-fno-rtti',
'-Wcast-qual',
'-Wno-long-long',
'-Wno-variadic-macros',
'-Wno-inline',
'-Wformat=2',
'-Wno-format-nonliteral',
'-Wshadow',
'-Wnon-virtual-dtor',
'-Woverloaded-virtual',
'-Wctor-dtor-privacy',
'-Wcast-align',
'-Wno-conversion',
'-Wignored-qualifiers',
'-Wreturn-type',
#'-Wstrict-null-sentinel',
#'-Wuseless-cast',
'-Wno-unused-parameter', # repeated in protobufs triggers this
],
# These are flags passed to the linker.
'ldflags': [
],
# These are macros set by the compiler.
'defines': [
#'EXAMPLE_MACRO_WITH_NO_VALUE',
#'EXAMPLE_KEY=EXAMPLE_VALUE',
],
# These are additional include paths to search for headers.
'include_dirs': [
#'/usr/local/include',
],
'target_conditions': [
['_toolset == "host"', {
# These are settings specifically for the host toolchain.
# The extra equals sign in the key name instructs gyp to replace
# the generic settings above rather than append to them.
'cflags=': [
],
'cflags_c=': [
],
'cflags_cc=': [
#'-fno-rtti',
'-Wcast-qual',
'-Wextra',
'-Wunused',
'-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',
'-Wcast-align',
#'-Wconversion',
#'-Wuseless-cast',
'-Wno-ignored-qualifiers',
'-Wno-return-type',
],
'ldflags=': [
],
'defines=': [
],
'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': {
# These are additional settings per build configuration.
# You may specify any of the keys above in this section
# (cflags, cflags_c, cflags_cc, ldflags, defines, include_dirs).
'Debug': {
'cflags': [
'-O0',
'-g',
],
'defines': [
'_DEBUG',
],
'ldflags': [
'-g',
],
},
'Release': {
'cflags': [
'-O2',
],
'defines': [
'NDEBUG',
],
},
}, # end configurations
}, # end target_defaults
}