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

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

Issue 773283006: Run gn format on all BUILD.gn files (gn version 306668) (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
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("//ui/ozone/ozone.gni") 5 import("//ui/ozone/ozone.gni")
6 6
7 # The list of platforms that will be built. 7 # The list of platforms that will be built.
8 ozone_platforms = [] 8 ozone_platforms = []
9 9
10 # Extra dependencies to pull into ui/ozone for built platforms. 10 # Extra dependencies to pull into ui/ozone for built platforms.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 "//skia", 68 "//skia",
69 "//ui/gfx/geometry", 69 "//ui/gfx/geometry",
70 ] 70 ]
71 } 71 }
72 72
73 component("ozone") { 73 component("ozone") {
74 sources = [ 74 sources = [
75 platform_list_cc_file, 75 platform_list_cc_file,
76 platform_list_h_file, 76 platform_list_h_file,
77 constructor_list_cc_file, 77 constructor_list_cc_file,
78
79 "common/display_mode_proxy.cc", 78 "common/display_mode_proxy.cc",
80 "common/display_mode_proxy.h", 79 "common/display_mode_proxy.h",
81 "common/display_snapshot_proxy.cc", 80 "common/display_snapshot_proxy.cc",
82 "common/display_snapshot_proxy.h", 81 "common/display_snapshot_proxy.h",
83 "common/display_util.cc", 82 "common/display_util.cc",
84 "common/display_util.h", 83 "common/display_util.h",
85 "common/gpu/ozone_gpu_message_generator.cc", 84 "common/gpu/ozone_gpu_message_generator.cc",
86 "common/gpu/ozone_gpu_message_generator.h", 85 "common/gpu/ozone_gpu_message_generator.h",
87 "common/gpu/ozone_gpu_message_params.cc", 86 "common/gpu/ozone_gpu_message_params.cc",
88 "common/gpu/ozone_gpu_message_params.h", 87 "common/gpu/ozone_gpu_message_params.h",
89 "common/gpu/ozone_gpu_messages.h", 88 "common/gpu/ozone_gpu_messages.h",
90 "common/native_display_delegate_ozone.cc", 89 "common/native_display_delegate_ozone.cc",
91 "common/native_display_delegate_ozone.h", 90 "common/native_display_delegate_ozone.h",
92 "public/ozone_platform.cc", 91 "public/ozone_platform.cc",
93 "public/ozone_platform.h", 92 "public/ozone_platform.h",
94 "public/ozone_switches.cc", 93 "public/ozone_switches.cc",
95 "public/ozone_switches.h", 94 "public/ozone_switches.h",
96 "public/ui_thread_gpu.cc", 95 "public/ui_thread_gpu.cc",
97 "public/ui_thread_gpu.h", 96 "public/ui_thread_gpu.h",
98 "platform_selection.cc", 97 "platform_selection.cc",
99 "platform_selection.h", 98 "platform_selection.h",
100 ] 99 ]
101 100
102 defines = [ "OZONE_IMPLEMENTATION" ] 101 defines = [ "OZONE_IMPLEMENTATION" ]
103 102
104 deps = [ 103 deps =
105 ":generate_constructor_list", 104 [
106 ":generate_ozone_platform_list", 105 ":generate_constructor_list",
107 ":ozone_base", 106 ":generate_ozone_platform_list",
108 "//base", 107 ":ozone_base",
109 "//ipc", 108 "//base",
110 "//skia", 109 "//ipc",
111 "//ui/display/types", 110 "//skia",
112 "//ui/events", 111 "//ui/display/types",
113 "//ui/events/ozone:events_ozone", 112 "//ui/events",
114 "//ui/gfx", 113 "//ui/events/ozone:events_ozone",
115 "//ui/gfx/geometry", 114 "//ui/gfx",
116 "//ui/gfx/ipc", 115 "//ui/gfx/geometry",
117 # TODO(GYP) the GYP version has a way to add additional dependencies via 116 "//ui/gfx/ipc",
118 # build flags.
119 ] + ozone_platform_deps
120 117
118 # TODO(GYP) the GYP version has a way to add additional dependencies via
119 # build flags.
120 ] + ozone_platform_deps
121 } 121 }
122 122
123 # GYP version: ui/ozone/ozone.gyp:generate_ozone_platform_list 123 # GYP version: ui/ozone/ozone.gyp:generate_ozone_platform_list
124 action("generate_ozone_platform_list") { 124 action("generate_ozone_platform_list") {
125 script = "generate_ozone_platform_list.py" 125 script = "generate_ozone_platform_list.py"
126 outputs = [ 126 outputs = [
127 platform_list_cc_file, 127 platform_list_cc_file,
128 platform_list_h_file, 128 platform_list_h_file,
129 platform_list_txt_file 129 platform_list_txt_file,
130 ] 130 ]
131 131
132 args = [ 132 args =
133 "--output_cc=" + rebase_path(platform_list_cc_file, root_build_dir), 133 [
134 "--output_h=" + rebase_path(platform_list_h_file, root_build_dir), 134 "--output_cc=" + rebase_path(platform_list_cc_file, root_build_dir),
135 "--output_txt=" + rebase_path(platform_list_txt_file, root_build_dir), 135 "--output_h=" + rebase_path(platform_list_h_file, root_build_dir),
136 "--default=$ozone_platform", 136 "--output_txt=" + rebase_path(platform_list_txt_file, root_build_dir),
137 ] + ozone_platforms 137 "--default=$ozone_platform",
138 ] + ozone_platforms
138 } 139 }
139 140
140 # GYP version: ui/ozone/ozone.gyp:generate_constructor_list 141 # GYP version: ui/ozone/ozone.gyp:generate_constructor_list
141 action("generate_constructor_list") { 142 action("generate_constructor_list") {
142 script = "generate_constructor_list.py" 143 script = "generate_constructor_list.py"
143 144
144 source_prereqs = [ 145 source_prereqs = [ platform_list_txt_file ]
145 platform_list_txt_file,
146 ]
147 outputs = [ 146 outputs = [
148 constructor_list_cc_file, 147 constructor_list_cc_file,
149 ] 148 ]
150 149
151 args = [ 150 args = [
152 "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir), 151 "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir),
153 "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir), 152 "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir),
154 "--namespace=ui", 153 "--namespace=ui",
155 "--typename=OzonePlatform", 154 "--typename=OzonePlatform",
156 "--include=\"ui/ozone/public/ozone_platform.h\"", 155 "--include=\"ui/ozone/public/ozone_platform.h\"",
157 ] 156 ]
158 157
159 deps = [ ":generate_ozone_platform_list" ] 158 deps = [
159 ":generate_ozone_platform_list",
160 ]
160 } 161 }
161 162
162 test("ozone_unittests") { 163 test("ozone_unittests") {
163 sources = [ 164 sources = [
164 "run_all_unittests.cc", 165 "run_all_unittests.cc",
165 ] 166 ]
166 167
167 deps = [ 168 deps = [
168 "//base/test:test_support", 169 "//base/test:test_support",
169 "//testing/gtest", 170 "//testing/gtest",
170 ] + ozone_platform_test_deps 171 ] + ozone_platform_test_deps
171 } 172 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698