telsoa01 | 5307bc1 | 2018-03-09 13:51:08 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright © 2017 ARM Ltd. All rights reserved. |
| 3 | # See LICENSE file in the project root for full license information. |
| 4 | # |
| 5 | |
| 6 | LOCAL_PATH := $(call my-dir) |
| 7 | |
| 8 | # Configure these paths if you move the source or Khronos headers |
| 9 | # |
| 10 | OPENCL_HEADER_PATH := $(LOCAL_PATH)/../../mali/product/khronos/original |
| 11 | NN_HEADER_PATH := $(LOCAL_PATH)/../../../../frameworks/ml/nn/runtime/include |
| 12 | ARMNN_HEADER_PATH := $(LOCAL_PATH)/../armnn/include |
| 13 | ARMNN_DRIVER_HEADER_PATH := $(LOCAL_PATH)/.. |
| 14 | |
| 15 | include $(CLEAR_VARS) |
| 16 | |
| 17 | LOCAL_C_INCLUDES := \ |
| 18 | $(OPENCL_HEADER_PATH) \ |
| 19 | $(NN_HEADER_PATH) \ |
| 20 | $(ARMNN_HEADER_PATH) \ |
| 21 | $(ARMNN_DRIVER_HEADER_PATH) |
| 22 | |
| 23 | LOCAL_CFLAGS := \ |
| 24 | -std=c++14 \ |
| 25 | -fexceptions \ |
| 26 | -Werror \ |
| 27 | -UNDEBUG |
| 28 | |
| 29 | LOCAL_SRC_FILES := \ |
surmeh01 | 7666005 | 2018-03-29 16:33:54 +0100 | [diff] [blame] | 30 | Tests.cpp \ |
surmeh01 | 49b9e10 | 2018-05-17 14:11:25 +0100 | [diff] [blame] | 31 | UtilsTests.cpp \ |
| 32 | Concurrent.cpp \ |
| 33 | Convolution2D.cpp \ |
| 34 | FullyConnected.cpp \ |
| 35 | GenericLayerTests.cpp \ |
| 36 | DriverTestHelpers.cpp \ |
| 37 | SystemProperties.cpp \ |
| 38 | Merger.cpp \ |
| 39 | TestTensor.cpp |
telsoa01 | 5307bc1 | 2018-03-09 13:51:08 +0000 | [diff] [blame] | 40 | |
| 41 | LOCAL_STATIC_LIBRARIES := \ |
| 42 | libarmnn-driver \ |
| 43 | libneuralnetworks_common \ |
| 44 | libarmnn \ |
| 45 | libboost_log \ |
| 46 | libboost_system \ |
| 47 | libboost_unit_test_framework \ |
| 48 | libboost_thread \ |
| 49 | armnn-arm_compute |
| 50 | |
| 51 | LOCAL_SHARED_LIBRARIES := \ |
| 52 | libbase \ |
| 53 | libhidlbase \ |
| 54 | libhidltransport \ |
| 55 | libhidlmemory \ |
telsoa01 | 5307bc1 | 2018-03-09 13:51:08 +0000 | [diff] [blame] | 56 | liblog \ |
surmeh01 | 49b9e10 | 2018-05-17 14:11:25 +0100 | [diff] [blame] | 57 | libtextclassifier_hash \ |
telsoa01 | 5307bc1 | 2018-03-09 13:51:08 +0000 | [diff] [blame] | 58 | libutils \ |
| 59 | android.hardware.neuralnetworks@1.0 \ |
| 60 | android.hidl.allocator@1.0 \ |
| 61 | android.hidl.memory@1.0 \ |
| 62 | libOpenCL |
| 63 | |
surmeh01 | deb3bdb | 2018-07-05 12:06:04 +0100 | [diff] [blame^] | 64 | ifeq ($(PLATFORM_VERSION),9) |
| 65 | # Required to build the 1.0 version of the NN Driver on Android P and later versions, |
| 66 | # as the 1.0 version of the NN API needs the 1.1 HAL headers to be included regardless. |
| 67 | LOCAL_SHARED_LIBRARIES+= \ |
| 68 | android.hardware.neuralnetworks@1.1 |
| 69 | endif |
| 70 | |
telsoa01 | 5307bc1 | 2018-03-09 13:51:08 +0000 | [diff] [blame] | 71 | LOCAL_MODULE := armnn-driver-tests |
| 72 | |
| 73 | LOCAL_MODULE_TAGS := eng optional |
| 74 | |
| 75 | LOCAL_ARM_MODE := arm |
| 76 | |
| 77 | # Mark source files as dependent on Android.mk |
| 78 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 79 | |
surmeh01 | 49b9e10 | 2018-05-17 14:11:25 +0100 | [diff] [blame] | 80 | LOCAL_PROPRIETARY_MODULE := true |
| 81 | |
telsoa01 | 5307bc1 | 2018-03-09 13:51:08 +0000 | [diff] [blame] | 82 | include $(BUILD_EXECUTABLE) |
| 83 | |
| 84 | |
| 85 | |