1# Copyright (C) 2008 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH:= $(call my-dir)
16
17include $(CLEAR_VARS)
18
19LOCAL_SRC_FILES := \
20  src/android/media/cts/CodecImage.java \
21  src/android/media/cts/YUVImage.java \
22  src/android/media/cts/CodecUtils.java
23
24LOCAL_MODULE_TAGS := optional
25
26LOCAL_MODULE := ctsmediautil
27
28LOCAL_SDK_VERSION := current
29
30include $(BUILD_STATIC_JAVA_LIBRARY)
31
32include $(CLEAR_VARS)
33
34# don't include this package in any target
35LOCAL_MODULE_TAGS := optional
36
37# and when built explicitly put it in the data partition
38LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS)
39
40LOCAL_DEX_PREOPT := false
41
42LOCAL_PROGUARD_ENABLED := disabled
43
44# include both the 32 and 64 bit versions
45LOCAL_MULTILIB := both
46
47LOCAL_STATIC_JAVA_LIBRARIES := ctsmediautil ctsdeviceutil compatibility-device-util ctstestserver ctstestrunner ndkaudio
48
49LOCAL_JNI_SHARED_LIBRARIES := libctsmediacodec_jni libaudio_jni libnativehelper_compat_libc++ libndkaudioLib
50
51# do not compress VP9 video files
52LOCAL_AAPT_FLAGS := -0 .vp9
53
54LOCAL_SRC_FILES := $(call all-java-files-under, src)
55
56LOCAL_PACKAGE_NAME := CtsMediaTestCases
57
58# uncomment when b/13249737 is fixed
59#LOCAL_SDK_VERSION := current
60
61LOCAL_JAVA_LIBRARIES += android.test.runner org.apache.http.legacy
62
63# Tag this module as a cts test artifact
64LOCAL_COMPATIBILITY_SUITE := cts
65
66include $(BUILD_CTS_PACKAGE)
67
68include $(call all-makefiles-under,$(LOCAL_PATH))
69