naiveproxy/media/capture/video/android/BUILD.gn
2018-12-09 21:59:24 -05:00

68 lines
1.9 KiB
Plaintext

# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/config.gni")
import("//build/config/android/rules.gni")
import("//build/config/arm.gni")
import("//build/config/ui.gni")
import("//media/media_options.gni")
assert(is_android)
source_set("android") {
sources = [
"photo_capabilities.cc",
"photo_capabilities.h",
"video_capture_device_android.cc",
"video_capture_device_android.h",
"video_capture_device_factory_android.cc",
"video_capture_device_factory_android.h",
]
configs += [ "//media:media_config" ]
deps = [
":capture_jni_headers",
"//media/capture:capture_device_specific",
"//media/capture/mojom:image_capture",
"//third_party/libyuv",
"//ui/gfx:color_space",
"//ui/gfx/geometry",
]
}
generate_jni("capture_jni_headers") {
sources = [
"java/src/org/chromium/media/PhotoCapabilities.java",
"java/src/org/chromium/media/VideoCapture.java",
"java/src/org/chromium/media/VideoCaptureFactory.java",
]
jni_package = "media"
}
java_cpp_enum("media_java_enums_srcjar") {
sources = [
"../../../base/video_facing.h",
"../video_capture_device_descriptor.h",
"photo_capabilities.h",
"video_capture_device_android.h",
]
}
android_library("capture_java") {
deps = [
"//base:base_java",
"//third_party/android_tools:android_support_annotations_java",
]
srcjar_deps = [ ":media_java_enums_srcjar" ]
java_files = [
"java/src/org/chromium/media/PhotoCapabilities.java",
"java/src/org/chromium/media/VideoCapture.java",
"java/src/org/chromium/media/VideoCaptureCamera.java",
"java/src/org/chromium/media/VideoCaptureCamera2.java",
"java/src/org/chromium/media/VideoCaptureFactory.java",
"java/src/org/chromium/media/VideoCaptureFormat.java",
]
}