Home | History | Annotate | Download | only in media
      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 
     15 LOCAL_PATH:= $(call my-dir)
     16 
     17 include $(CLEAR_VARS)
     18 
     19 LOCAL_SRC_FILES := \
     20   src/android/media/cts/CodecImage.java \
     21   src/android/media/cts/YUVImage.java \
     22   src/android/media/cts/CodecUtils.java
     23 
     24 LOCAL_MODULE_TAGS := optional
     25 
     26 LOCAL_MODULE := ctsmediautil
     27 
     28 LOCAL_SDK_VERSION := current
     29 
     30 include $(BUILD_STATIC_JAVA_LIBRARY)
     31 
     32 include $(CLEAR_VARS)
     33 
     34 # don't include this package in any target
     35 LOCAL_MODULE_TAGS := optional
     36 
     37 # and when built explicitly put it in the data partition
     38 LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS)
     39 
     40 LOCAL_DEX_PREOPT := false
     41 
     42 LOCAL_PROGUARD_ENABLED := disabled
     43 
     44 # include both the 32 and 64 bit versions
     45 LOCAL_MULTILIB := both
     46 
     47 LOCAL_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 
     61 LOCAL_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
     72 LOCAL_AAPT_FLAGS := -0 .vp9
     73 LOCAL_AAPT_FLAGS += -0 .ts
     74 LOCAL_AAPT_FLAGS += -0 .heic
     75 
     76 LOCAL_SRC_FILES := $(call all-java-files-under, src)
     77 
     78 LOCAL_PACKAGE_NAME := CtsMediaTestCases
     79 
     80 # This test uses private APIs
     81 #LOCAL_SDK_VERSION := current
     82 LOCAL_PRIVATE_PLATFORM_APIS := true
     83 
     84 LOCAL_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
     90 LOCAL_COMPATIBILITY_SUITE := cts vts general-tests cts_instant
     91 
     92 include $(BUILD_CTS_PACKAGE)
     93 
     94 include $(call all-makefiles-under,$(LOCAL_PATH))
     95