Roll src/third_party/WebKit 605a979:06cb9e9 (svn 202556:202558)
[chromium-blink-merge.git] / components / external_video_surface / BUILD.gn
blob553234a1cb324564bc7cecf428519ae4d4c7c83e
1 # Copyright 2015 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.
5 if (is_android) {
6   import("//build/config/android/rules.gni")
9 static_library("external_video_surface") {
10   if (is_android) {
11     sources += [
12       "browser/android/external_video_surface_container_impl.cc",
13       "browser/android/external_video_surface_container_impl.h",
14       "component_jni_registrar.cc",
15       "component_jni_registrar.h",
16     ]
18     deps = [
19       ":jni_headers",
20       "//base",
21       "//content/public/browser",
22     ]
23   }
26 if (is_android) {
27   android_library("java") {
28     java_files = [ "android/java/src/org/chromium/components/external_video_surface/ExternalVideoSurfaceContainer.java" ]
29     deps = [
30       "//base:base_java",
31       "//content/public/android:content_java",
32     ]
33   }
34   generate_jni("jni_headers") {
35     sources = [
36       "android/java/src/org/chromium/components/external_video_surface/ExternalVideoSurfaceContainer.java",
37     ]
38     jni_package = "external_video_surface"
39   }