Przemyslaw Szczepaniak | a8ff13f | 2018-05-17 14:19:44 +0100 | [diff] [blame] | 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 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
| 19 | include $(CLEAR_VARS) |
| 20 | |
Brett Chabot | 443ca52 | 2018-12-13 19:06:57 -0800 | [diff] [blame] | 21 | LOCAL_STATIC_JAVA_LIBRARIES := androidx.test.rules |
Przemyslaw Szczepaniak | f1e9334 | 2018-10-10 14:16:53 +0100 | [diff] [blame] | 22 | LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs |
Przemyslaw Szczepaniak | a8ff13f | 2018-05-17 14:19:44 +0100 | [diff] [blame] | 23 | |
| 24 | LOCAL_MODULE_TAGS := tests |
| 25 | LOCAL_COMPATIBILITY_SUITE += device-tests |
| 26 | |
Stefano Galarraga | 650bda5 | 2020-06-17 11:03:07 +0100 | [diff] [blame^] | 27 | LOCAL_SRC_FILES := $(call all-java-files-under, src/com/android/nn/benchmark) |
Viet Dang | ab62f60 | 2018-12-11 17:07:17 +0000 | [diff] [blame] | 28 | LOCAL_JNI_SHARED_LIBRARIES := libnnbenchmark_jni |
Przemyslaw Szczepaniak | a8ff13f | 2018-05-17 14:19:44 +0100 | [diff] [blame] | 29 | |
Chih-Hung Hsieh | bdc9345 | 2020-01-27 11:34:37 -0800 | [diff] [blame] | 30 | # need fread_unlocked in version 28 |
| 31 | LOCAL_SDK_VERSION := 28 |
Przemyslaw Szczepaniak | a8ff13f | 2018-05-17 14:19:44 +0100 | [diff] [blame] | 32 | LOCAL_ASSET_DIR := $(LOCAL_PATH)/../models/assets |
| 33 | |
David Rim | e441c87 | 2018-06-01 15:55:11 +0900 | [diff] [blame] | 34 | GOOGLE_TEST_MODELS_DIR := vendor/google/tests/mlts/models/assets |
| 35 | ifneq ($(wildcard $(GOOGLE_TEST_MODELS_DIR)),) |
| 36 | LOCAL_ASSET_DIR += $(GOOGLE_TEST_MODELS_DIR) |
| 37 | endif |
| 38 | |
Viet Dang | 1f0f440 | 2019-01-09 17:41:26 +0000 | [diff] [blame] | 39 | LOCAL_PACKAGE_NAME := NeuralNetworksApiBenchmark |
Przemyslaw Szczepaniak | a8ff13f | 2018-05-17 14:19:44 +0100 | [diff] [blame] | 40 | include $(BUILD_PACKAGE) |
Viet Dang | ab62f60 | 2018-12-11 17:07:17 +0000 | [diff] [blame] | 41 | |
Viet Dang | 1f0f440 | 2019-01-09 17:41:26 +0000 | [diff] [blame] | 42 | include $(CLEAR_VARS) |
Stefano Galarraga | 650bda5 | 2020-06-17 11:03:07 +0100 | [diff] [blame^] | 43 | |
| 44 | LOCAL_STATIC_JAVA_LIBRARIES := androidx.test.rules |
| 45 | LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs |
| 46 | |
| 47 | LOCAL_MODULE_TAGS := tests |
| 48 | LOCAL_COMPATIBILITY_SUITE += device-tests |
| 49 | |
| 50 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| 51 | LOCAL_JNI_SHARED_LIBRARIES := libnnbenchmark_jni |
| 52 | |
| 53 | # need fread_unlocked in version 28 |
| 54 | LOCAL_SDK_VERSION := 28 |
| 55 | LOCAL_ASSET_DIR := $(LOCAL_PATH)/../models/assets |
| 56 | |
| 57 | GOOGLE_TEST_MODELS_DIR := vendor/google/tests/mlts/models/assets |
| 58 | ifneq ($(wildcard $(GOOGLE_TEST_MODELS_DIR)),) |
| 59 | LOCAL_ASSET_DIR += $(GOOGLE_TEST_MODELS_DIR) |
| 60 | endif |
| 61 | |
| 62 | LOCAL_PACKAGE_NAME := NeuralNetworksApiCrashTest |
| 63 | include $(BUILD_PACKAGE) |
| 64 | |
| 65 | include $(CLEAR_VARS) |
Chih-Hung Hsieh | bdc9345 | 2020-01-27 11:34:37 -0800 | [diff] [blame] | 66 | LOCAL_SDK_VERSION := 28 |
Viet Dang | 1f0f440 | 2019-01-09 17:41:26 +0000 | [diff] [blame] | 67 | LOCAL_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) |
| 71 | LOCAL_JNI_SHARED_LIBRARIES := libnnbenchmark_jni |
| 72 | LOCAL_MODULE := NeuralNetworksApiBenchmark_Lib |
| 73 | include $(BUILD_JAVA_LIBRARY) |
| 74 | |
Viet Dang | ab62f60 | 2018-12-11 17:07:17 +0000 | [diff] [blame] | 75 | include $(call all-makefiles-under,$(LOCAL_PATH)) |