blob: d69fa860704f3d7bd46009d7a14d6d4741faccd5 [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)
Brett Chabot443ca522018-12-13 19:06:57 -080020LOCAL_STATIC_JAVA_LIBRARIES := androidx.test.rules
Przemyslaw Szczepaniakf1e93342018-10-10 14:16:53 +010021LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs
Przemyslaw Szczepaniaka8ff13f2018-05-17 14:19:44 +010022
23LOCAL_MODULE_TAGS := tests
24LOCAL_COMPATIBILITY_SUITE += device-tests
25
Stefano Galarraga650bda52020-06-17 11:03:07 +010026LOCAL_SRC_FILES := $(call all-java-files-under, src/com/android/nn/benchmark)
Viet Dangab62f602018-12-11 17:07:17 +000027LOCAL_JNI_SHARED_LIBRARIES := libnnbenchmark_jni
Przemyslaw Szczepaniaka8ff13f2018-05-17 14:19:44 +010028
Chih-Hung Hsiehbdc93452020-01-27 11:34:37 -080029# need fread_unlocked in version 28
30LOCAL_SDK_VERSION := 28
Przemyslaw Szczepaniaka8ff13f2018-05-17 14:19:44 +010031LOCAL_ASSET_DIR := $(LOCAL_PATH)/../models/assets
32
David Rime441c872018-06-01 15:55:11 +090033GOOGLE_TEST_MODELS_DIR := vendor/google/tests/mlts/models/assets
34ifneq ($(wildcard $(GOOGLE_TEST_MODELS_DIR)),)
35LOCAL_ASSET_DIR += $(GOOGLE_TEST_MODELS_DIR)
36endif
37
Viet Dang1f0f4402019-01-09 17:41:26 +000038LOCAL_PACKAGE_NAME := NeuralNetworksApiBenchmark
Przemyslaw Szczepaniaka8ff13f2018-05-17 14:19:44 +010039include $(BUILD_PACKAGE)
Viet Dangab62f602018-12-11 17:07:17 +000040
Viet Dang1f0f4402019-01-09 17:41:26 +000041include $(CLEAR_VARS)
Stefano Galarraga650bda52020-06-17 11:03:07 +010042
43LOCAL_STATIC_JAVA_LIBRARIES := androidx.test.rules
44LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs
45
46LOCAL_MODULE_TAGS := tests
47LOCAL_COMPATIBILITY_SUITE += device-tests
48
49LOCAL_SRC_FILES := $(call all-java-files-under, src)
Stefano Galarraga04f119a2020-05-13 19:19:32 +010050LOCAL_JNI_SHARED_LIBRARIES := libnnbenchmark_jni librandom_graph_test_jni
Stefano Galarraga650bda52020-06-17 11:03:07 +010051
52# need fread_unlocked in version 28
53LOCAL_SDK_VERSION := 28
54LOCAL_ASSET_DIR := $(LOCAL_PATH)/../models/assets
55
56GOOGLE_TEST_MODELS_DIR := vendor/google/tests/mlts/models/assets
57ifneq ($(wildcard $(GOOGLE_TEST_MODELS_DIR)),)
58LOCAL_ASSET_DIR += $(GOOGLE_TEST_MODELS_DIR)
59endif
60
61LOCAL_PACKAGE_NAME := NeuralNetworksApiCrashTest
62include $(BUILD_PACKAGE)
63
64include $(CLEAR_VARS)
Chih-Hung Hsiehbdc93452020-01-27 11:34:37 -080065LOCAL_SDK_VERSION := 28
Viet Dang1f0f4402019-01-09 17:41:26 +000066LOCAL_SRC_FILES := $(call all-java-files-under, src/com/android/nn/benchmark/core) \
67 $(call all-java-files-under, src/com/android/nn/benchmark/evaluators) \
68 $(call all-java-files-under, src/com/android/nn/benchmark/imageprocessors) \
69 $(call all-java-files-under, src/com/android/nn/benchmark/util)
70LOCAL_JNI_SHARED_LIBRARIES := libnnbenchmark_jni
71LOCAL_MODULE := NeuralNetworksApiBenchmark_Lib
72include $(BUILD_JAVA_LIBRARY)
73
Viet Dangab62f602018-12-11 17:07:17 +000074include $(call all-makefiles-under,$(LOCAL_PATH))