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

Side by Side Diff: sky/engine/config.gni

Issue 737793006: Add compile flag for enabling the compostior (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cleanup Created 6 years, 1 month 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/core/frame/FrameView.h » ('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("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 6
7 if (is_android) { 7 if (is_android) {
8 import("//build/config/android/config.gni") 8 import("//build/config/android/config.gni")
9 } else { 9 } else {
10 # TODO(brettw) remove this once && early-out is checked in. 10 # TODO(brettw) remove this once && early-out is checked in.
11 is_android_webview_build = false 11 is_android_webview_build = false
12 } 12 }
13 if (cpu_arch == "arm") { 13 if (cpu_arch == "arm") {
14 import("//build/config/arm.gni") 14 import("//build/config/arm.gni")
15 } else { 15 } else {
16 # TODO(brettw) remove this once && early-out is checked in. 16 # TODO(brettw) remove this once && early-out is checked in.
17 arm_version = 0 17 arm_version = 0
18 } 18 }
19 19
20 declare_args() { 20 declare_args() {
21 # Enables the Oilpan garbage-collection infrastructure. 21 # Enables the Oilpan garbage-collection infrastructure.
22 sky_enable_oilpan = false 22 sky_enable_oilpan = false
23 23
24 # Set to true to enable the clang plugin that checks the usage of the Blink 24 # Set to true to enable the clang plugin that checks the usage of the Blink
25 # garbage-collection infrastructure during compilation. 25 # garbage-collection infrastructure during compilation.
26 sky_gc_plugin = false 26 sky_gc_plugin = false
27 sky_gc_plugin_dump_graph = false 27 sky_gc_plugin_dump_graph = false
28 28
29 sky_asserts_always_on = false 29 sky_asserts_always_on = false
30
31 sky_enable_compostior = false
30 } 32 }
31 33
32 # feature_defines_list --------------------------------------------------------- 34 # feature_defines_list ---------------------------------------------------------
33 35
34 feature_defines_list = [] 36 feature_defines_list = []
35 37
36 if (is_debug) { 38 if (is_debug) {
37 # TODO(GYP) this should also be set when release_valgrind_build is set, 39 # TODO(GYP) this should also be set when release_valgrind_build is set,
38 # but we don't have that flag in the GN build yet. 40 # but we don't have that flag in the GN build yet.
39 feature_defines_list += [ "WTF_USE_DYNAMIC_ANNOTATIONS=1" ] 41 feature_defines_list += [ "WTF_USE_DYNAMIC_ANNOTATIONS=1" ]
40 } 42 }
41 43
42 if (!is_mac) { 44 if (!is_mac) {
43 # Mac OS X has not implemented support for ENABLE(OPENTYPE_VERTICAL) yet. 45 # Mac OS X has not implemented support for ENABLE(OPENTYPE_VERTICAL) yet.
44 feature_defines_list += [ "ENABLE_OPENTYPE_VERTICAL=1" ] 46 feature_defines_list += [ "ENABLE_OPENTYPE_VERTICAL=1" ]
45 } 47 }
46 48
47 if (sky_enable_oilpan) { 49 if (sky_enable_oilpan) {
48 feature_defines_list += [ "ENABLE_OILPAN=1" ] 50 feature_defines_list += [ "ENABLE_OILPAN=1" ]
49 } 51 }
50 if (sky_asserts_always_on) { 52 if (sky_asserts_always_on) {
51 feature_defines_list += [ "ENABLE_ASSERT=1" ] 53 feature_defines_list += [ "ENABLE_ASSERT=1" ]
52 } 54 }
55 if (sky_enable_compostior) {
56 feature_defines_list += [ "ENABLE_COMPOSITOR=1" ]
57 }
53 58
54 # feature_defines_string ------------------------------------------------------- 59 # feature_defines_string -------------------------------------------------------
55 60
56 # Convert the list to a space-separated string for passing to scripts. 61 # Convert the list to a space-separated string for passing to scripts.
57 # This would be the equivalent of passing '<(feature_defines)' in GYP. 62 # This would be the equivalent of passing '<(feature_defines)' in GYP.
58 feature_defines_string = exec_script( 63 feature_defines_string = exec_script(
59 "build/gn_list_to_space_separated_string.py", 64 "build/gn_list_to_space_separated_string.py",
60 feature_defines_list, 65 feature_defines_list,
61 "trim string") 66 "trim string")
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698