1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 import("//build/config/clang/clang.gni")
10 visibility = [ "//third_party/WebKit/*" ]
12 # features ---------------------------------------------------------------------
15 defines = feature_defines_list
18 # inside_blink -----------------------------------------------------------------
20 config("inside_blink") {
22 "BLINK_IMPLEMENTATION=1",
27 # config -----------------------------------------------------------------------
30 include_dirs = [ ".", ".." ]
37 "/wd4305", # Truncation from 'type1' to 'type2'.
38 "/wd4324", # Struct padded due to declspec(align).
39 "/wd4714", # Function marked forceinline not inlined.
40 "/wd4800", # Value forced to bool.
41 "/wd4996", # Deprecated function call.
46 if (is_component_build) {
47 defines += [ "USING_V8_SHARED" ]
50 # TODO(GYP) this should be based on gcc_version >= 46 but GN doesn't have a
51 # concept of GCC version yet.
53 # Disable warnings about c++0x compatibility, as some names (such as
54 # nullptr) conflict with upcoming c++0x types.
55 cflags_cc = [ "-Wno-c++0x-compat" ]
58 if (is_linux && current_cpu == "arm") {
59 # Due to a bug in gcc arm, we get warnings about uninitialized
60 # timesNewRoman.unstatic.3258 and colorTransparent.unstatic.4879.
61 cflags += [ "-Wno-uninitialized" ]
65 if (blink_gc_plugin && clang_use_chrome_plugins) {
67 #'cflags': ['<!@(../../../tools/clang/scripts/blink_gc_plugin_flags.py enable-oilpan=<(enable_oilpan) dump-graph=<(blink_gc_plugin_dump_graph))'],
71 ## TODO(GYP) : gn does not yet support use_system_icu.
72 #if (use_system_icu) {
73 # defines += [ "USING_SYSTEM_ICU" ]
77 # The follow configs apply to all targets except for unit tests, which rely on
78 # static initializers.
79 config("non_test_config") {
83 cflags += [ "-Wglobal-constructors" ]