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("//media/media_options.gni") | 7 import("//media/media_options.gni") |
8 import("//ppapi/features/features.gni") | 8 import("//ppapi/features/features.gni") |
9 import("//printing/features/features.gni") | 9 import("//printing/features/features.gni") |
10 import("//third_party/WebKit/public/public_features.gni") | 10 import("//third_party/WebKit/public/public_features.gni") |
(...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1493 "webrtc/webrtc_internals_ui_observer.h", | 1493 "webrtc/webrtc_internals_ui_observer.h", |
1494 ] | 1494 ] |
1495 | 1495 |
1496 deps += [ | 1496 deps += [ |
1497 "//jingle:jingle_glue", | 1497 "//jingle:jingle_glue", |
1498 "//third_party/libjingle/webrtc:libjingle_webrtc", | 1498 "//third_party/libjingle/webrtc:libjingle_webrtc", |
1499 "//third_party/webrtc/base:rtc_base", | 1499 "//third_party/webrtc/base:rtc_base", |
1500 "//third_party/webrtc/media:rtc_media_base", | 1500 "//third_party/webrtc/media:rtc_media_base", |
1501 "//third_party/webrtc/modules/desktop_capture:primitives", | 1501 "//third_party/webrtc/modules/desktop_capture:primitives", |
1502 ] | 1502 ] |
1503 | |
1504 if (is_linux || is_mac || is_win) { | |
1505 sources += [ | |
1506 "media/capture/desktop_capture_device.cc", | |
1507 "media/capture/desktop_capture_device.h", | |
1508 ] | |
1509 deps += [ "//third_party/webrtc/modules/desktop_capture" ] | |
1510 } | |
1511 } | 1503 } |
1512 | 1504 |
1513 # Desktop screen capture implementations that are not dependent on WebRTC. | 1505 # Desktop screen capture implementations, conditionally built depending on |
| 1506 # the available implementations for each platform. |
1514 if (is_linux || is_mac || is_win) { | 1507 if (is_linux || is_mac || is_win) { |
1515 defines += [ "ENABLE_SCREEN_CAPTURE=1" ] | 1508 defines += [ "ENABLE_SCREEN_CAPTURE=1" ] |
1516 sources += [ | 1509 sources += [ |
1517 "media/capture/cursor_renderer.cc", | 1510 "media/capture/cursor_renderer.cc", |
1518 "media/capture/cursor_renderer.h", | 1511 "media/capture/cursor_renderer.h", |
1519 "media/capture/web_contents_video_capture_device.cc", | 1512 "media/capture/web_contents_video_capture_device.cc", |
1520 "media/capture/web_contents_video_capture_device.h", | 1513 "media/capture/web_contents_video_capture_device.h", |
1521 "media/capture/window_activity_tracker.cc", | 1514 "media/capture/window_activity_tracker.cc", |
1522 "media/capture/window_activity_tracker.h", | 1515 "media/capture/window_activity_tracker.h", |
1523 ] | 1516 ] |
(...skipping 10 matching lines...) Expand all Loading... |
1534 ] | 1527 ] |
1535 } | 1528 } |
1536 if (is_mac) { | 1529 if (is_mac) { |
1537 sources += [ | 1530 sources += [ |
1538 "media/capture/cursor_renderer_mac.h", | 1531 "media/capture/cursor_renderer_mac.h", |
1539 "media/capture/cursor_renderer_mac.mm", | 1532 "media/capture/cursor_renderer_mac.mm", |
1540 "media/capture/window_activity_tracker_mac.h", | 1533 "media/capture/window_activity_tracker_mac.h", |
1541 "media/capture/window_activity_tracker_mac.mm", | 1534 "media/capture/window_activity_tracker_mac.mm", |
1542 ] | 1535 ] |
1543 } | 1536 } |
| 1537 if (enable_webrtc) { |
| 1538 sources += [ |
| 1539 "media/capture/desktop_capture_device.cc", |
| 1540 "media/capture/desktop_capture_device.h", |
| 1541 ] |
| 1542 deps += [ "//third_party/webrtc/modules/desktop_capture" ] |
| 1543 } |
1544 } | 1544 } |
1545 | 1545 |
1546 if (is_win) { | 1546 if (is_win) { |
1547 sources -= [ "device_sensors/data_fetcher_shared_memory_default.cc" ] | 1547 sources -= [ "device_sensors/data_fetcher_shared_memory_default.cc" ] |
1548 defines += [ | 1548 defines += [ |
1549 # This prevents the inclusion of atlhost.h which paired | 1549 # This prevents the inclusion of atlhost.h which paired |
1550 # with the windows 8 sdk it does the wrong thing. | 1550 # with the windows 8 sdk it does the wrong thing. |
1551 "__ATLHOST_H__", | 1551 "__ATLHOST_H__", |
1552 ] | 1552 ] |
1553 deps += [ | 1553 deps += [ |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2006 if (!is_component_build) { | 2006 if (!is_component_build) { |
2007 public_deps = [ | 2007 public_deps = [ |
2008 ":browser", | 2008 ":browser", |
2009 ] | 2009 ] |
2010 } else { | 2010 } else { |
2011 public_deps = [ | 2011 public_deps = [ |
2012 "//third_party/leveldatabase", | 2012 "//third_party/leveldatabase", |
2013 ] | 2013 ] |
2014 } | 2014 } |
2015 } | 2015 } |
OLD | NEW |