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

Side by Side Diff: content/public/common/BUILD.gn

Issue 1817903002: Make more of content pass "gn check" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « content/public/child/BUILD.gn ('k') | content/public/gpu/BUILD.gn » ('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/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//build/config/chromecast_build.gni") 6 import("//build/config/chromecast_build.gni")
7 import("//build/config/features.gni") 7 import("//build/config/features.gni")
8 import("//content/common/common.gni") 8 import("//content/common/common.gni")
9 import("//mojo/public/tools/bindings/mojom.gni") 9 import("//mojo/public/tools/bindings/mojom.gni")
10 import("//third_party/webrtc/build/webrtc.gni") 10 import("//third_party/webrtc/build/webrtc.gni")
(...skipping 18 matching lines...) Expand all
29 "result_codes.h", 29 "result_codes.h",
30 ] 30 ]
31 } 31 }
32 32
33 # This target allows other targets to depend on content_descriptors.h which is 33 # This target allows other targets to depend on content_descriptors.h which is
34 # a header-only dependency, without bringing in all of content. 34 # a header-only dependency, without bringing in all of content.
35 source_set("content_descriptors") { 35 source_set("content_descriptors") {
36 sources = [ 36 sources = [
37 "content_descriptors.h", 37 "content_descriptors.h",
38 ] 38 ]
39
40 # The header uses V8_USE_EXTERNAL_STARTUP_DATA.
39 public_configs = [ "//v8:external_startup_data" ] 41 public_configs = [ "//v8:external_startup_data" ]
42
43 deps = [
44 "//ipc",
45 ]
40 } 46 }
41 47
42 # Forces static linking for targets using the static_switches constants, even 48 # Forces static linking for targets using the static_switches constants, even
43 # in the component build. This config makes it impossible to use the static 49 # in the component build. This config makes it impossible to use the static
44 # switches target and use the rest of content at the same time, because the 50 # switches target and use the rest of content at the same time, because the
45 # component export flags won't be consistent. 51 # component export flags won't be consistent.
46 config("static_switches_defines") { 52 config("static_switches_defines") {
47 defines = [ "COMPILE_CONTENT_STATICALLY" ] 53 defines = [ "COMPILE_CONTENT_STATICALLY" ]
48 } 54 }
49 55
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 ] 90 ]
85 91
86 public_configs = [ "//v8:external_startup_data" ] 92 public_configs = [ "//v8:external_startup_data" ]
87 93
88 public_deps = [ 94 public_deps = [
89 "//content/common", 95 "//content/common",
90 "//mojo/public/cpp/bindings", 96 "//mojo/public/cpp/bindings",
91 "//url/ipc:url_ipc", 97 "//url/ipc:url_ipc",
92 ] 98 ]
93 deps = [ 99 deps = [
100 "//ipc",
101 "//ipc/mojo",
102 "//media",
103 "//mojo/common",
94 "//net", 104 "//net",
105 "//ppapi/c",
95 "//skia", 106 "//skia",
107 "//storage/common",
96 "//third_party/WebKit/public:blink_headers", 108 "//third_party/WebKit/public:blink_headers",
97 "//third_party/icu", 109 "//third_party/icu",
110 "//ui/accessibility",
98 "//ui/base", 111 "//ui/base",
99 "//ui/gfx", 112 "//ui/gfx",
113 "//ui/gfx/ipc",
114 "//ui/surface",
100 ] 115 ]
101 116
117 # //content/common needs to include public headers.
118 allow_circular_includes_from = [ "//content/common" ]
119
102 if (!enable_plugins) { 120 if (!enable_plugins) {
103 sources -= [ 121 sources -= [
104 "pepper_plugin_info.cc", 122 "pepper_plugin_info.cc",
105 "pepper_plugin_info.h", 123 "pepper_plugin_info.h",
106 ] 124 ]
107 } 125 }
108 126
109 if (enable_webrtc) { 127 if (enable_webrtc) {
110 sources += [ 128 sources += [
111 "webrtc_ip_handling_policy.cc", 129 "webrtc_ip_handling_policy.cc",
(...skipping 13 matching lines...) Expand all
125 143
126 buildflag_header("features") { 144 buildflag_header("features") {
127 header = "features.h" 145 header = "features.h"
128 146
129 flags = [ "RTC_USE_H264=$rtc_use_h264" ] 147 flags = [ "RTC_USE_H264=$rtc_use_h264" ]
130 } 148 }
131 149
132 source_set("feature_h264_with_openh264_ffmpeg") { 150 source_set("feature_h264_with_openh264_ffmpeg") {
133 deps = [ 151 deps = [
134 ":features", 152 ":features",
153 "//base",
135 ] 154 ]
136 sources = [ 155 sources = [
137 "feature_h264_with_openh264_ffmpeg.cc", 156 "feature_h264_with_openh264_ffmpeg.cc",
138 "feature_h264_with_openh264_ffmpeg.h", 157 "feature_h264_with_openh264_ffmpeg.h",
139 ] 158 ]
140 } 159 }
OLDNEW
« no previous file with comments | « content/public/child/BUILD.gn ('k') | content/public/gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698