OLD | NEW |
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("features.gni") |
| 6 import("//build/buildflag_header.gni") |
5 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
7 import("//media/media_options.gni") | 9 import("//media/media_options.gni") |
8 import("//mojo/public/tools/bindings/mojom.gni") | 10 import("//mojo/public/tools/bindings/mojom.gni") |
9 import("//ppapi/features/features.gni") | 11 import("//ppapi/features/features.gni") |
10 import("//sandbox/features.gni") | 12 import("//sandbox/features.gni") |
11 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") | 13 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") |
12 if (is_mac) { | 14 if (is_mac) { |
13 import("//build/config/mac/mac_sdk.gni") | 15 import("//build/config/mac/mac_sdk.gni") |
14 } | 16 } |
15 | 17 |
| 18 # For feature flags internal to content. See content/public/common:features |
| 19 # for feature flags that clients of contents need to know about. |
| 20 buildflag_header("features") { |
| 21 header = "features.h" |
| 22 |
| 23 flags = [ "USE_EXTERNAL_POPUP_MENU=$use_external_popup_menu" ] |
| 24 } |
| 25 |
16 source_set("common") { | 26 source_set("common") { |
17 # Targets external to content should always link to the public API. | 27 # Targets external to content should always link to the public API. |
18 # In addition, targets outside of the content component (shell and tests) | 28 # In addition, targets outside of the content component (shell and tests) |
19 # must not link to this because it will duplicate the code in the component | 29 # must not link to this because it will duplicate the code in the component |
20 # build. | 30 # build. |
21 visibility = [ "//content/*" ] | 31 visibility = [ "//content/*" ] |
22 | 32 |
23 sources = [ | 33 sources = [ |
24 "accessibility_messages.h", | 34 "accessibility_messages.h", |
25 "all_messages.h", | 35 "all_messages.h", |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 ] | 359 ] |
350 | 360 |
351 public_deps = [ | 361 public_deps = [ |
352 ":mojo_bindings", | 362 ":mojo_bindings", |
353 "//cc", | 363 "//cc", |
354 "//gpu/command_buffer/common", | 364 "//gpu/command_buffer/common", |
355 "//ipc", | 365 "//ipc", |
356 "//third_party/WebKit/public:blink_headers", | 366 "//third_party/WebKit/public:blink_headers", |
357 ] | 367 ] |
358 deps = [ | 368 deps = [ |
| 369 ":features", |
359 "//base", | 370 "//base", |
360 "//base/third_party/dynamic_annotations", | 371 "//base/third_party/dynamic_annotations", |
361 "//build/util:webkit_version", | 372 "//build/util:webkit_version", |
362 "//cc/ipc", | 373 "//cc/ipc", |
363 "//cc/surfaces", | 374 "//cc/surfaces", |
364 "//components/discardable_memory/common", | 375 "//components/discardable_memory/common", |
365 "//components/tracing", | 376 "//components/tracing", |
366 "//components/tracing:startup_tracing", | 377 "//components/tracing:startup_tracing", |
367 "//content:resources", | 378 "//content:resources", |
368 "//content/app/resources", | 379 "//content/app/resources", |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 "//url/mojo:url_mojom_origin", | 639 "//url/mojo:url_mojom_origin", |
629 ] | 640 ] |
630 | 641 |
631 overridden_deps = [ "//ipc:mojom" ] | 642 overridden_deps = [ "//ipc:mojom" ] |
632 component_deps = [ "//ipc" ] | 643 component_deps = [ "//ipc" ] |
633 | 644 |
634 export_class_attribute = "CONTENT_EXPORT" | 645 export_class_attribute = "CONTENT_EXPORT" |
635 export_define = "CONTENT_IMPLEMENTATION=1" | 646 export_define = "CONTENT_IMPLEMENTATION=1" |
636 export_header = "content/common/content_export.h" | 647 export_header = "content/common/content_export.h" |
637 } | 648 } |
OLD | NEW |