| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("config.gni") | 5 import("config.gni") |
| 6 if (is_clang) { | 6 if (is_clang) { |
| 7 import("//build/config/clang/clang.gni") | 7 import("//build/config/clang/clang.gni") |
| 8 } | 8 } |
| 9 if (is_posix) { | 9 if (is_posix) { |
| 10 import("//build/config/gcc/gcc_version.gni") | 10 import("//build/config/gcc/gcc_version.gni") |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 if (is_linux && cpu_arch == "arm") { | 49 if (is_linux && cpu_arch == "arm") { |
| 50 # Due to a bug in gcc arm, we get warnings about uninitialized | 50 # Due to a bug in gcc arm, we get warnings about uninitialized |
| 51 # timesNewRoman.unstatic.3258 and colorTransparent.unstatic.4879. | 51 # timesNewRoman.unstatic.3258 and colorTransparent.unstatic.4879. |
| 52 cflags += [ "-Wno-uninitialized" ] | 52 cflags += [ "-Wno-uninitialized" ] |
| 53 } | 53 } |
| 54 | 54 |
| 55 if (is_posix && gcc_version >= 49) { | 55 if (is_posix && gcc_version >= 49) { |
| 56 cflags += [ "-Wno-unused-but-set-variable" ] | 56 cflags += [ "-Wno-unused-but-set-variable" ] |
| 57 } | 57 } |
| 58 | |
| 59 if (is_clang) { | |
| 60 if (sky_gc_plugin && clang_use_chrome_plugins) { | |
| 61 # TODO(GYP) | |
| 62 #'cflags': ['<!@(../../tools/clang/scripts/blink_gc_plugin_flags.sh enable
-oilpan=<(sky_enable_oilpan) dump-graph=<(sky_gc_plugin_dump_graph))'], | |
| 63 } | |
| 64 } | |
| 65 } | 58 } |
| 66 | 59 |
| 67 # The follow configs apply to all targets except for unit tests, which rely on | 60 # The follow configs apply to all targets except for unit tests, which rely on |
| 68 # static initializers. | 61 # static initializers. |
| 69 config("non_test_config") { | 62 config("non_test_config") { |
| 70 cflags = [] | 63 cflags = [] |
| 71 | 64 |
| 72 if (is_clang) { | 65 if (is_clang) { |
| 73 cflags += [ "-Wglobal-constructors" ] | 66 cflags += [ "-Wglobal-constructors" ] |
| 74 } | 67 } |
| 75 } | 68 } |
| 76 | 69 |
| 77 group("engine") { | 70 group("engine") { |
| 78 deps = [ | 71 deps = [ |
| 79 "//sky/engine/web", | 72 "//sky/engine/web", |
| 80 "//sky/engine/platform", | 73 "//sky/engine/platform", |
| 81 ] | 74 ] |
| 82 } | 75 } |
| OLD | NEW |