Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1952)

Side by Side Diff: sky/engine/BUILD.gn

Issue 875103002: Add a build-time flag for enabling Dart in Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sky/engine/config.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | sky/engine/config.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698