| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 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 | 
|  | 3 # found in the LICENSE file. | 
|  | 4 | 
|  | 5 import("//build/config/features.gni") | 
|  | 6 import("//build/config/ui.gni") | 
|  | 7 import("//content/renderer/renderer.gni") | 
|  | 8 | 
|  | 9 source_set("renderer") { | 
|  | 10   # Only targets in the content tree can depend directly on this target. | 
|  | 11   visibility = [ "//content/*" ] | 
|  | 12 | 
|  | 13   sources = rebase_path(content_renderer_gypi_values.private_renderer_sources, | 
|  | 14                         ".", "//content") | 
|  | 15 | 
|  | 16   configs += [ | 
|  | 17     "//content:blink_headers_stub_config", | 
|  | 18     "//content:content_implementation", | 
|  | 19     "//content:libjingle_stub_config", | 
|  | 20     "//content:v8_stub_config", | 
|  | 21     "//content:widevine_stub_config", | 
|  | 22   ] | 
|  | 23 | 
|  | 24   deps = [ | 
|  | 25     # TODO(GYP) bug 376846 remove this. This should be inherited from //net but | 
|  | 26     # those don't cross component boundaries. | 
|  | 27     "//crypto:platform", | 
|  | 28 | 
|  | 29     "//base/allocator", | 
|  | 30     "//content:resources", | 
|  | 31     "//content/common:mojo_bindings", | 
|  | 32     "//gin", | 
|  | 33     "//mojo/public/js/bindings", | 
|  | 34     "//mojo/public/interfaces/service_provider", | 
|  | 35     "//net", | 
|  | 36     "//skia", | 
|  | 37     "//third_party/icu", | 
|  | 38     "//third_party/npapi", | 
|  | 39     "//ui/accessibility", | 
|  | 40     "//ui/events:dom4_keycode_converter", | 
|  | 41     "//ui/native_theme", | 
|  | 42     "//ui/surface", | 
|  | 43     # TODO(GYP) | 
|  | 44     #'../jingle/jingle.gyp:jingle_glue', | 
|  | 45     #'../media/media.gyp:media', | 
|  | 46     #'../mojo/mojo.gyp:mojo_environment_chromium', | 
|  | 47     #'../third_party/WebKit/public/blink.gyp:blink', | 
|  | 48     #'../third_party/libjingle/libjingle.gyp:libjingle', | 
|  | 49     #'../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h', | 
|  | 50     #'../v8/tools/gyp/v8.gyp:v8', | 
|  | 51     #'../webkit/child/webkit_child.gyp:webkit_child', | 
|  | 52     #'../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu', | 
|  | 53     #'../webkit/common/webkit_common.gyp:webkit_common', | 
|  | 54     #'../webkit/renderer/compositor_bindings/compositor_bindings.gyp:webkit_comp
     ositor_bindings', | 
|  | 55     #'../webkit/renderer/compositor_bindings/compositor_bindings.gyp:webkit_comp
     ositor_support', | 
|  | 56     #'../webkit/storage_common.gyp:webkit_storage_common', | 
|  | 57   ] | 
|  | 58 | 
|  | 59   if (!enable_notifications) { | 
|  | 60     sources -= [ | 
|  | 61       "notification_provider.cc", | 
|  | 62       "active_notification_tracker.cc", | 
|  | 63     ] | 
|  | 64   } | 
|  | 65 | 
|  | 66   if (is_mac) { | 
|  | 67     sources -= [ | 
|  | 68       "webscrollbarbehavior_impl_gtkoraura.cc", | 
|  | 69       "webscrollbarbehavior_impl_gtkoraura.h", | 
|  | 70     ] | 
|  | 71     sources += [ | 
|  | 72       "external_popup_menu.cc", | 
|  | 73       "external_popup_menu.h", | 
|  | 74     ] | 
|  | 75   } | 
|  | 76 | 
|  | 77   if (is_android) { | 
|  | 78     sources -= [ | 
|  | 79       "accessibility/renderer_accessibility_focus_only.cc", | 
|  | 80       "media/audio_decoder.cc", | 
|  | 81       "media/filter_helpers.cc", | 
|  | 82       "media/webmediaplayer_impl.cc", | 
|  | 83     ] | 
|  | 84     sources += [ | 
|  | 85       "external_popup_menu.cc", | 
|  | 86       "external_popup_menu.h", | 
|  | 87     ] | 
|  | 88 | 
|  | 89     # Add back the Linux file which Android shares. | 
|  | 90     set_sources_assignment_filter([]) | 
|  | 91     sources += [ | 
|  | 92       "render_view_linux.cc", | 
|  | 93     ] | 
|  | 94 | 
|  | 95     deps += [ | 
|  | 96       "//third_party/android_tools:cpu_features", | 
|  | 97       # TODO(GYP) | 
|  | 98       #"//third_party/libphonenumber", | 
|  | 99     ] | 
|  | 100   } else { | 
|  | 101     sources -= [ | 
|  | 102       "java/java_bridge_channel.cc", | 
|  | 103       "java/java_bridge_channel.h", | 
|  | 104       "java/java_bridge_dispatcher.cc", | 
|  | 105       "java/java_bridge_dispatcher.h", | 
|  | 106     ] | 
|  | 107   } | 
|  | 108 | 
|  | 109   # TODO(jrg): remove the OS=="android" section? | 
|  | 110   # http://crbug.com/113172 | 
|  | 111   # Understand better how media_stream_ is tied into Chromium. | 
|  | 112   if (!enable_webrtc && is_android) { | 
|  | 113     sources -= [ | 
|  | 114       "media/media_stream_audio_level_calculator.cc", | 
|  | 115       "media/media_stream_audio_level_calculator.h", | 
|  | 116       "media/media_stream_audio_renderer.cc", | 
|  | 117       "media/media_stream_audio_renderer.h", | 
|  | 118       "media/media_stream_center.h", | 
|  | 119       "media/media_stream_client.h", | 
|  | 120       "media/media_stream_constraints_util.cc", | 
|  | 121       "media/media_stream_constraints_util.h", | 
|  | 122       "media/media_stream_dispatcher.h", | 
|  | 123       "media/media_stream_dispatcher_eventhandler.h", | 
|  | 124       "media/media_stream_impl.h", | 
|  | 125       "media/media_stream_track.cc", | 
|  | 126       "media/media_stream_track.h", | 
|  | 127     ] | 
|  | 128   } | 
|  | 129 | 
|  | 130   if (enable_webrtc) { | 
|  | 131     sources += rebase_path( | 
|  | 132         content_renderer_gypi_values.private_renderer_webrtc_sources, | 
|  | 133         ".", "//content") | 
|  | 134     deps += [ | 
|  | 135       "//crypto", | 
|  | 136       # TODO(GYP) | 
|  | 137       #"../third_party/libjingle/libjingle.gyp:libjingle_webrtc", | 
|  | 138       #"../third_party/libjingle/libjingle.gyp:libpeerconnection", | 
|  | 139       #"../third_party/webrtc/modules/modules.gyp:audio_device", | 
|  | 140       #"../third_party/webrtc/modules/modules.gyp:audio_processing", | 
|  | 141       #"//third_party/libyuv", | 
|  | 142     ] | 
|  | 143   } else { | 
|  | 144     sources += [ | 
|  | 145       "media/webrtc_logging_noop.cc", | 
|  | 146       "media/webrtc_logging.h", | 
|  | 147     ] | 
|  | 148   } | 
|  | 149 | 
|  | 150   if (enable_plugins) { | 
|  | 151     sources += rebase_path( | 
|  | 152         content_renderer_gypi_values.private_renderer_plugin_sources, | 
|  | 153         ".", "//content") | 
|  | 154     deps += [ | 
|  | 155       # TODO(GYP) | 
|  | 156       #"//ppapi/ppapi_internal.gyp:ppapi_host", | 
|  | 157       #"//ppapi/ppapi_internal.gyp:ppapi_proxy", | 
|  | 158       #"//ppapi/ppapi_internal.gyp:ppapi_shared", | 
|  | 159     ] | 
|  | 160   } else { | 
|  | 161     # These files are in the WebRTC list, but also require plugins. | 
|  | 162     if (enable_webrtc) { | 
|  | 163       sources -= [ | 
|  | 164         "media/webrtc/video_destination_handler.cc", | 
|  | 165         "media/webrtc/video_destination_handler.h", | 
|  | 166       ] | 
|  | 167     } | 
|  | 168   } | 
|  | 169 | 
|  | 170   if (enable_plugins && enable_webrtc) { | 
|  | 171     sources += rebase_path( | 
|  | 172         content_renderer_gypi_values.private_renderer_plugin_webrtc_sources, | 
|  | 173         ".", "//content") | 
|  | 174   } | 
|  | 175 | 
|  | 176   if (!enable_pepper_cdms) { | 
|  | 177     sources -= [ | 
|  | 178       "renderer/media/crypto/ppapi_decryptor.cc", | 
|  | 179       "renderer/media/crypto/ppapi_decryptor.h", | 
|  | 180     ] | 
|  | 181   } | 
|  | 182 } | 
| OLD | NEW | 
|---|