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

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

Issue 1930303002: Simplify GN target names for //blimp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix blimp_shell Created 4 years, 7 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 | « blimp/docs/container.md ('k') | blimp/engine/engine-manifest.txt » ('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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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/sanitizers/sanitizers.gni") 6 import("//build/config/sanitizers/sanitizers.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//mojo/public/tools/bindings/mojom.gni") 8 import("//mojo/public/tools/bindings/mojom.gni")
9 import("//tools/grit/repack.gni") 9 import("//tools/grit/repack.gni")
10 import("//tools/grit/grit_rule.gni") 10 import("//tools/grit/grit_rule.gni")
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 ":app_net", 60 ":app_net",
61 ":app_permissions", 61 ":app_permissions",
62 ":app_settings", 62 ":app_settings",
63 ":app_switches", 63 ":app_switches",
64 ":app_ui", 64 ":app_ui",
65 ":blob_channel", 65 ":blob_channel",
66 ":common", 66 ":common",
67 ":renderer", 67 ":renderer",
68 ":session", 68 ":session",
69 "//base", 69 "//base",
70 "//blimp/common:blimp_common", 70 "//blimp/common",
71 "//blimp/common/proto", 71 "//blimp/common/proto",
72 "//blimp/engine:blob_channel_mojo_cpp_sources", 72 "//blimp/engine:blob_channel_mojo_cpp_sources",
73 "//blimp/net:blimp_net", 73 "//blimp/net",
74 "//content/public/app:both", 74 "//content/public/app:both",
75 "//content/public/browser", 75 "//content/public/browser",
76 "//content/public/common", 76 "//content/public/common",
77 "//content/public/renderer", 77 "//content/public/renderer",
78 "//content/public/utility", 78 "//content/public/utility",
79 "//net", 79 "//net",
80 ] 80 ]
81 } 81 }
82 82
83 source_set("app_config") { 83 source_set("app_config") {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 ] 119 ]
120 } 120 }
121 121
122 source_set("app_settings") { 122 source_set("app_settings") {
123 sources = [ 123 sources = [
124 "app/engine_settings.h", 124 "app/engine_settings.h",
125 "app/settings_manager.cc", 125 "app/settings_manager.cc",
126 "app/settings_manager.h", 126 "app/settings_manager.h",
127 ] 127 ]
128 deps = [ 128 deps = [
129 "//blimp/net:blimp_net", 129 "//blimp/net",
130 "//content/public/browser", 130 "//content/public/browser",
131 "//content/public/common", 131 "//content/public/common",
132 ] 132 ]
133 } 133 }
134 134
135 source_set("app_switches") { 135 source_set("app_switches") {
136 sources = [ 136 sources = [
137 "app/switches.cc", 137 "app/switches.cc",
138 "app/switches.h", 138 "app/switches.h",
139 ] 139 ]
140 } 140 }
141 141
142 source_set("app_ui") { 142 source_set("app_ui") {
143 sources = [ 143 sources = [
144 "app/ui/blimp_layout_manager.cc", 144 "app/ui/blimp_layout_manager.cc",
145 "app/ui/blimp_layout_manager.h", 145 "app/ui/blimp_layout_manager.h",
146 "app/ui/blimp_screen.cc", 146 "app/ui/blimp_screen.cc",
147 "app/ui/blimp_screen.h", 147 "app/ui/blimp_screen.h",
148 "app/ui/blimp_window_tree_client.cc", 148 "app/ui/blimp_window_tree_client.cc",
149 "app/ui/blimp_window_tree_client.h", 149 "app/ui/blimp_window_tree_client.h",
150 "app/ui/blimp_window_tree_host.cc", 150 "app/ui/blimp_window_tree_host.cc",
151 "app/ui/blimp_window_tree_host.h", 151 "app/ui/blimp_window_tree_host.h",
152 ] 152 ]
153 153
154 deps = [ 154 deps = [
155 "//blimp/common:blimp_common", 155 "//blimp/common",
156 "//cc", 156 "//cc",
157 "//cc/surfaces", 157 "//cc/surfaces",
158 "//ui/aura", 158 "//ui/aura",
159 "//ui/compositor", 159 "//ui/compositor",
160 "//ui/events", 160 "//ui/events",
161 "//ui/gfx", 161 "//ui/gfx",
162 "//ui/platform_window", 162 "//ui/platform_window",
163 "//ui/platform_window", 163 "//ui/platform_window",
164 "//ui/platform_window/stub/", 164 "//ui/platform_window/stub/",
165 ] 165 ]
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 source_set("feature") { 199 source_set("feature") {
200 sources = [ 200 sources = [
201 "feature/engine_render_widget_feature.cc", 201 "feature/engine_render_widget_feature.cc",
202 "feature/engine_render_widget_feature.h", 202 "feature/engine_render_widget_feature.h",
203 "feature/engine_settings_feature.cc", 203 "feature/engine_settings_feature.cc",
204 "feature/engine_settings_feature.h", 204 "feature/engine_settings_feature.h",
205 ] 205 ]
206 206
207 deps = [ 207 deps = [
208 "//base", 208 "//base",
209 "//blimp/common:blimp_common", 209 "//blimp/common",
210 "//blimp/common/proto", 210 "//blimp/common/proto",
211 "//blimp/engine:app_settings", 211 "//blimp/engine:app_settings",
212 "//blimp/engine:common", 212 "//blimp/engine:common",
213 "//blimp/net:blimp_net", 213 "//blimp/net",
214 "//content/public/browser", 214 "//content/public/browser",
215 "//content/public/common", 215 "//content/public/common",
216 "//net", 216 "//net",
217 "//ui/base", 217 "//ui/base",
218 "//ui/base/ime", 218 "//ui/base/ime",
219 "//ui/resources", 219 "//ui/resources",
220 "//ui/wm", 220 "//ui/wm",
221 ] 221 ]
222 } 222 }
223 223
224 source_set("renderer") { 224 source_set("renderer") {
225 sources = [ 225 sources = [
226 "renderer/blimp_content_renderer_client.cc", 226 "renderer/blimp_content_renderer_client.cc",
227 "renderer/blimp_content_renderer_client.h", 227 "renderer/blimp_content_renderer_client.h",
228 "renderer/engine_image_serialization_processor.cc", 228 "renderer/engine_image_serialization_processor.cc",
229 "renderer/engine_image_serialization_processor.h", 229 "renderer/engine_image_serialization_processor.h",
230 ] 230 ]
231 231
232 deps = [ 232 deps = [
233 ":blob_channel_mojo", 233 ":blob_channel_mojo",
234 "//base", 234 "//base",
235 "//blimp/common:blimp_common", 235 "//blimp/common",
236 "//blimp/common/proto", 236 "//blimp/common/proto",
237 "//cc", 237 "//cc",
238 "//components/web_cache/renderer", 238 "//components/web_cache/renderer",
239 "//content/public/common", 239 "//content/public/common",
240 "//content/public/renderer", 240 "//content/public/renderer",
241 "//skia", 241 "//skia",
242 "//third_party/libwebp", 242 "//third_party/libwebp",
243 "//ui/gfx/geometry", 243 "//ui/gfx/geometry",
244 "//ui/gl", 244 "//ui/gl",
245 ] 245 ]
246 } 246 }
247 247
248 source_set("session") { 248 source_set("session") {
249 sources = [ 249 sources = [
250 "session/blimp_engine_session.cc", 250 "session/blimp_engine_session.cc",
251 "session/blimp_engine_session.h", 251 "session/blimp_engine_session.h",
252 ] 252 ]
253 253
254 deps = [ 254 deps = [
255 ":app_config", 255 ":app_config",
256 ":app_settings", 256 ":app_settings",
257 ":app_switches", 257 ":app_switches",
258 ":app_ui", 258 ":app_ui",
259 ":common", 259 ":common",
260 ":feature", 260 ":feature",
261 "//base", 261 "//base",
262 "//blimp/common:blimp_common", 262 "//blimp/common",
263 "//blimp/common/proto", 263 "//blimp/common/proto",
264 "//blimp/net:blimp_net", 264 "//blimp/net",
265 "//content/public/browser", 265 "//content/public/browser",
266 "//net", 266 "//net",
267 "//ui/aura", 267 "//ui/aura",
268 "//ui/base/ime", 268 "//ui/base/ime",
269 "//ui/gfx/geometry", 269 "//ui/gfx/geometry",
270 "//ui/wm", 270 "//ui/wm",
271 ] 271 ]
272 } 272 }
273 273
274 # Implements the browser portions of the Mojo bridge to BlobChannel. 274 # Implements the browser portions of the Mojo bridge to BlobChannel.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 sources = [ 318 sources = [
319 "feature/engine_render_widget_feature_unittest.cc", 319 "feature/engine_render_widget_feature_unittest.cc",
320 "feature/engine_settings_feature_unittest.cc", 320 "feature/engine_settings_feature_unittest.cc",
321 ] 321 ]
322 322
323 deps = [ 323 deps = [
324 ":feature", 324 ":feature",
325 "//base", 325 "//base",
326 "//base/test:run_all_unittests", 326 "//base/test:run_all_unittests",
327 "//base/test:test_support", 327 "//base/test:test_support",
328 "//blimp/common:blimp_common", 328 "//blimp/common",
329 "//blimp/common/proto", 329 "//blimp/common/proto",
330 "//blimp/engine:app_settings", 330 "//blimp/engine:app_settings",
331 "//blimp/net:blimp_net", 331 "//blimp/net",
332 "//blimp/net:test_support", 332 "//blimp/net:test_support",
333 "//content/public/browser", 333 "//content/public/browser",
334 "//net", 334 "//net",
335 "//net:test_support", 335 "//net:test_support",
336 "//testing/gmock", 336 "//testing/gmock",
337 "//testing/gtest", 337 "//testing/gtest",
338 "//third_party/WebKit/public:blink_headers", 338 "//third_party/WebKit/public:blink_headers",
339 "//ui/base/ime", 339 "//ui/base/ime",
340 ] 340 ]
341 } 341 }
(...skipping 10 matching lines...) Expand all
352 if (is_linux) { 352 if (is_linux) {
353 executable("blimp_engine_app") { 353 executable("blimp_engine_app") {
354 sources = [ 354 sources = [
355 "app/blimp_main.cc", 355 "app/blimp_main.cc",
356 ] 356 ]
357 357
358 deps = [ 358 deps = [
359 ":app", 359 ":app",
360 ":pak", 360 ":pak",
361 "//base", 361 "//base",
362 "//blimp/net:blimp_net", 362 "//blimp/net",
363 "//content/public/app:both", 363 "//content/public/app:both",
364 ] 364 ]
365 } 365 }
366 366
367 group("blimp_engine") { 367 group("engine") {
368 deps = [ 368 deps = [
369 ":blimp_engine_app", 369 ":blimp_engine_app",
370 ":pak", 370 ":pak",
371 "//sandbox/linux:chrome_sandbox", 371 "//sandbox/linux:chrome_sandbox",
372 "//third_party/blimp_fonts", 372 "//third_party/blimp_fonts",
373 ] 373 ]
374 374
375 # List dependencies as both deps and data_deps to ensure changes trigger a 375 # List dependencies as both deps and data_deps to ensure changes trigger a
376 # rebuild and "gn desc ... runtime_deps" correctly prints the data_deps. 376 # rebuild and "gn desc ... runtime_deps" correctly prints the data_deps.
377 data_deps = deps 377 data_deps = deps
378 } 378 }
379 379
380 # Builds and bundles the engine into a tarball that can be used to build a 380 # Builds and bundles the engine into a tarball that can be used to build a
381 # Docker image. 381 # Docker image.
382 action("blimp_engine_bundle") { 382 action("blimp_engine_bundle") {
383 script = "//blimp/tools/bundle-engine.py" 383 script = "//blimp/tools/bundle-engine.py"
384 384
385 # These form the arguments to the script. 385 # These form the arguments to the script.
386 _rebased_out_dir = rebase_path(root_out_dir) 386 _rebased_out_dir = rebase_path(root_out_dir)
387 _rebased_dockerfile = rebase_path("//blimp/engine/Dockerfile") 387 _rebased_dockerfile = rebase_path("//blimp/engine/Dockerfile")
388 _rebased_startup_script = rebase_path("//blimp/engine/start_engine.sh") 388 _rebased_startup_script = rebase_path("//blimp/engine/start_engine.sh")
389 _rebased_manifest = rebase_path("//blimp/engine/engine-manifest.txt") 389 _rebased_manifest = rebase_path("//blimp/engine/engine-manifest.txt")
390 _bundle = "$root_out_dir/blimp_engine_bundle.tar.gz" 390 _bundle = "$root_out_dir/blimp_engine_bundle.tar.gz"
391 391
392 # Detail the target & "source"-file dependencies, and output, for GN. 392 # Detail the target & "source"-file dependencies, and output, for GN.
393 deps = [ 393 deps = [
394 "//blimp/engine:blimp_engine", 394 "//blimp/engine",
395 ] 395 ]
396 sources = [ 396 sources = [
397 _rebased_dockerfile, 397 _rebased_dockerfile,
398 _rebased_manifest, 398 _rebased_manifest,
399 _rebased_startup_script, 399 _rebased_startup_script,
400 ] 400 ]
401 outputs = [ 401 outputs = [
402 _bundle, 402 _bundle,
403 ] 403 ]
404 404
405 # Manually specify the actual arguments to the script. 405 # Manually specify the actual arguments to the script.
406 args = [ 406 args = [
407 "--build-dir", 407 "--build-dir",
408 _rebased_out_dir, 408 _rebased_out_dir,
409 "--dockerfile", 409 "--dockerfile",
410 _rebased_dockerfile, 410 _rebased_dockerfile,
411 "--startup-script", 411 "--startup-script",
412 _rebased_startup_script, 412 _rebased_startup_script,
413 "--manifest", 413 "--manifest",
414 _rebased_manifest, 414 _rebased_manifest,
415 "--output", 415 "--output",
416 rebase_path(_bundle), 416 rebase_path(_bundle),
417 ] 417 ]
418 } 418 }
419 } 419 }
OLDNEW
« no previous file with comments | « blimp/docs/container.md ('k') | blimp/engine/engine-manifest.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698