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