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 28 matching lines...) Expand all Loading... |
39 cflags = [] | 39 cflags = [] |
40 defines = [] | 40 defines = [] |
41 | 41 |
42 # TODO(GYP) this should be based on gcc_version >= 46 but GN doesn't have a | 42 # TODO(GYP) this should be based on gcc_version >= 46 but GN doesn't have a |
43 # concept of GCC version yet. | 43 # concept of GCC version yet. |
44 | 44 |
45 # Disable warnings about c++0x compatibility, as some names (such as | 45 # Disable warnings about c++0x compatibility, as some names (such as |
46 # nullptr) conflict with upcoming c++0x types. | 46 # nullptr) conflict with upcoming c++0x types. |
47 cflags_cc = [ "-Wno-c++0x-compat" ] | 47 cflags_cc = [ "-Wno-c++0x-compat" ] |
48 | 48 |
49 if (is_linux && cpu_arch == "arm") { | 49 if (is_linux && target_cpu == "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 } | 58 } |
59 | 59 |
60 # 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 |
61 # static initializers. | 61 # static initializers. |
62 config("non_test_config") { | 62 config("non_test_config") { |
63 cflags = [] | 63 cflags = [] |
64 | 64 |
65 if (is_clang) { | 65 if (is_clang) { |
66 cflags += [ "-Wglobal-constructors" ] | 66 cflags += [ "-Wglobal-constructors" ] |
67 } | 67 } |
68 } | 68 } |
69 | 69 |
70 group("engine") { | 70 group("engine") { |
71 deps = [ | 71 deps = [ |
72 "//sky/engine/web", | 72 "//sky/engine/web", |
73 "//sky/engine/platform", | 73 "//sky/engine/platform", |
74 ] | 74 ] |
75 } | 75 } |
OLD | NEW |