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

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

Issue 2605973002: WebContentsVideoCapture Cleanup: Gut-out dead code, and tighten BUILDs. (Closed)
Patch Set: Another BUILD file fix. Created 3 years, 11 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
OLDNEW
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 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 "media/android/media_throttler.cc", 857 "media/android/media_throttler.cc",
858 "media/android/media_throttler.h", 858 "media/android/media_throttler.h",
859 "media/android/media_web_contents_observer_android.cc", 859 "media/android/media_web_contents_observer_android.cc",
860 "media/android/media_web_contents_observer_android.h", 860 "media/android/media_web_contents_observer_android.h",
861 "media/audible_metrics.cc", 861 "media/audible_metrics.cc",
862 "media/audible_metrics.h", 862 "media/audible_metrics.h",
863 "media/audio_stream_monitor.cc", 863 "media/audio_stream_monitor.cc",
864 "media/audio_stream_monitor.h", 864 "media/audio_stream_monitor.h",
865 "media/capture/audio_mirroring_manager.cc", 865 "media/capture/audio_mirroring_manager.cc",
866 "media/capture/audio_mirroring_manager.h", 866 "media/capture/audio_mirroring_manager.h",
867 "media/capture/cursor_renderer.h",
868 "media/capture/cursor_renderer_aura.cc",
869 "media/capture/cursor_renderer_aura.h",
870 "media/capture/cursor_renderer_mac.h",
871 "media/capture/cursor_renderer_mac.mm",
872 "media/capture/desktop_capture_device_uma_types.cc", 867 "media/capture/desktop_capture_device_uma_types.cc",
873 "media/capture/desktop_capture_device_uma_types.h", 868 "media/capture/desktop_capture_device_uma_types.h",
874 "media/capture/image_capture_impl.cc", 869 "media/capture/image_capture_impl.cc",
875 "media/capture/image_capture_impl.h", 870 "media/capture/image_capture_impl.h",
876 "media/capture/web_contents_audio_input_stream.cc", 871 "media/capture/web_contents_audio_input_stream.cc",
877 "media/capture/web_contents_audio_input_stream.h", 872 "media/capture/web_contents_audio_input_stream.h",
878 "media/capture/web_contents_audio_muter.cc", 873 "media/capture/web_contents_audio_muter.cc",
879 "media/capture/web_contents_audio_muter.h", 874 "media/capture/web_contents_audio_muter.h",
880 "media/capture/web_contents_tracker.cc", 875 "media/capture/web_contents_tracker.cc",
881 "media/capture/web_contents_tracker.h", 876 "media/capture/web_contents_tracker.h",
882 "media/capture/web_contents_video_capture_device.cc",
883 "media/capture/web_contents_video_capture_device.h",
884 "media/capture/window_activity_tracker.cc",
885 "media/capture/window_activity_tracker.h",
886 "media/capture/window_activity_tracker_aura.cc",
887 "media/capture/window_activity_tracker_aura.h",
888 "media/capture/window_activity_tracker_mac.h",
889 "media/capture/window_activity_tracker_mac.mm",
890 "media/cdm_registry_impl.cc", 877 "media/cdm_registry_impl.cc",
891 "media/cdm_registry_impl.h", 878 "media/cdm_registry_impl.h",
892 "media/media_devices_permission_checker.cc", 879 "media/media_devices_permission_checker.cc",
893 "media/media_devices_permission_checker.h", 880 "media/media_devices_permission_checker.h",
894 "media/media_interface_proxy.cc", 881 "media/media_interface_proxy.cc",
895 "media/media_interface_proxy.h", 882 "media/media_interface_proxy.h",
896 "media/media_internals.cc", 883 "media/media_internals.cc",
897 "media/media_internals.h", 884 "media/media_internals.h",
898 "media/media_internals_handler.cc", 885 "media/media_internals_handler.cc",
899 "media/media_internals_handler.h", 886 "media/media_internals_handler.h",
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 "webrtc/webrtc_internals_ui_observer.h", 1487 "webrtc/webrtc_internals_ui_observer.h",
1501 ] 1488 ]
1502 1489
1503 deps += [ 1490 deps += [
1504 "//jingle:jingle_glue", 1491 "//jingle:jingle_glue",
1505 "//third_party/libjingle/webrtc:libjingle_webrtc", 1492 "//third_party/libjingle/webrtc:libjingle_webrtc",
1506 "//third_party/webrtc/base:rtc_base", 1493 "//third_party/webrtc/base:rtc_base",
1507 "//third_party/webrtc/media:rtc_media_base", 1494 "//third_party/webrtc/media:rtc_media_base",
1508 "//third_party/webrtc/modules/desktop_capture:primitives", 1495 "//third_party/webrtc/modules/desktop_capture:primitives",
1509 ] 1496 ]
1510 if (!is_ios) { 1497
1511 defines += [ "ENABLE_SCREEN_CAPTURE=1" ]
1512 }
1513 if (is_linux || is_mac || is_win) { 1498 if (is_linux || is_mac || is_win) {
1514 sources += [ 1499 sources += [
1515 "media/capture/desktop_capture_device.cc", 1500 "media/capture/desktop_capture_device.cc",
1516 "media/capture/desktop_capture_device.h", 1501 "media/capture/desktop_capture_device.h",
1517 ] 1502 ]
1518 if (use_aura) {
1519 sources += [
1520 "media/capture/aura_window_capture_machine.cc",
1521 "media/capture/aura_window_capture_machine.h",
1522 "media/capture/desktop_capture_device_aura.cc",
1523 "media/capture/desktop_capture_device_aura.h",
1524 ]
1525 }
1526 deps += [ "//third_party/webrtc/modules/desktop_capture" ] 1503 deps += [ "//third_party/webrtc/modules/desktop_capture" ]
1527 } 1504 }
1528 } 1505 }
1529 1506
1507 # Desktop screen capture implementations that are not dependent on WebRTC.
1508 if (is_linux || is_mac || is_win) {
1509 defines += [ "ENABLE_SCREEN_CAPTURE=1" ]
1510 sources += [
1511 "media/capture/cursor_renderer.h",
1512 "media/capture/web_contents_video_capture_device.cc",
1513 "media/capture/web_contents_video_capture_device.h",
1514 "media/capture/window_activity_tracker.cc",
1515 "media/capture/window_activity_tracker.h",
1516 ]
1517 if (use_aura) {
1518 sources += [
1519 "media/capture/aura_window_capture_machine.cc",
1520 "media/capture/aura_window_capture_machine.h",
1521 "media/capture/cursor_renderer_aura.cc",
1522 "media/capture/cursor_renderer_aura.h",
1523 "media/capture/desktop_capture_device_aura.cc",
1524 "media/capture/desktop_capture_device_aura.h",
1525 "media/capture/window_activity_tracker_aura.cc",
1526 "media/capture/window_activity_tracker_aura.h",
1527 ]
1528 }
1529 if (is_mac) {
1530 sources += [
1531 "media/capture/cursor_renderer_mac.h",
1532 "media/capture/cursor_renderer_mac.mm",
1533 "media/capture/window_activity_tracker_mac.h",
1534 "media/capture/window_activity_tracker_mac.mm",
1535 ]
1536 }
1537 }
1538
1530 if (is_win) { 1539 if (is_win) {
1531 sources -= [ "device_sensors/data_fetcher_shared_memory_default.cc" ] 1540 sources -= [ "device_sensors/data_fetcher_shared_memory_default.cc" ]
1532 defines += [ 1541 defines += [
1533 # This prevents the inclusion of atlhost.h which paired 1542 # This prevents the inclusion of atlhost.h which paired
1534 # with the windows 8 sdk it does the wrong thing. 1543 # with the windows 8 sdk it does the wrong thing.
1535 "__ATLHOST_H__", 1544 "__ATLHOST_H__",
1536 ] 1545 ]
1537 deps += [ 1546 deps += [
1538 "//third_party/iaccessible2", 1547 "//third_party/iaccessible2",
1539 "//third_party/isimpledom", 1548 "//third_party/isimpledom",
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
1778 ] 1787 ]
1779 deps -= [ "//device/battery" ] 1788 deps -= [ "//device/battery" ]
1780 deps += [ 1789 deps += [
1781 "//content/public/android:jni", 1790 "//content/public/android:jni",
1782 "//media", 1791 "//media",
1783 "//media/capture/content/android", 1792 "//media/capture/content/android",
1784 "//media/capture/video/android", 1793 "//media/capture/video/android",
1785 "//mojo/android:libsystem_java", 1794 "//mojo/android:libsystem_java",
1786 "//ui/android", 1795 "//ui/android",
1787 ] 1796 ]
1788 defines += [ "APPCACHE_USE_SIMPLE_CACHE" ] 1797 defines += [
1798 "APPCACHE_USE_SIMPLE_CACHE",
1799 "ENABLE_SCREEN_CAPTURE=1",
1800 ]
1789 libs += [ "jnigraphics" ] 1801 libs += [ "jnigraphics" ]
1790 } else { 1802 } else {
1791 # Not Android. 1803 # Not Android.
1792 sources += [ 1804 sources += [
1793 # Most speech code is non-Android. 1805 # Most speech code is non-Android.
1794 "speech/audio_buffer.cc", 1806 "speech/audio_buffer.cc",
1795 "speech/audio_buffer.h", 1807 "speech/audio_buffer.h",
1796 "speech/audio_encoder.cc", 1808 "speech/audio_encoder.cc",
1797 "speech/audio_encoder.h", 1809 "speech/audio_encoder.h",
1798 "speech/chunked_byte_buffer.cc", 1810 "speech/chunked_byte_buffer.cc",
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 sources += [ 1863 sources += [
1852 "compositor/mus_browser_compositor_output_surface.cc", 1864 "compositor/mus_browser_compositor_output_surface.cc",
1853 "compositor/mus_browser_compositor_output_surface.h", 1865 "compositor/mus_browser_compositor_output_surface.h",
1854 "renderer_host/delegated_frame_host_client_aura.cc", 1866 "renderer_host/delegated_frame_host_client_aura.cc",
1855 "renderer_host/delegated_frame_host_client_aura.h", 1867 "renderer_host/delegated_frame_host_client_aura.h",
1856 "renderer_host/render_widget_host_view_event_handler.cc", 1868 "renderer_host/render_widget_host_view_event_handler.cc",
1857 "renderer_host/render_widget_host_view_event_handler.h", 1869 "renderer_host/render_widget_host_view_event_handler.h",
1858 ] 1870 ]
1859 } else { # Not aura. 1871 } else { # Not aura.
1860 sources -= [ 1872 sources -= [
1861 "media/capture/cursor_renderer_aura.cc",
1862 "media/capture/cursor_renderer_aura.h",
1863 "media/capture/window_activity_tracker_aura.cc",
1864 "media/capture/window_activity_tracker_aura.h",
1865 "renderer_host/compositor_resize_lock_aura.cc", 1873 "renderer_host/compositor_resize_lock_aura.cc",
1866 "renderer_host/compositor_resize_lock_aura.h", 1874 "renderer_host/compositor_resize_lock_aura.h",
1867 "renderer_host/input/synthetic_gesture_target_aura.cc", 1875 "renderer_host/input/synthetic_gesture_target_aura.cc",
1868 "renderer_host/input/synthetic_gesture_target_aura.h", 1876 "renderer_host/input/synthetic_gesture_target_aura.h",
1869 "renderer_host/input/touch_selection_controller_client_aura.cc", 1877 "renderer_host/input/touch_selection_controller_client_aura.cc",
1870 "renderer_host/input/touch_selection_controller_client_aura.h", 1878 "renderer_host/input/touch_selection_controller_client_aura.h",
1871 "renderer_host/native_web_keyboard_event_aura.cc", 1879 "renderer_host/native_web_keyboard_event_aura.cc",
1872 "renderer_host/render_widget_host_view_aura.cc", 1880 "renderer_host/render_widget_host_view_aura.cc",
1873 "renderer_host/render_widget_host_view_aura.h", 1881 "renderer_host/render_widget_host_view_aura.h",
1874 "renderer_host/ui_events_helper.cc", 1882 "renderer_host/ui_events_helper.cc",
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1991 if (!is_component_build) { 1999 if (!is_component_build) {
1992 public_deps = [ 2000 public_deps = [
1993 ":browser", 2001 ":browser",
1994 ] 2002 ]
1995 } else { 2003 } else {
1996 public_deps = [ 2004 public_deps = [
1997 "//third_party/leveldatabase", 2005 "//third_party/leveldatabase",
1998 ] 2006 ]
1999 } 2007 }
2000 } 2008 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698