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

Side by Side Diff: content/browser/BUILD.gn

Issue 335693004: Hook up content/browser compile in GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « content/BUILD.gn ('k') | content/browser/tracing/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/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//content/browser/browser.gni") 7 import("//content/browser/browser.gni")
8 8
9 source_set("browser") { 9 source_set("browser") {
10 # Only targets in the content tree can depend directly on this target. 10 # Only targets in the content tree can depend directly on this target.
11 visibility = [ "//content/*" ] 11 visibility = [ "//content/*" ]
12 12
13 defines = [] 13 defines = []
14 libs = [] 14 libs = []
15 ldflags = [] 15 ldflags = []
16 16
17 # Shared deps. See also non-iOS deps below. 17 # Shared deps. See also non-iOS deps below.
18 deps = [ 18 deps = [
19 "//base", 19 "//base",
20 "//content:resources", 20 "//content:resources",
21 "//content/browser/service_worker:database_proto", 21 "//content/browser/service_worker:database_proto",
22 "//content/browser/speech/proto", 22 "//content/browser/speech/proto",
23 "//crypto", 23 "//crypto",
24 "//google_apis", 24 "//google_apis",
25 "//net", 25 "//net",
26 "//skia", 26 "//skia",
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 "$root_gen_dir/ui/ui_resources/grit/webui_resources_map.cc", 77 "$root_gen_dir/ui/ui_resources/grit/webui_resources_map.cc",
78 "$root_gen_dir/content/browser/devtools/devtools_protocol_constants.cc", 78 "$root_gen_dir/content/browser/devtools/devtools_protocol_constants.cc",
79 "$root_gen_dir/content/browser/devtools/devtools_protocol_constants.h", 79 "$root_gen_dir/content/browser/devtools/devtools_protocol_constants.h",
80 ], ".") 80 ], ".")
81 81
82 # Non-iOS deps. 82 # Non-iOS deps.
83 deps += [ 83 deps += [
84 "//content/browser/devtools:resources", 84 "//content/browser/devtools:resources",
85 "//content/common:mojo_bindings", 85 "//content/common:mojo_bindings",
86 "//cc", 86 "//cc",
87 "//cc:surfaces", 87 "//cc:cc_surfaces",
88 "//mojo/public/cpp/bindings", 88 "//mojo/public/cpp/bindings",
89 "//mojo/public/interfaces/service_provider:service_provider", 89 "//mojo/public/interfaces/service_provider:service_provider",
90 "//mojo/public/js/bindings", 90 "//mojo/public/js/bindings",
91 "//net:http_server", 91 "//net:http_server",
92 "//third_party/icu",
92 "//third_party/leveldatabase", 93 "//third_party/leveldatabase",
93 "//third_party/libyuv", 94 "//third_party/libyuv",
95 "//ui/resources",
94 "//ui/surface", 96 "//ui/surface",
97 "//ui/webui/resources",
95 "//webkit:resources", 98 "//webkit:resources",
96 "//webkit:strings", 99 "//webkit:strings",
97 "//webkit/browser:storage", 100 "//webkit/browser:storage",
98 "//webkit/common", 101 "//webkit/common",
99 "//webkit/common:storage", 102 "//webkit/common:storage",
100 # TODO(GYP) 103 # TODO(GYP)
101 #"//third_party/angle:commit_id", 104 #"//third_party/angle:commit_id",
102 ] 105 ]
103 } 106 }
104 107
105 configs += [ "//content:content_implementation" ] 108 configs += [
109 "//content:content_implementation",
110 "//content:libjingle_stub_config", # TODO(GYP) remove when libjingle is rea dy.
111 "//content:webrtc_stub_config", # TODO(GYP) remove when webrtc is ready.
112 ]
106 113
107 if (toolkit_views) { 114 if (toolkit_views) {
108 deps += [ "//ui/events" ] 115 deps += [ "//ui/events" ]
109 } 116 }
110 117
111 if (is_win) { 118 if (is_win) {
112 sources += [ 119 sources += [
113 "power_profiles/power_data_provider_ia_win.cc", 120 "power_profiler/power_data_provider_ia_win.cc",
114 "power_profiles/power_data_provider_ia_win.h", 121 "power_profiler/power_data_provider_ia_win.h",
115 ] 122 ]
116 deps += [ "//third_party/power_gadget" ] 123 deps += [ "//third_party/power_gadget" ]
117 } else { 124 } else {
118 sources += [ "power_profiler/power_data_provider_dummy.cc" ] 125 sources += [ "power_profiler/power_data_provider_dummy.cc" ]
126 sources -= [ "renderer_host/web_input_event_aurawin.cc" ]
119 } 127 }
120 128
121 if (!is_win && !is_mac && (!is_linux || !use_udev)) { 129 if (!is_win && !is_mac && (!is_linux || !use_udev)) {
122 sources += [ "gamepad/gamepad_platform_data_fetcher.cc" ] 130 sources += [ "gamepad/gamepad_platform_data_fetcher.cc" ]
123 } 131 }
124 132
125 if (enable_printing != 0) { 133 if (enable_printing != 0) {
126 deps += [ "//printing" ] 134 deps += [ "//printing" ]
127 } 135 }
128 136
129 # TODO(GYP) 137 # TODO(GYP)
130 # ['OS!="ios" and chrome_multiple_dll!=1', { 138 # ['OS!="ios" and chrome_multiple_dll!=1', {
131 # 'dependencies': [ 139 # 'dependencies': [
132 # '../third_party/WebKit/public/blink.gyp:blink', 140 # '../third_party/WebKit/public/blink.gyp:blink',
133 # ], 141 # ],
134 # }], 142 # }],
135 if (!is_mac && !is_ios) { 143 if (!is_mac && !is_ios) {
136 deps += [ "//sandbox" ] 144 deps += [ "//sandbox" ]
137 } 145 }
138 if (!is_android && !is_ios) { 146 if (!is_android && !is_ios) {
139 # TODO(GYP) 147 deps += [ "//content/browser/tracing:resources" ]
140 #deps += [ "//content/browser/tracing:resources" ]
141 } 148 }
142 149
143 if (enable_webrtc) { 150 if (enable_webrtc) {
144 sources += rebase_path(content_browser_gypi_values.webrtc_browser_sources, 151 sources += rebase_path(content_browser_gypi_values.webrtc_browser_sources,
145 ".", "//content") 152 ".", "//content")
146 # TODO(GYP) 153 # TODO(GYP)
147 #deps += [ "//jingle:glue" ] 154 #deps += [ "//jingle:glue" ]
148 if (is_linux) { 155 if (is_linux) {
149 # TODO(GYP) 156 # TODO(GYP)
150 #deps += [ "//third_party/libjingle:libjingle_webrtc" ] 157 #deps += [ "//third_party/libjingle:libjingle_webrtc" ]
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 deps += [ "//sandbox/linux:libc_urandom_override" ] 208 deps += [ "//sandbox/linux:libc_urandom_override" ]
202 } 209 }
203 210
204 if (use_udev) { 211 if (use_udev) {
205 configs += [ "//build/config/linux:udev" ] 212 configs += [ "//build/config/linux:udev" ]
206 } else { 213 } else {
207 # Remove udev-specific sources. 214 # Remove udev-specific sources.
208 sources -= [ 215 sources -= [
209 "device_monitor_udev.cc", 216 "device_monitor_udev.cc",
210 "device_monitor_udev.h", 217 "device_monitor_udev.h",
211 "gamepad/gamepad_platform_data_fetcher_linux.cc",
212 "udev_linux.cc",
213 "udev_linux.h",
214 ] 218 ]
219 if (is_linux) {
220 # Already filtered out on non-Linux.
221 sources -= [
222 "gamepad/gamepad_platform_data_fetcher_linux.cc",
223 "udev_linux.cc",
224 "udev_linux.h",
225 ]
226 }
215 } 227 }
216 228
217 if (enable_plugins) { 229 if (enable_plugins) {
218 sources += rebase_path(content_browser_gypi_values.plugin_browser_sources, 230 sources += rebase_path(content_browser_gypi_values.plugin_browser_sources,
219 ".", "//content") 231 ".", "//content")
220 deps += [ 232 deps += [
221 "//ppapi:ppapi_ipc", 233 "//ppapi:ppapi_ipc",
222 "//ppapi:ppapi_shared", 234 "//ppapi:ppapi_shared",
223 ] 235 ]
224 if (!use_ozone || use_pango) { 236 if (!use_ozone || use_pango) {
225 sources -= [ "renderer_host/pepper/pepper_truetype_font_list_ozone.cc" ] 237 sources -= [ "renderer_host/pepper/pepper_truetype_font_list_ozone.cc" ]
226 } 238 }
227 } 239 }
228 240
229 if (is_linux && use_aura) { 241 if (is_linux && use_aura) {
230 configs += [ "//build/config/linux:fontconfig" ] 242 configs += [ "//build/config/linux:fontconfig" ]
231 } 243 }
232 244
233 if (use_x11) { 245 if (use_x11) {
234 configs += [ "//build/config/linux:x11" ] 246 configs += [ "//build/config/linux:x11" ]
247 } else {
248 sources -= [ "renderer_host/web_input_event_aurax11.cc" ]
235 } 249 }
236 250
237 if (use_pango) { 251 if (use_pango) {
238 configs += [ "//build/config/linux:pangocairo" ] 252 configs += [ "//build/config/linux:pangocairo" ]
239 } 253 }
240 254
241 if (is_android) { 255 if (is_android) {
242 sources += rebase_path(content_browser_gypi_values.android_browser_sources, 256 sources += rebase_path(content_browser_gypi_values.android_browser_sources,
243 ".", "//content") 257 ".", "//content")
244 sources -= [ 258 sources -= [
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 337
324 if (use_aura || is_mac) { 338 if (use_aura || is_mac) {
325 sources += rebase_path( 339 sources += rebase_path(
326 content_browser_gypi_values.compositor_browser_sources, 340 content_browser_gypi_values.compositor_browser_sources,
327 ".", "//content") 341 ".", "//content")
328 deps += [ "//ui/compositor" ] 342 deps += [ "//ui/compositor" ]
329 } 343 }
330 344
331 if (enable_speech_input) { 345 if (enable_speech_input) {
332 deps += [ 346 deps += [
333 #"//third_party/flac", TODO(GYP) 347 "//third_party/flac",
334 #"//third_party/speex", TODO(GYP) 348 "//third_party/speex",
335 ] 349 ]
336 } 350 }
337 351
338 if (is_linux && use_dbus) { 352 if (is_linux) {
339 sources -= [ 353 if (use_dbus) {
340 "geolocation/empty_wifi_data_provider.cc", 354 sources -= [
341 ] 355 "geolocation/empty_wifi_data_provider.cc",
342 deps += [ "//dbus" ] 356 ]
343 } else { 357 deps += [ "//dbus" ]
344 if (!use_dbus) { 358 } else {
345 # This will already have gotten removed for all non-Linux cases. 359 # This will already have gotten removed for all non-Linux cases.
346 sources -= [ "geolocation/wifi_data_provider_linux.cc" ] 360 sources -= [ "geolocation/wifi_data_provider_linux.cc" ]
347 } 361 }
348 } 362 }
349 } 363 }
OLDNEW
« no previous file with comments | « content/BUILD.gn ('k') | content/browser/tracing/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698