2 # Copyright (C) 2013 Google Inc. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following disclaimer
12 # in the documentation and/or other materials provided with the
14 # * Neither the name of Google Inc. nor the names of its
15 # contributors may be used to endorse or promote products derived from
16 # this software without specific prior written permission.
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 # If set to 1, doesn't compile debug symbols into webcore reducing the
33 # size of the binary and increasing the speed of gdb. gcc only.
34 'remove_webcore_debug_symbols%': 0,
36 # If set to 1 (default) and using clang, the Blink GC plugin will check the
37 # usage of the garbage-collection infrastructure during compilation.
38 'blink_gc_plugin%': 1,
39 # Additional flags for the Blink GC plugin.
40 'blink_gc_plugin_flags%': '',
41 # If set to 1, the Blink will use the base allocator instead of
42 # PartitionAlloc. so that the top of stack-unwinding becomes the caller
43 # which requests memory allocation in blink.
44 'blink_disable_partition_allocator%': 0,
48 # GN version: //third_party/WebKit/Source:config
49 # (In GN this is a config rather than a target.)
50 'target_name': 'config',
52 'direct_dependent_settings': {
57 'msvs_disabled_warnings': [
58 4305, 4324, 4714, 4800, 4996,
62 'clang_warning_flags': [ '-Wglobal-constructors' ],
65 ['OS=="win" and component=="shared_library"', {
72 ['exclude', 'Posix\\.cpp$'],
76 ['exclude', 'Win\\.cpp$'],
81 ['exclude', 'Mac\\.mm$'],
86 ['exclude', 'Android\\.cpp$'],
89 ['OS!="win" and remove_webcore_debug_symbols==1', {
90 # Remove -g from all targets defined here.
94 # Disable warnings about c++0x compatibility, as some names (such as
95 # nullptr) conflict with upcoming c++0x types.
96 'cflags_cc': ['-Wno-c++0x-compat'],
98 ['OS=="linux" and target_arch=="arm"', {
99 # Due to a bug in gcc arm, we get warnings about uninitialized
100 # timesNewRoman.unstatic.3258 and colorTransparent.unstatic.4879.
101 'cflags': ['-Wno-uninitialized'],
103 # Only enable the blink_gc_plugin when using clang and chrome plugins.
104 ['blink_gc_plugin==1 and clang==1 and clang_use_chrome_plugins==1', {
105 'cflags': ['<!@(python <(DEPTH)/tools/clang/scripts/blink_gc_plugin_flags.py enable-oilpan=<(enable_oilpan) <(blink_gc_plugin_flags))'],
107 'OTHER_CFLAGS': ['<!@(python <(DEPTH)/tools/clang/scripts/blink_gc_plugin_flags.py enable-oilpan=<(enable_oilpan) <(blink_gc_plugin_flags))'],
110 'VCCLCompilerTool': {
111 'AdditionalOptions': ['<!@(python <(DEPTH)/tools/clang/scripts/blink_gc_plugin_flags.py enable-oilpan=<(enable_oilpan) <(blink_gc_plugin_flags))'],
115 ['blink_disable_partition_allocator==1', {
117 'MEMORY_TOOL_REPLACES_ALLOCATOR',
120 ['use_system_icu==1', {
129 'target_name': 'unittest_config',
133 '<(DEPTH)/testing/gmock.gyp:gmock',
134 '<(DEPTH)/testing/gtest.gyp:gtest',
136 'export_dependent_settings': [
138 '<(DEPTH)/testing/gmock.gyp:gmock',
139 '<(DEPTH)/testing/gtest.gyp:gtest',
141 'direct_dependent_settings': {
144 'clang_warning_flags_unset': [ '-Wglobal-constructors' ],