1# 2# Copyright (C) 2020 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17LOCAL_PATH := $(call my-dir) 18 19include $(CLEAR_VARS) 20 21LOCAL_STATIC_JAVA_LIBRARIES := android-common androidx.test.rules androidx.appcompat_appcompat androidx-constraintlayout_constraintlayout 22LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs 23 24LOCAL_MODULE_TAGS := tests 25LOCAL_COMPATIBILITY_SUITE += device-tests 26 27LOCAL_SRC_FILES := $(call all-java-files-under, src) \ 28 $(call all-java-files-under, ../src/com/android/nn/benchmark/core) \ 29 $(call all-java-files-under, ../src/com/android/nn/benchmark/evaluators) \ 30 $(call all-java-files-under, ../src/com/android/nn/benchmark/imageprocessors) \ 31 $(call all-java-files-under, ../src/com/android/nn/benchmark/util) \ 32 $(call all-java-files-under, ../src/com/android/nn/crashtest/core) \ 33 ../src/com/android/nn/crashtest/app/AcceleratorSpecificTestSupport.java 34 35LOCAL_JNI_SHARED_LIBRARIES := libnnbenchmark_jni 36 37LOCAL_SDK_VERSION := 27 38LOCAL_ASSET_DIR := $(LOCAL_PATH)/../../models/assets 39 40GOOGLE_TEST_MODELS_DIR := vendor/google/tests/mlts/models/assets 41ifneq ($(wildcard $(GOOGLE_TEST_MODELS_DIR)),) 42LOCAL_ASSET_DIR += $(GOOGLE_TEST_MODELS_DIR) 43endif 44 45LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res $(LOCAL_PATH)/../res 46 47LOCAL_PACKAGE_NAME := NeuralNetworksApiCrashTestApp 48LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 49LOCAL_LICENSE_CONDITIONS := notice 50LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE 51include $(BUILD_PACKAGE) 52 53include $(call all-makefiles-under,$(LOCAL_PATH)) 54