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.
5 import("//build/config/android/config.gni")
6 import("//build/config/android/rules.gni")
7 import("//build/config/arm.gni")
8 import("//build/config/ui.gni")
9 import("//media/media_options.gni")
13 source_set("android") {
15 "audio_decoder_job.cc",
16 "audio_decoder_job.h",
17 "browser_cdm_factory_android.cc",
18 "browser_cdm_factory_android.h",
20 "demuxer_stream_player_params.cc",
21 "demuxer_stream_player_params.h",
22 "media_codec_bridge.cc",
23 "media_codec_bridge.h",
24 "media_decoder_job.cc",
25 "media_decoder_job.h",
26 "media_drm_bridge.cc",
28 "media_jni_registrar.cc",
29 "media_jni_registrar.h",
30 "media_player_android.cc",
31 "media_player_android.h",
32 "media_player_bridge.cc",
33 "media_player_bridge.h",
34 "media_player_listener.cc",
35 "media_player_listener.h",
36 "media_player_manager.h",
37 "media_resource_getter.cc",
38 "media_resource_getter.h",
39 "media_source_player.cc",
40 "media_source_player.h",
41 "media_url_interceptor.h",
42 "video_decoder_job.cc",
43 "video_decoder_job.h",
44 "webaudio_media_codec_bridge.cc",
45 "webaudio_media_codec_bridge.h",
46 "webaudio_media_codec_info.h",
49 "//media:media_config",
50 "//media:media_implementation",
54 "//media:shared_memory_support",
55 "//third_party/widevine/cdm:version_h",
61 source_set("unittests") {
64 "media_codec_bridge_unittest.cc",
65 "media_drm_bridge_unittest.cc",
66 "media_source_player_unittest.cc",
70 "//media/base:test_support",
73 "//third_party/widevine/cdm:version_h",
75 configs += [ "//media:media_config" ]
78 generate_jni("media_jni_headers") {
80 "java/src/org/chromium/media/AudioManagerAndroid.java",
81 "java/src/org/chromium/media/AudioRecordInput.java",
82 "java/src/org/chromium/media/MediaCodecBridge.java",
83 "java/src/org/chromium/media/MediaDrmBridge.java",
84 "java/src/org/chromium/media/MediaPlayerBridge.java",
85 "java/src/org/chromium/media/MediaPlayerListener.java",
86 "java/src/org/chromium/media/UsbMidiDeviceAndroid.java",
87 "java/src/org/chromium/media/UsbMidiDeviceFactoryAndroid.java",
88 "java/src/org/chromium/media/WebAudioMediaCodecBridge.java",
93 generate_jni("video_capture_jni_headers") {
95 "java/src/org/chromium/media/VideoCapture.java",
96 "java/src/org/chromium/media/VideoCaptureFactory.java",
101 java_cpp_enum("media_java_enums_srcjar") {
103 "//media/video/capture/android/video_capture_device_android.h",
104 "//media/video/capture/video_capture_device.h",
107 "org/chromium/media/AndroidImageFormat.java",
108 "org/chromium/media/CaptureApiType.java",
112 android_library("media_java") {
117 srcjar_deps = [ ":media_java_enums_srcjar" ]
119 DEPRECATED_java_in_dir = "java/src"