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 config("storage_config") { | 9 config("storage_config") { |
| 10 if (is_android) { | 10 if (is_android) { |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 251 } | 251 } |
| 252 } | 252 } |
| 253 | 253 |
| 254 if (is_linux && use_aura) { | 254 if (is_linux && use_aura) { |
| 255 configs += [ "//build/config/linux:fontconfig" ] | 255 configs += [ "//build/config/linux:fontconfig" ] |
| 256 } | 256 } |
| 257 | 257 |
| 258 if (use_x11) { | 258 if (use_x11) { |
| 259 configs += [ "//build/config/linux:x11" ] | 259 configs += [ "//build/config/linux:x11" ] |
| 260 } else { | 260 } else { |
| 261 sources -= [ | 261 sources -= [ "renderer_host/web_input_event_aurax11.cc" ] |
| 262 "power_save_blocker_x11.cc", | 262 } |
| 263 "renderer_host/web_input_event_aurax11.cc", | 263 |
| 264 ] | 264 # Dealing with power_save_blocker_{x11,ozone}.cc is a little complicated |
| 265 # given the interaction between os_chromeos and the feature flags for X11 and | |
| 266 # ozone, so do it all in one spot. | |
| 267 if (is_chromeos || !use_ozone) { | |
|
brettw
2014/09/11 17:13:44
I think this would be more clear with one if for t
Chris Masone
2014/09/11 17:16:17
That would change the semantics, though. If I did
brettw
2014/09/11 17:35:48
Oh, right.
| |
| 268 sources -= [ "power_save_blocker_ozone.cc", ] | |
| 269 } | |
| 270 if (is_chromeos || !use_x11) { | |
| 271 sources -= [ "power_save_blocker_x11.cc", ] | |
| 272 } | |
| 273 | |
| 274 # Dealing with battery_status_manager_*.cc and *wifi_data_provider_*.cc | |
| 275 # is also a bit complicated given android, chromeos, linux and use_dbus. | |
| 276 if (is_android || is_chromeos || (is_linux && use_dbus)) { | |
| 277 sources -= [ "battery_status/battery_status_manager_default.cc" ] | |
| 278 } | |
| 279 if (is_linux && !use_dbus) { | |
| 280 # This will already have gotten removed for all non-Linux cases. | |
| 281 sources -= [ "battery_status/battery_status_manager_linux.cc" ] | |
| 282 } | |
| 283 | |
| 284 if (is_android) { | |
| 285 sources -= [ "geolocation/wifi_data_provider_common.cc" ] | |
| 286 } | |
| 287 if (is_chromeos || (is_linux && !use_dbus)) { | |
| 288 sources -= [ "geolocation/wifi_data_provider_linux.cc" ] | |
| 289 } | |
| 290 if (is_linux && use_dbus) { | |
| 291 sources -= [ "geolocation/empty_wifi_data_provider.cc" ] | |
| 265 } | 292 } |
| 266 | 293 |
| 267 if (use_pango) { | 294 if (use_pango) { |
| 268 configs += [ "//build/config/linux:pangocairo" ] | 295 configs += [ "//build/config/linux:pangocairo" ] |
| 269 } | 296 } |
| 270 | 297 |
| 271 if (is_android) { | 298 if (is_android) { |
| 272 sources += rebase_path(content_browser_gypi_values.android_browser_sources, | 299 sources += rebase_path(content_browser_gypi_values.android_browser_sources, |
| 273 ".", "//content") | 300 ".", "//content") |
| 274 sources -= [ | 301 sources -= [ |
| 275 "battery_status/battery_status_manager_default.cc", | |
| 276 "browser_ipc_logging.cc", | 302 "browser_ipc_logging.cc", |
| 277 "device_sensors/data_fetcher_shared_memory_default.cc", | 303 "device_sensors/data_fetcher_shared_memory_default.cc", |
| 278 "font_list_async.cc", | 304 "font_list_async.cc", |
| 279 "geolocation/network_location_provider.cc", | 305 "geolocation/network_location_provider.cc", |
| 280 "geolocation/network_location_provider.h", | 306 "geolocation/network_location_provider.h", |
| 281 "geolocation/network_location_request.cc", | 307 "geolocation/network_location_request.cc", |
| 282 "geolocation/network_location_request.h", | 308 "geolocation/network_location_request.h", |
| 283 "geolocation/wifi_data_provider_common.cc", | |
| 284 "renderer_host/native_web_keyboard_event.cc", | 309 "renderer_host/native_web_keyboard_event.cc", |
| 285 "tracing/tracing_ui.cc", | 310 "tracing/tracing_ui.cc", |
| 286 "tracing/tracing_ui.h", | 311 "tracing/tracing_ui.h", |
| 287 | 312 |
| 288 # Android skips most, but not all, of the speech code. | 313 # Android skips most, but not all, of the speech code. |
| 289 "speech/audio_buffer.cc", | 314 "speech/audio_buffer.cc", |
| 290 "speech/audio_buffer.h", | 315 "speech/audio_buffer.h", |
| 291 "speech/audio_encoder.cc", | 316 "speech/audio_encoder.cc", |
| 292 "speech/audio_encoder.h", | 317 "speech/audio_encoder.h", |
| 293 "speech/chunked_byte_buffer.cc", | 318 "speech/chunked_byte_buffer.cc", |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 317 if (is_mac) { | 342 if (is_mac) { |
| 318 sources -= [ | 343 sources -= [ |
| 319 "device_sensors/data_fetcher_shared_memory_default.cc", | 344 "device_sensors/data_fetcher_shared_memory_default.cc", |
| 320 "geolocation/empty_wifi_data_provider.cc", | 345 "geolocation/empty_wifi_data_provider.cc", |
| 321 "geolocation/empty_wifi_data_provider.h", | 346 "geolocation/empty_wifi_data_provider.h", |
| 322 ] | 347 ] |
| 323 libs += [ "bsm" ] | 348 libs += [ "bsm" ] |
| 324 } | 349 } |
| 325 | 350 |
| 326 if (is_chromeos) { | 351 if (is_chromeos) { |
| 327 sources -= [ | |
| 328 "battery_status/battery_status_manager_default.cc", | |
| 329 "geolocation/wifi_data_provider_linux.cc", | |
| 330 "power_save_blocker_x11.cc", | |
| 331 ] | |
| 332 deps += [ "//chromeos:power_manager_proto" ] | 352 deps += [ "//chromeos:power_manager_proto" ] |
| 333 } | 353 } |
| 334 | 354 |
| 335 if (!use_ozone || is_chromeos) { | |
| 336 sources -= [ | |
| 337 "power_save_blocker_ozone.cc", | |
| 338 ] | |
| 339 } | |
| 340 | |
| 341 if (use_aura) { | 355 if (use_aura) { |
| 342 deps += [ | 356 deps += [ |
| 343 "//ui/aura", | 357 "//ui/aura", |
| 344 "//ui/strings", | 358 "//ui/strings", |
| 345 "//ui/wm", | 359 "//ui/wm", |
| 346 ] | 360 ] |
| 347 } else { # Not aura. | 361 } else { # Not aura. |
| 348 sources -= [ | 362 sources -= [ |
| 349 "renderer_host/input/synthetic_gesture_target_aura.cc", | 363 "renderer_host/input/synthetic_gesture_target_aura.cc", |
| 350 "renderer_host/input/synthetic_gesture_target_aura.h", | 364 "renderer_host/input/synthetic_gesture_target_aura.h", |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 394 deps += [ "//ui/compositor" ] | 408 deps += [ "//ui/compositor" ] |
| 395 } | 409 } |
| 396 | 410 |
| 397 if (enable_web_speech) { | 411 if (enable_web_speech) { |
| 398 deps += [ | 412 deps += [ |
| 399 "//third_party/flac", | 413 "//third_party/flac", |
| 400 "//third_party/speex", | 414 "//third_party/speex", |
| 401 ] | 415 ] |
| 402 } | 416 } |
| 403 | 417 |
| 404 if (is_linux) { | 418 if (is_linux && use_dbus) { |
| 405 if (use_dbus) { | |
| 406 sources -= [ | |
| 407 "battery_status/battery_status_manager_default.cc", | |
| 408 "geolocation/empty_wifi_data_provider.cc", | |
| 409 ] | |
| 410 deps += [ "//dbus" ] | 419 deps += [ "//dbus" ] |
| 411 } else { | |
| 412 # This will already have gotten removed for all non-Linux cases. | |
| 413 sources -= [ | |
| 414 "battery_status/battery_status_manager_linux.cc", | |
| 415 "geolocation/wifi_data_provider_linux.cc", | |
| 416 ] | |
| 417 } | |
| 418 } | 420 } |
| 419 } | 421 } |
| OLD | NEW |