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

Side by Side Diff: ui/views/BUILD.gn

Issue 2024953007: Make DesktopFactoryOzone instances to respect --ozone-platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make DesktopFactoryOzone instances to respect --ozone-platform Created 4 years, 6 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 | ui/views/DEPS » ('j') | ui/views/views.gyp » ('J')
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/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 8
9 gypi_values = exec_script("//build/gypi_to_gn.py", 9 gypi_values = exec_script("//build/gypi_to_gn.py",
10 [ rebase_path("views.gyp") ], 10 [ rebase_path("views.gyp") ],
11 "scope", 11 "scope",
12 [ "views.gyp" ]) 12 [ "views.gyp" ])
13 13
14 config("flags") { 14 config("flags") {
15 defines = [ "TOOLKIT_VIEWS=1" ] 15 defines = [ "TOOLKIT_VIEWS=1" ]
16 } 16 }
17 17
18 constructor_list_cc_file = "$target_gen_dir/desktop_factory_ozone_list.cc"
19
18 component("views") { 20 component("views") {
19 all_dependent_configs = [ ":flags" ] 21 all_dependent_configs = [ ":flags" ]
20 sources = gypi_values.views_sources 22 sources = gypi_values.views_sources
21 23
22 configs += [ 24 configs += [
23 "//build/config:precompiled_headers", 25 "//build/config:precompiled_headers",
24 26
25 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 27 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
26 "//build/config/compiler:no_size_t_to_int_warning", 28 "//build/config/compiler:no_size_t_to_int_warning",
27 ] 29 ]
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 ] 122 ]
121 if (!is_chromeos) { 123 if (!is_chromeos) {
122 sources += gypi_values.views_desktop_aura_sources 124 sources += gypi_values.views_desktop_aura_sources
123 if (use_x11) { 125 if (use_x11) {
124 sources += gypi_values.views_desktop_aura_x11_sources 126 sources += gypi_values.views_desktop_aura_x11_sources
125 configs += [ "//ui/accessibility:atk" ] 127 configs += [ "//ui/accessibility:atk" ]
126 } else if (is_win) { 128 } else if (is_win) {
127 sources += gypi_values.views_desktop_aura_win_sources 129 sources += gypi_values.views_desktop_aura_win_sources
128 } else if (use_ozone) { 130 } else if (use_ozone) {
129 sources += gypi_values.views_desktop_aura_ozone_sources 131 sources += gypi_values.views_desktop_aura_ozone_sources
132 deps += [
133 ":generate_constructor_list",
134 ]
135 sources += [ constructor_list_cc_file ]
136 if (ozone_platform_wayland) {
137 sources += gypi_values.views_desktop_aura_ozone_wayland_sources
138 }
130 } 139 }
131 if (is_linux) { 140 if (is_linux) {
132 sources += gypi_values.views_desktop_aura_linux_sources 141 sources += gypi_values.views_desktop_aura_linux_sources
133 } 142 }
134 } 143 }
135 } 144 }
136 145
137 if (is_mac) { 146 if (is_mac) {
138 deps += [ 147 deps += [
139 "//ui/accelerated_widget_mac", 148 "//ui/accelerated_widget_mac",
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 "//ui/base:test_support", 334 "//ui/base:test_support",
326 "//ui/compositor", 335 "//ui/compositor",
327 "//ui/events:test_support", 336 "//ui/events:test_support",
328 "//ui/gl:test_support", 337 "//ui/gl:test_support",
329 "//ui/resources", 338 "//ui/resources",
330 "//ui/resources:ui_test_pak", 339 "//ui/resources:ui_test_pak",
331 "//ui/strings", 340 "//ui/strings",
332 ] 341 ]
333 } 342 }
334 } 343 }
344
345 # GYP version: ui//views/views.gyp:generate_constructor_list
346 action("generate_constructor_list") {
347 script = "../ozone/generate_constructor_list.py"
348 outputs = [
349 constructor_list_cc_file,
350 ]
351 platform_list_txt_file = "$target_gen_dir/../ozone/platform_list.txt"
352
353 args = [
354 "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir),
355 "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir),
356 "--namespace=views",
357 "--typename=DesktopFactoryOzone",
358 "--include=\"ui/views/widget/desktop_aura/desktop_factory_ozone.h\"",
359 ]
360 }
OLDNEW
« no previous file with comments | « no previous file | ui/views/DEPS » ('j') | ui/views/views.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698