1#
2# Copyright (C) 2015 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 := androidx.test.rules
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)
28LOCAL_JNI_SHARED_LIBRARIES := libnnbenchmark_jni
29
30LOCAL_SDK_VERSION := 27
31LOCAL_ASSET_DIR := $(LOCAL_PATH)/../models/assets
32
33GOOGLE_TEST_MODELS_DIR := vendor/google/tests/mlts/models/assets
34ifneq ($(wildcard $(GOOGLE_TEST_MODELS_DIR)),)
35LOCAL_ASSET_DIR += $(GOOGLE_TEST_MODELS_DIR)
36endif
37
38LOCAL_PACKAGE_NAME := NeuralNetworksApiBenchmark
39include $(BUILD_PACKAGE)
40
41include $(CLEAR_VARS)
42LOCAL_SDK_VERSION := 27
43LOCAL_SRC_FILES := $(call all-java-files-under, src/com/android/nn/benchmark/core) \
44    $(call all-java-files-under, src/com/android/nn/benchmark/evaluators) \
45    $(call all-java-files-under, src/com/android/nn/benchmark/imageprocessors) \
46    $(call all-java-files-under, src/com/android/nn/benchmark/util)
47LOCAL_JNI_SHARED_LIBRARIES := libnnbenchmark_jni
48LOCAL_MODULE := NeuralNetworksApiBenchmark_Lib
49include $(BUILD_JAVA_LIBRARY)
50
51include $(call all-makefiles-under,$(LOCAL_PATH))
52