| 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("//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 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
| 9 | 9 |
| 10 source_set("browser") { | 10 source_set("browser") { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 "cert_store_impl.cc", | 61 "cert_store_impl.cc", |
| 62 "download/download_create_info.cc", | 62 "download/download_create_info.cc", |
| 63 "notification_service_impl.cc", | 63 "notification_service_impl.cc", |
| 64 "signed_certificate_timestamp_store_impl.cc", | 64 "signed_certificate_timestamp_store_impl.cc", |
| 65 "user_metrics.cc", | 65 "user_metrics.cc", |
| 66 "web_contents/navigation_entry_impl.cc", | 66 "web_contents/navigation_entry_impl.cc", |
| 67 ] | 67 ] |
| 68 } else { | 68 } else { |
| 69 # Normal non-iOS sources get everything. | 69 # Normal non-iOS sources get everything. |
| 70 sources = rebase_path(content_browser_gypi_values.private_browser_sources, | 70 sources = rebase_path(content_browser_gypi_values.private_browser_sources, |
| 71 ".", "//content") | 71 ".", |
| 72 "//content") |
| 72 | 73 |
| 73 # TODO(GYP) these generated files are listed as sources in content_browser. | 74 # TODO(GYP) these generated files are listed as sources in content_browser. |
| 74 # This is a bit suspicious. The GN grit template will make a source set | 75 # This is a bit suspicious. The GN grit template will make a source set |
| 75 # containing the generated code so it should be sufficient to just depend | 76 # containing the generated code so it should be sufficient to just depend |
| 76 # on the grit rule. But maybe some of these will need to be added? | 77 # on the grit rule. But maybe some of these will need to be added? |
| 77 # | 78 # |
| 78 # Need this annoying rebase_path call to match what happened with the | 79 # Need this annoying rebase_path call to match what happened with the |
| 79 # sources. | 80 # sources. |
| 80 sources -= rebase_path([ | 81 sources -= rebase_path( |
| 81 "$root_gen_dir/webkit/grit/devtools_resources.h", | 82 [ |
| 82 "$root_gen_dir/webkit/grit/devtools_resources_map.cc", | 83 "$root_gen_dir/webkit/grit/devtools_resources.h", |
| 83 "$root_gen_dir/webkit/grit/devtools_resources_map.h", | 84 "$root_gen_dir/webkit/grit/devtools_resources_map.cc", |
| 84 "$root_gen_dir/content/browser/tracing/grit/tracing_resources.h", | 85 "$root_gen_dir/webkit/grit/devtools_resources_map.h", |
| 85 "$root_gen_dir/ui/resources/grit/webui_resources_map.cc", | 86 "$root_gen_dir/content/browser/tracing/grit/tracing_resources.h", |
| 86 "$root_gen_dir/content/browser/devtools/devtools_protocol_constants.cc", | 87 "$root_gen_dir/ui/resources/grit/webui_resources_map.cc", |
| 87 "$root_gen_dir/content/browser/devtools/devtools_protocol_constants.h", | 88 "$root_gen_dir/content/browser/devtools/devtools_protocol_constant
s.cc", |
| 88 "$root_gen_dir/content/browser/devtools/protocol/devtools_protocol_handler
_impl.cc", | 89 "$root_gen_dir/content/browser/devtools/devtools_protocol_constant
s.h", |
| 89 "$root_gen_dir/content/browser/devtools/protocol/devtools_protocol_handler
_impl.h", | 90 "$root_gen_dir/content/browser/devtools/protocol/devtools_protocol
_handler_impl.cc", |
| 90 ], ".") | 91 "$root_gen_dir/content/browser/devtools/protocol/devtools_protocol
_handler_impl.h", |
| 92 ], |
| 93 ".") |
| 91 | 94 |
| 92 # Non-iOS deps. | 95 # Non-iOS deps. |
| 93 deps += [ | 96 deps += [ |
| 94 "//cc", | 97 "//cc", |
| 95 "//cc/surfaces", | 98 "//cc/surfaces", |
| 96 "//content/app/resources", | 99 "//content/app/resources", |
| 97 "//content/app/strings", | 100 "//content/app/strings", |
| 98 "//content/browser/devtools:resources", | 101 "//content/browser/devtools:resources", |
| 99 "//content/common:mojo_bindings", | 102 "//content/common:mojo_bindings", |
| 100 "//content/public/common:mojo_bindings", | 103 "//content/public/common:mojo_bindings", |
| 101 "//mojo/public/cpp/bindings", | 104 "//mojo/public/cpp/bindings", |
| 102 "//mojo/public/interfaces/application", | 105 "//mojo/public/interfaces/application", |
| 103 "//mojo/public/js", | 106 "//mojo/public/js", |
| 104 "//net:http_server", | 107 "//net:http_server", |
| 105 "//storage/browser", | 108 "//storage/browser", |
| 106 "//storage/common", | 109 "//storage/common", |
| 107 "//third_party/WebKit/public:resources", | 110 "//third_party/WebKit/public:resources", |
| 108 "//third_party/angle:commit_id", | 111 "//third_party/angle:commit_id", |
| 109 "//third_party/icu", | 112 "//third_party/icu", |
| 110 "//third_party/leveldatabase", | 113 "//third_party/leveldatabase", |
| 111 "//third_party/libyuv", | 114 "//third_party/libyuv", |
| 112 "//ui/resources", | 115 "//ui/resources", |
| 113 "//ui/surface", | 116 "//ui/surface", |
| 114 ] | 117 ] |
| 115 } | 118 } |
| 116 | 119 |
| 117 configs += [ | 120 configs += [ "//content:content_implementation" ] |
| 118 "//content:content_implementation", | |
| 119 ] | |
| 120 | 121 |
| 121 if (toolkit_views) { | 122 if (toolkit_views) { |
| 122 deps += [ "//ui/events" ] | 123 deps += [ "//ui/events" ] |
| 123 } | 124 } |
| 124 | 125 |
| 125 if (is_win) { | 126 if (is_win) { |
| 126 sources += [ | 127 sources += [ |
| 127 "power_profiler/power_data_provider_ia_win.cc", | 128 "power_profiler/power_data_provider_ia_win.cc", |
| 128 "power_profiler/power_data_provider_ia_win.h", | 129 "power_profiler/power_data_provider_ia_win.h", |
| 129 ] | 130 ] |
| 130 deps += [ "//third_party/power_gadget" ] | 131 deps += [ "//third_party/power_gadget" ] |
| 131 } else { | 132 } else { |
| 132 sources += [ | 133 sources += [ |
| 133 "power_profiler/power_data_provider_dummy.cc", | 134 "power_profiler/power_data_provider_dummy.cc", |
| 134 "file_descriptor_info_impl.cc", | 135 "file_descriptor_info_impl.cc", |
| 135 "file_descriptor_info_impl.h", | 136 "file_descriptor_info_impl.h", |
| 136 ] | 137 ] |
| 137 sources -= [ "renderer_host/web_input_event_aurawin.cc" ] | 138 sources -= [ "renderer_host/web_input_event_aurawin.cc" ] |
| 138 } | 139 } |
| 139 | 140 |
| 140 if (!is_win && !is_mac && !is_android && (!is_linux || !use_udev)) { | 141 if (!is_win && !is_mac && !is_android && (!is_linux || !use_udev)) { |
| 141 sources += [ "gamepad/gamepad_platform_data_fetcher.cc" ] | 142 sources += [ "gamepad/gamepad_platform_data_fetcher.cc" ] |
| 142 } | 143 } |
| 143 | 144 |
| 144 if (enable_basic_printing || enable_print_preview) { | 145 if (enable_basic_printing || enable_print_preview) { |
| 145 deps += [ "//printing" ] | 146 deps += [ "//printing" ] |
| 146 } | 147 } |
| 147 | 148 |
| 148 # TODO(GYP) | 149 # TODO(GYP) |
| 149 # ['OS!="ios" and chrome_multiple_dll!=1', { | 150 # ['OS!="ios" and chrome_multiple_dll!=1', { |
| 150 # 'dependencies': [ | 151 # 'dependencies': [ |
| 151 # '../third_party/WebKit/public/blink.gyp:blink', | 152 # '../third_party/WebKit/public/blink.gyp:blink', |
| 152 # ], | 153 # ], |
| 153 # }], | 154 # }], |
| 154 if (!is_mac && !is_ios) { | 155 if (!is_mac && !is_ios) { |
| 155 deps += [ "//sandbox" ] | 156 deps += [ "//sandbox" ] |
| 156 } | 157 } |
| 157 if (!is_android && !is_ios) { | 158 if (!is_android && !is_ios) { |
| 158 deps += [ "//content/browser/tracing:resources" ] | 159 deps += [ "//content/browser/tracing:resources" ] |
| 159 } | 160 } |
| 160 | 161 |
| 161 if (enable_webrtc) { | 162 if (enable_webrtc) { |
| 162 sources += rebase_path(content_browser_gypi_values.webrtc_browser_sources, | 163 sources += rebase_path(content_browser_gypi_values.webrtc_browser_sources, |
| 163 ".", "//content") | 164 ".", |
| 165 "//content") |
| 164 deps += [ "//jingle:jingle_glue" ] | 166 deps += [ "//jingle:jingle_glue" ] |
| 165 if (is_linux) { | 167 if (is_linux) { |
| 166 deps += [ "//third_party/libjingle:libjingle_webrtc" ] | 168 deps += [ "//third_party/libjingle:libjingle_webrtc" ] |
| 167 } | 169 } |
| 168 if (is_linux || is_mac || is_win) { | 170 if (is_linux || is_mac || is_win) { |
| 169 sources += [ | 171 sources += [ |
| 170 "media/capture/desktop_capture_device.cc", | 172 "media/capture/desktop_capture_device.cc", |
| 171 "media/capture/desktop_capture_device.h", | 173 "media/capture/desktop_capture_device.h", |
| 172 "media/capture/desktop_capture_device_uma_types.cc", | 174 "media/capture/desktop_capture_device_uma_types.cc", |
| 173 "media/capture/desktop_capture_device_uma_types.h", | 175 "media/capture/desktop_capture_device_uma_types.h", |
| (...skipping 24 matching lines...) Expand all Loading... |
| 198 "//third_party/isimpledom", | 200 "//third_party/isimpledom", |
| 199 ] | 201 ] |
| 200 libs += [ | 202 libs += [ |
| 201 "comctl32.lib", | 203 "comctl32.lib", |
| 202 "dinput8.lib", | 204 "dinput8.lib", |
| 203 "dwmapi.lib", | 205 "dwmapi.lib", |
| 204 "dxguid.lib", | 206 "dxguid.lib", |
| 205 "sensorsapi.lib", | 207 "sensorsapi.lib", |
| 206 "portabledeviceguids.lib", | 208 "portabledeviceguids.lib", |
| 207 ] | 209 ] |
| 210 |
| 208 # TODI(GYP) | 211 # TODI(GYP) |
| 209 # 'msvs_settings': { | 212 # 'msvs_settings': { |
| 210 # 'VCLinkerTool': { | 213 # 'VCLinkerTool': { |
| 211 # 'DelayLoadDLLs': [ | 214 # 'DelayLoadDLLs': [ |
| 212 # 'dinput8.dll', | 215 # 'dinput8.dll', |
| 213 # 'user32.dll', | 216 # 'user32.dll', |
| 214 # 'dwmapi.dll', | 217 # 'dwmapi.dll', |
| 215 # ], | 218 # ], |
| 216 } | 219 } |
| 217 | 220 |
| 218 if (is_linux) { | 221 if (is_linux) { |
| 219 deps += [ "//sandbox/linux:libc_urandom_override" ] | 222 deps += [ "//sandbox/linux:libc_urandom_override" ] |
| 220 } | 223 } |
| 221 | 224 |
| 222 if (use_udev) { | 225 if (use_udev) { |
| 223 deps += [ "//device/udev_linux" ] | 226 deps += [ "//device/udev_linux" ] |
| 224 } else { | 227 } else { |
| 225 # Remove udev-specific sources. | 228 # Remove udev-specific sources. |
| 226 sources -= [ | 229 sources -= [ |
| 227 "device_monitor_udev.cc", | 230 "device_monitor_udev.cc", |
| 228 "device_monitor_udev.h", | 231 "device_monitor_udev.h", |
| 229 ] | 232 ] |
| 230 if (is_linux) { | 233 if (is_linux) { |
| 231 # Already filtered out on non-Linux. | 234 # Already filtered out on non-Linux. |
| 232 sources -= [ | 235 sources -= [ |
| 233 "gamepad/gamepad_platform_data_fetcher_linux.cc", | 236 "gamepad/gamepad_platform_data_fetcher_linux.cc", |
| 234 "udev_linux.cc", | 237 "udev_linux.cc", |
| 235 "udev_linux.h", | 238 "udev_linux.h", |
| 236 ] | 239 ] |
| 237 } | 240 } |
| 238 } | 241 } |
| 239 | 242 |
| 240 if (enable_plugins) { | 243 if (enable_plugins) { |
| 241 sources += rebase_path(content_browser_gypi_values.plugin_browser_sources, | 244 sources += rebase_path(content_browser_gypi_values.plugin_browser_sources, |
| 242 ".", "//content") | 245 ".", |
| 246 "//content") |
| 243 deps += [ | 247 deps += [ |
| 244 "//ppapi:ppapi_ipc", | 248 "//ppapi:ppapi_ipc", |
| 245 "//ppapi:ppapi_shared", | 249 "//ppapi:ppapi_shared", |
| 246 ] | 250 ] |
| 247 if (!use_ozone || use_pango) { | 251 if (!use_ozone || use_pango) { |
| 248 sources -= [ "renderer_host/pepper/pepper_truetype_font_list_ozone.cc" ] | 252 sources -= [ "renderer_host/pepper/pepper_truetype_font_list_ozone.cc" ] |
| 249 } | 253 } |
| 250 if (!use_pango) { | 254 if (!use_pango) { |
| 251 sources -= [ "renderer_host/pepper/pepper_truetype_font_list_pango.cc" ] | 255 sources -= [ "renderer_host/pepper/pepper_truetype_font_list_pango.cc" ] |
| 252 } | 256 } |
| 253 } | 257 } |
| 254 | 258 |
| 255 if (is_linux && use_aura) { | 259 if (is_linux && use_aura) { |
| 256 configs += [ "//build/config/linux:fontconfig" ] | 260 configs += [ "//build/config/linux:fontconfig" ] |
| 257 } | 261 } |
| 258 | 262 |
| 259 if (use_x11) { | 263 if (use_x11) { |
| 260 configs += [ "//build/config/linux:x11" ] | 264 configs += [ "//build/config/linux:x11" ] |
| 261 } | 265 } |
| 262 | 266 |
| 263 # Dealing with power_save_blocker_{x11,ozone}.cc is a little complicated | 267 # Dealing with power_save_blocker_{x11,ozone}.cc is a little complicated |
| 264 # given the interaction between os_chromeos and the feature flags for X11 and | 268 # given the interaction between os_chromeos and the feature flags for X11 and |
| 265 # ozone, so do it all in one spot. | 269 # ozone, so do it all in one spot. |
| 266 if (is_chromeos || !use_ozone) { | 270 if (is_chromeos || !use_ozone) { |
| 267 sources -= [ "power_save_blocker_ozone.cc", ] | 271 sources -= [ "power_save_blocker_ozone.cc" ] |
| 268 } | 272 } |
| 269 if (is_chromeos || !use_x11) { | 273 if (is_chromeos || !use_x11) { |
| 270 sources -= [ "power_save_blocker_x11.cc", ] | 274 sources -= [ "power_save_blocker_x11.cc" ] |
| 271 } | 275 } |
| 272 | 276 |
| 273 # Dealing with *wifi_data_provider_*.cc is also a bit complicated given | 277 # Dealing with *wifi_data_provider_*.cc is also a bit complicated given |
| 274 # android, chromeos, linux and use_dbus. | 278 # android, chromeos, linux and use_dbus. |
| 275 if (is_android) { | 279 if (is_android) { |
| 276 sources -= [ "geolocation/wifi_data_provider_common.cc" ] | 280 sources -= [ "geolocation/wifi_data_provider_common.cc" ] |
| 277 } | 281 } |
| 278 if (is_chromeos || (is_linux && !use_dbus)) { | 282 if (is_chromeos || is_linux && !use_dbus) { |
| 279 sources -= [ "geolocation/wifi_data_provider_linux.cc" ] | 283 sources -= [ "geolocation/wifi_data_provider_linux.cc" ] |
| 280 } | 284 } |
| 281 if (is_linux && use_dbus) { | 285 if (is_linux && use_dbus) { |
| 282 sources -= [ "geolocation/empty_wifi_data_provider.cc" ] | 286 sources -= [ "geolocation/empty_wifi_data_provider.cc" ] |
| 283 } | 287 } |
| 284 | 288 |
| 285 if (use_pango) { | 289 if (use_pango) { |
| 286 configs += [ "//build/config/linux:pangocairo" ] | 290 configs += [ "//build/config/linux:pangocairo" ] |
| 287 } | 291 } |
| 288 | 292 |
| 289 if (is_android) { | 293 if (is_android) { |
| 290 sources += rebase_path(content_browser_gypi_values.android_browser_sources, | 294 sources += rebase_path(content_browser_gypi_values.android_browser_sources, |
| 291 ".", "//content") | 295 ".", |
| 296 "//content") |
| 292 sources -= [ | 297 sources -= [ |
| 293 "browser_ipc_logging.cc", | 298 "browser_ipc_logging.cc", |
| 294 "device_sensors/data_fetcher_shared_memory_default.cc", | 299 "device_sensors/data_fetcher_shared_memory_default.cc", |
| 295 "font_list_async.cc", | 300 "font_list_async.cc", |
| 296 "geolocation/network_location_provider.cc", | 301 "geolocation/network_location_provider.cc", |
| 297 "geolocation/network_location_provider.h", | 302 "geolocation/network_location_provider.h", |
| 298 "geolocation/network_location_request.cc", | 303 "geolocation/network_location_request.cc", |
| 299 "geolocation/network_location_request.h", | 304 "geolocation/network_location_request.h", |
| 300 "tracing/tracing_ui.cc", | 305 "tracing/tracing_ui.cc", |
| 301 "tracing/tracing_ui.h", | 306 "tracing/tracing_ui.h", |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 "web_contents/aura/window_slider.h", | 380 "web_contents/aura/window_slider.h", |
| 376 "web_contents/touch_editable_impl_aura.cc", | 381 "web_contents/touch_editable_impl_aura.cc", |
| 377 "web_contents/touch_editable_impl_aura.h", | 382 "web_contents/touch_editable_impl_aura.h", |
| 378 "web_contents/web_contents_view_aura.cc", | 383 "web_contents/web_contents_view_aura.cc", |
| 379 "web_contents/web_contents_view_aura.h", | 384 "web_contents/web_contents_view_aura.h", |
| 380 ] | 385 ] |
| 381 } | 386 } |
| 382 | 387 |
| 383 if (use_aura || is_mac || is_android) { | 388 if (use_aura || is_mac || is_android) { |
| 384 sources += rebase_path( | 389 sources += rebase_path( |
| 385 content_browser_gypi_values.compositor_browser_surface_sources, | 390 content_browser_gypi_values.compositor_browser_surface_sources, |
| 386 ".", "//content") | 391 ".", |
| 392 "//content") |
| 387 } | 393 } |
| 388 if (use_aura || is_mac) { | 394 if (use_aura || is_mac) { |
| 389 sources += rebase_path( | 395 sources += |
| 390 content_browser_gypi_values.compositor_browser_sources, | 396 rebase_path(content_browser_gypi_values.compositor_browser_sources, |
| 391 ".", "//content") | 397 ".", |
| 398 "//content") |
| 392 if (!use_x11) { | 399 if (!use_x11) { |
| 393 sources -= [ | 400 sources -= [ |
| 394 "compositor/software_output_device_x11.cc", | 401 "compositor/software_output_device_x11.cc", |
| 395 "compositor/software_output_device_x11.h", | 402 "compositor/software_output_device_x11.h", |
| 396 ] | 403 ] |
| 397 } | 404 } |
| 398 | 405 |
| 399 if (!use_ozone) { | 406 if (!use_ozone) { |
| 400 sources -= [ | 407 sources -= [ |
| 401 "compositor/overlay_candidate_validator_ozone.cc", | 408 "compositor/overlay_candidate_validator_ozone.cc", |
| (...skipping 18 matching lines...) Expand all Loading... |
| 420 | 427 |
| 421 if (enable_browser_cdms) { | 428 if (enable_browser_cdms) { |
| 422 sources += [ | 429 sources += [ |
| 423 "media/cdm/browser_cdm_manager.cc", | 430 "media/cdm/browser_cdm_manager.cc", |
| 424 "media/cdm/browser_cdm_manager.h", | 431 "media/cdm/browser_cdm_manager.h", |
| 425 "media/media_web_contents_observer.cc", | 432 "media/media_web_contents_observer.cc", |
| 426 "media/media_web_contents_observer.h", | 433 "media/media_web_contents_observer.h", |
| 427 ] | 434 ] |
| 428 } | 435 } |
| 429 } | 436 } |
| OLD | NEW |