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 := \ 48 compatibility-device-util \ 49 ctsdeviceutillegacy \ 50 ctsmediautil \ 51 ctstestrunner \ 52 ctstestserver \ 53 junit \ 54 ndkaudio \ 55 testng \ 56 truth-prebuilt \ 57 mockito-target-minus-junit4 \ 58 androidx.heifwriter_heifwriter \ 59 androidx.media_media \ 60 61LOCAL_JNI_SHARED_LIBRARIES := \ 62 libaudio_jni \ 63 libc++ \ 64 libctscodecutils_jni \ 65 libctsimagereader_jni \ 66 libctsmediadrm_jni \ 67 libctsmediacodec_jni \ 68 libnativehelper_compat_libc++ \ 69 libndkaudioLib 70 71# do not compress VP9 video files 72LOCAL_AAPT_FLAGS := -0 .vp9 73LOCAL_AAPT_FLAGS += -0 .ts 74LOCAL_AAPT_FLAGS += -0 .heic 75 76LOCAL_SRC_FILES := $(call all-java-files-under, src) 77 78LOCAL_PACKAGE_NAME := CtsMediaTestCases 79 80# This test uses private APIs 81#LOCAL_SDK_VERSION := current 82LOCAL_PRIVATE_PLATFORM_APIS := true 83 84LOCAL_JAVA_LIBRARIES += \ 85 org.apache.http.legacy \ 86 android.test.base.stubs \ 87 android.test.runner.stubs 88 89# Tag this module as a cts test artifact 90LOCAL_COMPATIBILITY_SUITE := cts vts general-tests cts_instant 91 92include $(BUILD_CTS_PACKAGE) 93 94include $(call all-makefiles-under,$(LOCAL_PATH)) 95