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 "access_unit_queue.cc",
16 "access_unit_queue.h",
17 "audio_decoder_job.cc",
18 "audio_decoder_job.h",
19 "browser_cdm_factory_android.cc",
20 "browser_cdm_factory_android.h",
22 "demuxer_stream_player_params.cc",
23 "demuxer_stream_player_params.h",
24 "media_client_android.cc",
25 "media_client_android.h",
26 "media_codec_audio_decoder.cc",
27 "media_codec_audio_decoder.h",
28 "media_codec_bridge.cc",
29 "media_codec_bridge.h",
30 "media_codec_decoder.cc",
31 "media_codec_decoder.h",
32 "media_codec_player.cc",
33 "media_codec_player.h",
34 "media_codec_video_decoder.cc",
35 "media_codec_video_decoder.h",
36 "media_decoder_job.cc",
37 "media_decoder_job.h",
38 "media_drm_bridge.cc",
40 "media_drm_bridge_delegate.cc",
41 "media_drm_bridge_delegate.h",
42 "media_jni_registrar.cc",
43 "media_jni_registrar.h",
44 "media_player_android.cc",
45 "media_player_android.h",
46 "media_player_bridge.cc",
47 "media_player_bridge.h",
48 "media_player_listener.cc",
49 "media_player_listener.h",
50 "media_player_manager.h",
51 "media_resource_getter.cc",
52 "media_resource_getter.h",
53 "media_source_player.cc",
54 "media_source_player.h",
55 "media_url_interceptor.h",
56 "video_decoder_job.cc",
57 "video_decoder_job.h",
58 "webaudio_media_codec_bridge.cc",
59 "webaudio_media_codec_bridge.h",
60 "webaudio_media_codec_info.h",
63 "//media:media_config",
64 "//media:media_implementation",
68 "//media:shared_memory_support",
69 "//third_party/widevine/cdm:version_h",
75 source_set("unittests") {
78 "access_unit_queue_unittest.cc",
79 "media_codec_bridge_unittest.cc",
80 "media_codec_decoder_unittest.cc",
81 "media_codec_player_unittest.cc",
82 "media_drm_bridge_unittest.cc",
83 "media_source_player_unittest.cc",
84 "test_data_factory.cc",
85 "test_data_factory.h",
90 "//media/base:test_support",
93 "//third_party/widevine/cdm:version_h",
95 configs += [ "//media:media_config" ]
98 generate_jni("media_jni_headers") {
100 "java/src/org/chromium/media/AudioManagerAndroid.java",
101 "java/src/org/chromium/media/AudioRecordInput.java",
102 "java/src/org/chromium/media/MediaCodecBridge.java",
103 "java/src/org/chromium/media/MediaDrmBridge.java",
104 "java/src/org/chromium/media/MediaPlayerBridge.java",
105 "java/src/org/chromium/media/MediaPlayerListener.java",
106 "java/src/org/chromium/media/WebAudioMediaCodecBridge.java",
108 jni_package = "media"
111 generate_jni("video_capture_jni_headers") {
113 "java/src/org/chromium/media/VideoCapture.java",
114 "java/src/org/chromium/media/VideoCaptureFactory.java",
116 jni_package = "media"
119 java_cpp_enum("media_java_enums_srcjar") {
121 "//media/capture/video/android/video_capture_device_android.h",
122 "//media/capture/video/video_capture_device.h",
125 "org/chromium/media/AndroidImageFormat.java",
126 "org/chromium/media/CaptureApiType.java",
130 android_library("media_java") {
135 srcjar_deps = [ ":media_java_enums_srcjar" ]
137 DEPRECATED_java_in_dir = "java/src"