Home | History | Annotate | Download | only in plugin
      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 
      7 # This is the NPAPI plugin process. It isn't used on Linux.
      8 if (enable_plugins && !is_linux) {
      9   source_set("plugin") {
     10     visibility = "//content/*"
     11     sources = [
     12       "plugin_channel.cc",
     13       "plugin_channel.h",
     14       "plugin_interpose_util_mac.mm",
     15       "plugin_interpose_util_mac.h",
     16       "plugin_main.cc",
     17       "plugin_main_mac.mm",
     18       "plugin_thread.cc",
     19       "plugin_thread.h",
     20       "webplugin_accelerated_surface_proxy_mac.cc",
     21       "webplugin_accelerated_surface_proxy_mac.h",
     22       "webplugin_delegate_stub.cc",
     23       "webplugin_delegate_stub.h",
     24       "webplugin_proxy.cc",
     25       "webplugin_proxy.h",
     26     ]
     27 
     28     configs += [ "//content:content_implementation" ]
     29 
     30     deps = [
     31       "//content:export",
     32       "//mojo/public/interfaces/service_provider",
     33       "//skia",
     34       "//third_party/npapi",
     35       #"//third_party/WebKit/public:blink",  TODO(GYP)
     36       # TODO(GYP) remove this when blink is enabled:
     37       "//third_party/WebKit/public:blink_headers",
     38     ]
     39   }
     40 } else {
     41   # This way it can be unconditionally depended on.
     42   group("plugin") {
     43   }
     44 }
     45