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

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

Issue 300383002: Start work on adding content/browser to 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/browser.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 import("//build/config/features.gni")
6 import("//build/config/ui.gni")
7 import("//content/browser/browser.gni")
8
9 source_set("browser") {
10 # Only targets in the content tree can depend directly on this target.
11 visibility = [ "//content/*" ]
12
13 sources = rebase_path(content_browser_gypi_values.private_browser_sources,
14 ".", "//content")
15
16 # TODO(GYP) these generated files are listed as sources in content_browser.
17 # This is a bit suspicious. The GN grit template will make a source set
18 # containing the generated code so it should be sufficient to just depend
19 # on the grit rule. But maybe some of these will need to be added?
20 #
21 # Need this annoying rebase_path call to match what happened with the sources.
22 sources -= rebase_path([
23 "$root_gen_dir/webkit/grit/devtools_resources.h",
24 "$root_gen_dir/webkit/grit/devtools_resources_map.cc",
25 "$root_gen_dir/webkit/grit/devtools_resources_map.h",
26 "$root_gen_dir/content/browser/tracing/grit/tracing_resources.h",
27 "$root_gen_dir/ui/ui_resources/grit/webui_resources_map.cc",
28 "$root_gen_dir/content/browser/devtools/devtools_protocol_constants.cc",
29 "$root_gen_dir/content/browser/devtools/devtools_protocol_constants.h",
30 ], ".")
31
32 configs += [ "//content:content_implementation" ]
33
34 deps = [
35 "//base",
36 "//crypto",
37 "//net",
38 "//skia",
39 "//sql",
40 "//third_party/re2",
41 "//third_party/WebKit/public:blink_headers",
42 "//third_party/zlib",
43 "//third_party/zlib:zip",
44 "//ui/accessibility",
45 "//ui/accessibility:ax_gen",
46 "//ui/base:ui_base",
47 "//ui/events",
48 "//ui/events:gesture_detection",
49 "//ui/gfx",
50 "//ui/gfx/geometry",
51 "//ui/resources",
52 # TODO(GYP)
53 #"//ui/snapshot",
54 #'../google_apis/google_apis.gyp:google_apis',
55 #'browser/service_worker/service_worker_proto.gyp:database_proto',
56 #'browser/speech/proto/speech_proto.gyp:speech_proto',
57 #'browser/devtools/devtools_resources.gyp:devtools_resources',
58 #'content_common_mojo_bindings',
59 #'../cc/cc.gyp:cc',
60 #'../mojo/mojo.gyp:mojo_cpp_bindings',
61 #'../mojo/mojo.gyp:mojo_js_bindings',
62 #'../mojo/mojo.gyp:mojo_service_provider_bindings',
63 #'../net/net.gyp:http_server',
64 #'../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
65 #'../ui/surface/surface.gyp:surface',
66 #'../webkit/common/webkit_common.gyp:webkit_common',
67 #'../webkit/storage_browser.gyp:webkit_storage_browser',
68 #'../webkit/storage_common.gyp:webkit_storage_common',
69 #'../webkit/webkit_resources.gyp:webkit_resources',
70 #'../webkit/webkit_resources.gyp:webkit_strings',
71 #'../third_party/angle/src/build_angle.gyp:commit_id',
72 ]
73
74 if (toolkit_views) {
75 deps += [ "//ui/events" ]
76 }
77
78 if (is_win) {
79 sources += [
80 "power_profiles/power_data_provider_ia_win.cc",
81 "power_profiles/power_data_provider_ia_win.h",
82 ]
83 deps += [ "//third_party/power_gadget" ]
84 } else {
85 sources += [ "power_profiler/power_data_provider_dummy.cc" ]
86 }
87
88 if (!is_win && !is_mac && (!is_linux || !use_udev)) {
89 sources += [ "browser/gamepad/gamepad_platform_data_fetcher.cc" ]
90 }
91
92 if (is_ios) {
93 # TODO(GYP) lots of inclusions and exclusions for iOS.
94 }
95
96 if (enable_printing != 0) {
97 #TODO(GYP)
98 #deps += [ "//printing" ]
99 }
100
101 # TODO(GYP)
102 # ['OS!="ios" and chrome_multiple_dll!=1', {
103 # 'dependencies': [
104 # '../third_party/WebKit/public/blink.gyp:blink',
105 # ],
106 # }],
107 # ['OS!="mac" and OS!="ios"', {
108 # 'dependencies': [
109 # '../sandbox/sandbox.gyp:sandbox',
110 # ],
111 # }],
112 # ['OS!="android" and OS!="ios"', {
113 # 'dependencies': [
114 # 'browser/tracing/tracing_resources.gyp:tracing_resources',
115 # ],
116 # }],
117 # ['OS!="ios"', {
118 # 'dependencies': [
119 # '../third_party/libyuv/libyuv.gyp:libyuv',
120 # ],
121 # }],
122 # ['enable_webrtc==1', {
123 # 'dependencies': [
124 # '../jingle/jingle.gyp:jingle_glue',
125 # ],
126 # 'sources': [
127 # 'browser/renderer_host/media/peer_connection_tracker_host.cc',
128 # 'browser/renderer_host/media/peer_connection_tracker_host.h',
129 # 'browser/renderer_host/media/webrtc_identity_service_host.cc',
130 # 'browser/renderer_host/media/webrtc_identity_service_host.h',
131 # 'browser/renderer_host/p2p/socket_host.cc',
132 # 'browser/renderer_host/p2p/socket_host.h',
133 # 'browser/renderer_host/p2p/socket_host_tcp.cc',
134 # 'browser/renderer_host/p2p/socket_host_tcp.h',
135 # 'browser/renderer_host/p2p/socket_host_tcp_server.cc',
136 # 'browser/renderer_host/p2p/socket_host_tcp_server.h',
137 # 'browser/renderer_host/p2p/socket_host_throttler.cc',
138 # 'browser/renderer_host/p2p/socket_host_throttler.h',
139 # 'browser/renderer_host/p2p/socket_host_udp.cc',
140 # 'browser/renderer_host/p2p/socket_host_udp.h',
141 # 'browser/renderer_host/p2p/socket_dispatcher_host.cc',
142 # 'browser/renderer_host/p2p/socket_dispatcher_host.h',
143 # ],
144 # }],
145 # ['enable_webrtc==1 and OS=="linux"', {
146 # 'dependencies': [
147 # '../third_party/libjingle/libjingle.gyp:libjingle_webrtc',
148 # ],
149 # }],
150 # ['enable_webrtc==1 and (OS=="linux" or OS=="mac" or OS=="win")', {
151 # 'sources': [
152 # 'browser/media/capture/desktop_capture_device.cc',
153 # 'browser/media/capture/desktop_capture_device.h',
154 # 'browser/media/capture/desktop_capture_device_aura.cc',
155 # 'browser/media/capture/desktop_capture_device_aura.h',
156 # 'browser/media/capture/desktop_capture_device_uma_types.cc',
157 # 'browser/media/capture/desktop_capture_device_uma_types.h',
158 # ],
159 # 'dependencies': [
160 # '../third_party/webrtc/modules/modules.gyp:desktop_capture',
161 # ],
162 # 'defines': [
163 # 'ENABLE_SCREEN_CAPTURE=1',
164 # ],
165 # }],
166 # ['OS=="win"', {
167 # 'dependencies': [
168 # # For accessibility
169 # '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
170 # '../third_party/isimpledom/isimpledom.gyp:isimpledom',
171 # ],
172 # 'sources/': [
173 # ['exclude', '^browser/device_sensors/data_fetcher_shared_memory_default. cc$'],
174 # ],
175 # 'defines': [
176 # # This prevents the inclusion of atlhost.h which paired
177 # # with the windows 8 sdk it does the wrong thing.
178 # '__ATLHOST_H__',
179 # ],
180 # 'link_settings': {
181 # 'libraries': [
182 # '-lcomctl32.lib',
183 # '-ldinput8.lib',
184 # '-ldwmapi.lib',
185 # '-ldxguid.lib',
186 # '-lsensorsapi.lib',
187 # '-lportabledeviceguids.lib',
188 # ],
189 # 'msvs_settings': {
190 # 'VCLinkerTool': {
191 # 'DelayLoadDLLs': [
192 # 'dinput8.dll',
193 # 'user32.dll',
194 # 'dwmapi.dll',
195 # ],
196 # },
197 # },
198 # },
199 # }],
200 # ['OS=="linux"', {
201 # 'dependencies': [
202 # '../sandbox/sandbox.gyp:libc_urandom_override',
203 # ],
204 # }],
205 # ['use_udev == 1', {
206 # 'dependencies': [
207 # '../build/linux/system.gyp:udev',
208 # ],
209 # }, {
210 # 'sources!': [
211 # 'browser/device_monitor_udev.cc',
212 # 'browser/device_monitor_udev.h',
213 # 'browser/gamepad/gamepad_platform_data_fetcher_linux.cc',
214 # 'browser/udev_linux.cc',
215 # 'browser/udev_linux.h',
216 # ],
217 # }],
218 # ['OS=="linux" and use_aura==1', {
219 # 'dependencies': [
220 # '../build/linux/system.gyp:fontconfig',
221 # ],
222 # }],
223 # ['use_x11==1', {
224 # 'dependencies': [
225 # '../build/linux/system.gyp:x11',
226 # ],
227 # }],
228 # ['use_pango==1', {
229 # 'dependencies': [
230 # '../build/linux/system.gyp:pangocairo',
231 # ],
232 # 'sources!': [
233 # 'browser/renderer_host/pepper/pepper_truetype_font_list_ozone.cc',
234 # ],
235 # }],
236 # ['OS=="android"', {
237 # 'dependencies': [
238 # '../media/media.gyp:media',
239 # 'content.gyp:content_jni_headers',
240 # ],
241 # 'link_settings': {
242 # 'libraries': [
243 # '-ljnigraphics',
244 # ],
245 # },
246 # 'sources/': [
247 # ['exclude', '^browser/battery_status/battery_status_manager_default.cc$' ],
248 # ['exclude', '^browser/device_sensors/data_fetcher_shared_memory_default. cc$'],
249 # ['exclude', '^browser/geolocation/network_location_provider\\.(cc|h)$'],
250 # ['exclude', '^browser/geolocation/network_location_request\\.(cc|h)$'],
251 # ['exclude', '^browser/tracing/tracing_ui'],
252 # ['exclude', '^browser/speech/'],
253 # ['include', '^browser/speech/speech_recognition_dispatcher_host\\.(cc|h) $'],
254 # ['include', '^browser/speech/speech_recognition_manager_impl\\.(cc|h)$'] ,
255 # ['include', '^browser/speech/speech_recognizer\\.h$'],
256 # ['include', '^browser/speech/speech_recognizer_impl_android\\.(cc|h)$'],
257 # ],
258 # 'sources!': [
259 # 'browser/browser_ipc_logging.cc',
260 # 'browser/font_list_async.cc',
261 # 'browser/geolocation/device_data_provider.cc',
262 # 'browser/geolocation/empty_device_data_provider.cc',
263 # 'browser/geolocation/wifi_data_provider_common.cc',
264 # 'browser/renderer_host/native_web_keyboard_event.cc',
265 # ]
266 # }, { # OS!="android"
267 # 'sources/': [
268 # ['exclude', '^browser/renderer_host/java/'],
269 # ['exclude', '^browser/speech/speech_recognizer_impl_android\\.(cc|h)'],
270 # ],
271 # }],
272 # ['OS=="mac"', {
273 # 'sources/': [
274 # ['exclude', '^browser/device_sensors/data_fetcher_shared_memory_default. cc$'],
275 # ],
276 # 'sources!': [
277 # 'browser/geolocation/empty_wifi_data_provider.cc',
278 # ],
279 # 'dependencies': [
280 # '../third_party/mozilla/mozilla.gyp:mozilla',
281 # '../third_party/sudden_motion_sensor/sudden_motion_sensor.gyp:sudden_mot ion_sensor',
282 # ],
283 # 'link_settings': {
284 # 'libraries': [
285 # '$(SDKROOT)/usr/lib/libbsm.dylib',
286 # ],
287 # },
288 # }],
289 # ['chromeos==1', {
290 # 'dependencies': [
291 # '../build/linux/system.gyp:dbus',
292 # '../chromeos/chromeos.gyp:power_manager_proto',
293 # ],
294 # 'sources!': [
295 # 'browser/geolocation/wifi_data_provider_linux.cc',
296 # 'browser/power_save_blocker_ozone.cc',
297 # 'browser/power_save_blocker_x11.cc',
298 # ],
299 # }],
300 # ['os_bsd==1', {
301 # 'sources/': [
302 # ['exclude', '^browser/gamepad/gamepad_platform_data_fetcher_linux\\.cc$' ],
303 # ],
304 # }],
305 # ['use_aura==1', {
306 # 'dependencies': [
307 # '../ui/aura/aura.gyp:aura',
308 # '../ui/strings/ui_strings.gyp:ui_strings',
309 # ],
310 # }, {
311 # 'sources/': [
312 # ['exclude', '^browser/renderer_host/render_widget_host_view_aura.cc'],
313 # ['exclude', '^browser/renderer_host/render_widget_host_view_aura.h'],
314 # ['exclude', '^browser/web_contents/touch_editable_impl_aura.cc'],
315 # ['exclude', '^browser/web_contents/touch_editable_impl_aura.h'],
316 # ['exclude', '^browser/renderer_host/ui_events_helper.cc'],
317 # ['exclude', '^browser/renderer_host/ui_events_helper.h'],
318 # ['exclude', '^browser/context_factory.cc'],
319 # ['exclude', '^public/browser/context_factory.h'],
320 # ],
321 # }],
322 # ['use_aura==1 or OS=="mac"', {
323 # 'dependencies': [
324 # '../ui/compositor/compositor.gyp:compositor',
325 # ],
326 # }, {
327 # 'sources/': [
328 # ['exclude', '^browser/compositor/'],
329 # ]
330 # }],
331 # ['enable_plugins==1', {
332 # 'dependencies': [
333 # '../ppapi/ppapi_internal.gyp:ppapi_ipc',
334 # '../ppapi/ppapi_internal.gyp:ppapi_shared',
335 # ],
336 # }, { # enable_plugins==0
337 # 'sources!': [
338 # 'browser/pepper_flash_settings_helper_impl.cc',
339 # 'browser/pepper_flash_settings_helper_impl.h',
340 # 'browser/plugin_data_remover_impl.cc',
341 # 'browser/plugin_data_remover_impl.h',
342 # 'browser/plugin_loader_posix.cc',
343 # 'browser/plugin_loader_posix.h',
344 # 'browser/plugin_process_host.cc',
345 # 'browser/plugin_process_host.h',
346 # 'browser/plugin_service_impl.cc',
347 # 'browser/plugin_service_impl.h',
348 # 'browser/ppapi_plugin_process_host.cc',
349 # 'public/browser/plugin_service.h',
350 # ],
351 # 'sources/': [
352 # ['exclude', '^browser/renderer_host/pepper/'],
353 # ],
354 # }],
355 # ['input_speech==1', {
356 # 'dependencies': [
357 # '../third_party/flac/flac.gyp:libflac',
358 # '../third_party/speex/speex.gyp:libspeex',
359 # ],
360 # }],
361 # ['OS == "win"', {
362 # 'sources!': [
363 # 'browser/geolocation/empty_wifi_data_provider.cc',
364 # ],
365 # }],
366 # ['OS == "linux" and use_dbus==1', {
367 # 'sources!': [
368 # 'browser/geolocation/empty_wifi_data_provider.cc',
369 # ],
370 # 'dependencies': [
371 # '../build/linux/system.gyp:dbus',
372 # '../dbus/dbus.gyp:dbus',
373 # ],
374 # }, { # OS != "linux" or use_dbus==0
375 # 'sources!': [
376 # 'browser/geolocation/wifi_data_provider_linux.cc',
377 # ],
378 # }],
379 }
OLDNEW
« no previous file with comments | « content/BUILD.gn ('k') | content/browser/browser.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698