blob: 8b08f69931f1cfa2c3e8ca3dc6f901dc47d84ed3 [file] [log] [blame]
Przemyslaw Szczepaniaka8ff13f2018-05-17 14:19:44 +01001#
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
Brett Chabot443ca522018-12-13 19:06:57 -080021LOCAL_STATIC_JAVA_LIBRARIES := androidx.test.rules
Przemyslaw Szczepaniakf1e93342018-10-10 14:16:53 +010022LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs
Przemyslaw Szczepaniaka8ff13f2018-05-17 14:19:44 +010023
24LOCAL_MODULE_TAGS := tests
25LOCAL_COMPATIBILITY_SUITE += device-tests
26
Stefano Galarraga650bda52020-06-17 11:03:07 +010027LOCAL_SRC_FILES := $(call all-java-files-under, src/com/android/nn/benchmark)
Viet Dangab62f602018-12-11 17:07:17 +000028LOCAL_JNI_SHARED_LIBRARIES := libnnbenchmark_jni
Przemyslaw Szczepaniaka8ff13f2018-05-17 14:19:44 +010029
Chih-Hung Hsiehbdc93452020-01-27 11:34:37 -080030# need fread_unlocked in version 28
31LOCAL_SDK_VERSION := 28
Przemyslaw Szczepaniaka8ff13f2018-05-17 14:19:44 +010032LOCAL_ASSET_DIR := $(LOCAL_PATH)/../models/assets
33
David Rime441c872018-06-01 15:55:11 +090034GOOGLE_TEST_MODELS_DIR := vendor/google/tests/mlts/models/assets
35ifneq ($(wildcard $(GOOGLE_TEST_MODELS_DIR)),)
36LOCAL_ASSET_DIR += $(GOOGLE_TEST_MODELS_DIR)
37endif
38
Viet Dang1f0f4402019-01-09 17:41:26 +000039LOCAL_PACKAGE_NAME := NeuralNetworksApiBenchmark
Przemyslaw Szczepaniaka8ff13f2018-05-17 14:19:44 +010040include $(BUILD_PACKAGE)
Viet Dangab62f602018-12-11 17:07:17 +000041
Viet Dang1f0f4402019-01-09 17:41:26 +000042include $(CLEAR_VARS)
Stefano Galarraga650bda52020-06-17 11:03:07 +010043
44LOCAL_STATIC_JAVA_LIBRARIES := androidx.test.rules
45LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs
46
47LOCAL_MODULE_TAGS := tests
48LOCAL_COMPATIBILITY_SUITE += device-tests
49
50LOCAL_SRC_FILES := $(call all-java-files-under, src)
51LOCAL_JNI_SHARED_LIBRARIES := libnnbenchmark_jni
52
53# need fread_unlocked in version 28
54LOCAL_SDK_VERSION := 28
55LOCAL_ASSET_DIR := $(LOCAL_PATH)/../models/assets
56
57GOOGLE_TEST_MODELS_DIR := vendor/google/tests/mlts/models/assets
58ifneq ($(wildcard $(GOOGLE_TEST_MODELS_DIR)),)
59LOCAL_ASSET_DIR += $(GOOGLE_TEST_MODELS_DIR)
60endif
61
62LOCAL_PACKAGE_NAME := NeuralNetworksApiCrashTest
63include $(BUILD_PACKAGE)
64
65include $(CLEAR_VARS)
Chih-Hung Hsiehbdc93452020-01-27 11:34:37 -080066LOCAL_SDK_VERSION := 28
Viet Dang1f0f4402019-01-09 17:41:26 +000067LOCAL_SRC_FILES := $(call all-java-files-under, src/com/android/nn/benchmark/core) \
68 $(call all-java-files-under, src/com/android/nn/benchmark/evaluators) \
69 $(call all-java-files-under, src/com/android/nn/benchmark/imageprocessors) \
70 $(call all-java-files-under, src/com/android/nn/benchmark/util)
71LOCAL_JNI_SHARED_LIBRARIES := libnnbenchmark_jni
72LOCAL_MODULE := NeuralNetworksApiBenchmark_Lib
73include $(BUILD_JAVA_LIBRARY)
74
Viet Dangab62f602018-12-11 17:07:17 +000075include $(call all-makefiles-under,$(LOCAL_PATH))