Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright © 2017 ARM Ltd. All rights reserved. |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | # |
| 5 | |
| 6 | ANDROID_NN_DRIVER_LOCAL_PATH := $(call my-dir) |
| 7 | LOCAL_PATH := $(ANDROID_NN_DRIVER_LOCAL_PATH) |
| 8 | |
| 9 | P_OR_LATER := 0 |
| 10 | Q_OR_LATER := 0 |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 11 | R_OR_LATER := 0 |
Sadik Armagan | 188675f | 2021-02-12 17:16:42 +0000 | [diff] [blame] | 12 | S_OR_LATER := 0 |
Kevin May | 157f8f4 | 2020-06-02 14:50:01 +0100 | [diff] [blame] | 13 | ANDROID_R := 0 |
Sadik Armagan | 188675f | 2021-02-12 17:16:42 +0000 | [diff] [blame] | 14 | ANDROID_S := 0 |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 15 | |
| 16 | ifeq ($(PLATFORM_VERSION),9) |
| 17 | P_OR_LATER := 1 |
| 18 | endif # PLATFORM_VERSION == 9 |
| 19 | ifeq ($(PLATFORM_VERSION),P) |
| 20 | P_OR_LATER := 1 |
| 21 | endif # PLATFORM_VERSION == P |
| 22 | |
| 23 | ifeq ($(PLATFORM_VERSION),10) |
| 24 | P_OR_LATER := 1 |
| 25 | Q_OR_LATER := 1 |
| 26 | endif # PLATFORM_VERSION == 10 |
| 27 | ifeq ($(PLATFORM_VERSION),Q) |
| 28 | P_OR_LATER := 1 |
| 29 | Q_OR_LATER := 1 |
| 30 | endif # PLATFORM_VERSION == Q |
| 31 | |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 32 | ifeq ($(PLATFORM_VERSION),R) |
| 33 | P_OR_LATER := 1 |
| 34 | Q_OR_LATER := 1 |
| 35 | R_OR_LATER := 1 |
Kevin May | 157f8f4 | 2020-06-02 14:50:01 +0100 | [diff] [blame] | 36 | ANDROID_R := 1 |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 37 | endif # PLATFORM_VERSION == R |
| 38 | |
Kevin May | 157f8f4 | 2020-06-02 14:50:01 +0100 | [diff] [blame] | 39 | ifeq ($(PLATFORM_VERSION),11) |
| 40 | P_OR_LATER := 1 |
| 41 | Q_OR_LATER := 1 |
| 42 | R_OR_LATER := 1 |
| 43 | ANDROID_R := 1 |
| 44 | endif # PLATFORM_VERSION == 11 |
| 45 | |
Sadik Armagan | 188675f | 2021-02-12 17:16:42 +0000 | [diff] [blame] | 46 | ifeq ($(PLATFORM_VERSION),S) |
| 47 | P_OR_LATER := 1 |
| 48 | Q_OR_LATER := 1 |
| 49 | R_OR_LATER := 1 |
| 50 | S_OR_LATER := 1 |
| 51 | ANDROID_R := 0 |
| 52 | ANDROID_S := 1 |
| 53 | endif # PLATFORM_VERSION == S |
| 54 | |
| 55 | ifeq ($(PLATFORM_VERSION),12) |
| 56 | P_OR_LATER := 1 |
| 57 | Q_OR_LATER := 1 |
| 58 | R_OR_LATER := 1 |
| 59 | S_OR_LATER := 1 |
| 60 | ANDROID_R := 0 |
| 61 | ANDROID_S := 1 |
| 62 | endif # PLATFORM_VERSION == 12 |
| 63 | |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 64 | CPP_VERSION := c++14 |
| 65 | |
| 66 | ifeq ($(Q_OR_LATER),1) |
| 67 | CPP_VERSION := c++17 |
| 68 | endif |
| 69 | |
| 70 | # Configure these paths if you move the source or Khronos headers |
| 71 | ARMNN_HEADER_PATH := $(LOCAL_PATH)/armnn/include |
Zingo Andersen | f65b266 | 2021-10-27 07:04:11 +0200 | [diff] [blame] | 72 | ARMNN_BACKEND_MAKEFILE_LOCAL_PATHS := $(wildcard $(LOCAL_PATH)/armnn/src/backends/*/backend.mk) |
| 73 | ARMNN_BACKEND_MAKEFILE_PATHS := $(subst $(LOCAL_PATH),,$(ARMNN_BACKEND_MAKEFILE_LOCAL_PATHS)) |
| 74 | ARMNN_BACKEND_MAKEFILE_DIRS := $(subst /backend.mk,,$(ARMNN_BACKEND_MAKEFILE_PATHS)) |
Colm Donelan | 08d9a1c | 2020-09-09 17:56:55 +0100 | [diff] [blame] | 75 | ARMNN_THIRD_PARTY_PATH := $(LOCAL_PATH)/armnn/third-party |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 76 | ARMNN_UTILS_HEADER_PATH := $(LOCAL_PATH)/armnn/src/armnnUtils |
Colm Donelan | 0cc6178 | 2020-10-06 21:02:21 +0100 | [diff] [blame] | 77 | ARMNN_THIRD_PARTY_PATH := $(LOCAL_PATH)/armnn/third-party |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 78 | OPENCL_HEADER_PATH := $(LOCAL_PATH)/clframework/include |
| 79 | NN_HEADER_PATH := $(LOCAL_PATH)/../../../frameworks/ml/nn/runtime/include |
Sadik Armagan | 188675f | 2021-02-12 17:16:42 +0000 | [diff] [blame] | 80 | ifeq ($(S_OR_LATER),1) |
| 81 | NN_HEADER_PATH := $(LOCAL_PATH)/../../../packages/modules/NeuralNetworks/runtime/include |
| 82 | endif |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 83 | |
| 84 | # Variables to control CL/NEON/reference backend support |
| 85 | # Set them to '0' to disable support for a specific backend |
| 86 | ARMNN_COMPUTE_CL_ENABLED := 1 |
| 87 | ARMNN_COMPUTE_NEON_ENABLED := 1 |
| 88 | ARMNN_REF_ENABLED := 1 |
Kevin May | 20c6225 | 2022-01-31 14:51:16 +0000 | [diff] [blame] | 89 | ARMNN_ETHOSN_ENABLED := 0 |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 90 | |
| 91 | ifeq ($(ARMNN_COMPUTE_CL_ENABLE),0) |
| 92 | ARMNN_COMPUTE_CL_ENABLED := 0 |
| 93 | endif |
| 94 | |
| 95 | ifeq ($(ARMNN_COMPUTE_NEON_ENABLE),0) |
| 96 | ARMNN_COMPUTE_NEON_ENABLED := 0 |
| 97 | endif |
| 98 | |
| 99 | ifeq ($(ARMNN_REF_ENABLE),0) |
| 100 | ARMNN_REF_ENABLED := 0 |
| 101 | endif |
| 102 | |
Kevin May | 20c6225 | 2022-01-31 14:51:16 +0000 | [diff] [blame] | 103 | ifeq ($(ARMNN_ETHOSN_ENABLE),1) |
| 104 | ARMNN_ETHOSN_ENABLED := 1 |
FrancisMurtagh | 594b283 | 2020-06-15 17:17:56 +0100 | [diff] [blame] | 105 | endif |
| 106 | |
alered01 | 7c395b2 | 2020-04-03 15:37:24 +0100 | [diff] [blame] | 107 | # Variable to control inclusion of libOpenCL shared library |
| 108 | ARMNN_INCLUDE_LIBOPENCL := $(ARMNN_COMPUTE_CL_ENABLED) |
| 109 | ifeq ($(ARMNN_LIBOPENCL),0) |
| 110 | ARMNN_INCLUDE_LIBOPENCL := 0 |
| 111 | endif |
| 112 | |
Narumol Prangnawarat | cad4e91 | 2020-06-02 12:07:43 +0100 | [diff] [blame] | 113 | # Variable to control retire rate of priority queue |
| 114 | RETIRE_RATE := 3 |
| 115 | |
Zingo Andersen | f65b266 | 2021-10-27 07:04:11 +0200 | [diff] [blame] | 116 | # Placeholder to hold all backend link files. |
| 117 | ARMNN_BACKEND_STATIC_LIBRARIES := |
| 118 | ARMNN_BACKEND_SHARED_LIBRARIES := |
| 119 | |
| 120 | # Iterate through the Arm NN backends and specific include paths, include them into the |
| 121 | # current makefile and append the linkfiles held by |
| 122 | # the optional BACKEND_STATIC_LIBRARIES and optional BACKEND_SHARED_LIBRARIES variable |
| 123 | # (included from the given makefile) to |
| 124 | # the ARMNN_BACKEND_STATIC_LIBRARIES and ARMNN_BACKEND_SHARED_LIBRARIES lists |
| 125 | |
| 126 | $(foreach mkPath,$(ARMNN_BACKEND_MAKEFILE_DIRS),\ |
| 127 | $(eval include $(LOCAL_PATH)/$(mkPath)/backend.mk)\ |
| 128 | $(eval ARMNN_BACKEND_STATIC_LIBRARIES += $(BACKEND_STATIC_LIBRARIES))) |
| 129 | |
| 130 | $(foreach mkPath,$(ARMNN_BACKEND_MAKEFILE_DIRS),\ |
| 131 | $(eval include $(LOCAL_PATH)/$(mkPath)/backend.mk)\ |
| 132 | $(eval ARMNN_BACKEND_SHARED_LIBRARIES += $(BACKEND_SHARED_LIBRARIES))) |
| 133 | |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 134 | ####################### |
| 135 | # libarmnn-driver@1.0 # |
| 136 | ####################### |
| 137 | include $(CLEAR_VARS) |
| 138 | |
| 139 | LOCAL_MODULE := libarmnn-driver@1.0 |
| 140 | ifeq ($(Q_OR_LATER),1) |
| 141 | # "eng" is deprecated in Android Q |
| 142 | LOCAL_MODULE_TAGS := optional |
| 143 | else |
| 144 | LOCAL_MODULE_TAGS := eng optional |
| 145 | endif |
| 146 | LOCAL_ARM_MODE := arm |
| 147 | LOCAL_PROPRIETARY_MODULE := true |
| 148 | # Mark source files as dependent on Android.mk |
| 149 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 150 | |
| 151 | LOCAL_C_INCLUDES := \ |
| 152 | $(ARMNN_HEADER_PATH) \ |
Colm Donelan | 08d9a1c | 2020-09-09 17:56:55 +0100 | [diff] [blame] | 153 | $(ARMNN_THIRD_PARTY_PATH) \ |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 154 | $(ARMNN_UTILS_HEADER_PATH) \ |
Colm Donelan | 0cc6178 | 2020-10-06 21:02:21 +0100 | [diff] [blame] | 155 | $(ARMNN_THIRD_PARTY_PATH) \ |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 156 | $(OPENCL_HEADER_PATH) \ |
| 157 | $(NN_HEADER_PATH) |
| 158 | |
| 159 | LOCAL_CFLAGS := \ |
| 160 | -std=$(CPP_VERSION) \ |
| 161 | -fexceptions \ |
| 162 | -Werror \ |
| 163 | -Wno-format-security |
| 164 | |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 165 | # Required to build with the changes made to the Android ML framework specific to Android R |
Kevin May | 157f8f4 | 2020-06-02 14:50:01 +0100 | [diff] [blame] | 166 | ifeq ($(ANDROID_R),1) |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 167 | LOCAL_CFLAGS+= \ |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 168 | -DARMNN_ANDROID_R |
Kevin May | 157f8f4 | 2020-06-02 14:50:01 +0100 | [diff] [blame] | 169 | endif |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 170 | |
Sadik Armagan | 188675f | 2021-02-12 17:16:42 +0000 | [diff] [blame] | 171 | ifeq ($(ANDROID_S),1) |
| 172 | LOCAL_CFLAGS+= \ |
| 173 | -DARMNN_ANDROID_S |
| 174 | endif |
| 175 | |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 176 | ifeq ($(ARMNN_DRIVER_DEBUG),1) |
| 177 | LOCAL_CFLAGS+= \ |
| 178 | -UNDEBUG |
| 179 | endif # ARMNN_DRIVER_DEBUG == 1 |
| 180 | |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 181 | ifeq ($(ARMNN_COMPUTE_CL_ENABLED),1) |
| 182 | LOCAL_CFLAGS += \ |
| 183 | -DARMCOMPUTECL_ENABLED |
| 184 | endif # ARMNN_COMPUTE_CL_ENABLED == 1 |
| 185 | |
| 186 | ifeq ($(ARMNN_COMPUTE_NEON_ENABLED),1) |
| 187 | LOCAL_CFLAGS += \ |
| 188 | -DARMCOMPUTENEON_ENABLED |
| 189 | endif # ARMNN_COMPUTE_NEON_ENABLED == 1 |
| 190 | |
| 191 | ifeq ($(ARMNN_REF_ENABLED),1) |
| 192 | LOCAL_CFLAGS += \ |
| 193 | -DARMNNREF_ENABLED |
| 194 | endif # ARMNN_REF_ENABLED == 1 |
| 195 | |
FrancisMurtagh | 594b283 | 2020-06-15 17:17:56 +0100 | [diff] [blame] | 196 | ifeq ($(ARMNN_ETHOSN_ENABLED),1) |
| 197 | LOCAL_CFLAGS += \ |
| 198 | -DARMNNETHOSN_ENABLED |
| 199 | endif # ARMNN_ETHOSN_ENABLED == 1 |
| 200 | |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 201 | LOCAL_SRC_FILES := \ |
| 202 | 1.0/ArmnnDriverImpl.cpp \ |
| 203 | 1.0/HalPolicy.cpp \ |
| 204 | ArmnnDriverImpl.cpp \ |
| 205 | DriverOptions.cpp \ |
| 206 | ArmnnDevice.cpp \ |
| 207 | ArmnnPreparedModel.cpp \ |
| 208 | ModelToINetworkConverter.cpp \ |
| 209 | RequestThread.cpp \ |
| 210 | Utils.cpp \ |
| 211 | ConversionUtils.cpp |
| 212 | |
| 213 | LOCAL_STATIC_LIBRARIES := \ |
| 214 | libneuralnetworks_common \ |
Sadik Armagan | f36e10b | 2021-01-11 16:34:01 +0000 | [diff] [blame] | 215 | libflatbuffers-framework \ |
Zingo Andersen | e02562b | 2021-12-14 13:58:56 +0100 | [diff] [blame] | 216 | arm_compute_library \ |
| 217 | $(ARMNN_BACKEND_STATIC_LIBRARIES) |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 218 | |
| 219 | LOCAL_WHOLE_STATIC_LIBRARIES := libarmnn |
| 220 | |
| 221 | LOCAL_SHARED_LIBRARIES := \ |
| 222 | libbase \ |
| 223 | libhidlbase \ |
| 224 | libhidltransport \ |
| 225 | libhidlmemory \ |
| 226 | liblog \ |
| 227 | libutils \ |
| 228 | android.hardware.neuralnetworks@1.0 \ |
| 229 | android.hidl.allocator@1.0 \ |
| 230 | android.hidl.memory@1.0 |
| 231 | |
| 232 | ifeq ($(P_OR_LATER),1) |
| 233 | # Required to build the 1.0 version of the NN Driver on Android P and later versions, |
| 234 | # as the 1.0 version of the NN API needs the 1.1 HAL headers to be included regardless. |
| 235 | LOCAL_SHARED_LIBRARIES+= \ |
| 236 | android.hardware.neuralnetworks@1.1 |
| 237 | endif # PLATFORM_VERSION == 9 |
| 238 | |
| 239 | ifeq ($(Q_OR_LATER),1) |
| 240 | LOCAL_SHARED_LIBRARIES+= \ |
| 241 | libnativewindow \ |
| 242 | libui \ |
| 243 | libfmq \ |
| 244 | libcutils \ |
| 245 | android.hardware.neuralnetworks@1.2 |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 246 | endif # Q or later |
| 247 | |
| 248 | ifeq ($(R_OR_LATER),1) |
| 249 | LOCAL_SHARED_LIBRARIES+= \ |
Sadik Armagan | d7be72e | 2020-04-23 12:56:05 +0100 | [diff] [blame] | 250 | libsync \ |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 251 | android.hardware.neuralnetworks@1.3 |
| 252 | endif # R or later |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 253 | |
alered01 | dbae247 | 2020-04-07 12:31:10 +0100 | [diff] [blame] | 254 | ifeq ($(ARMNN_INCLUDE_LIBOPENCL),1) |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 255 | LOCAL_SHARED_LIBRARIES+= \ |
| 256 | libOpenCL |
| 257 | endif |
| 258 | |
| 259 | include $(BUILD_STATIC_LIBRARY) |
| 260 | |
| 261 | ifeq ($(P_OR_LATER),1) |
| 262 | # The following target is available starting from Android P |
| 263 | |
| 264 | ####################### |
| 265 | # libarmnn-driver@1.1 # |
| 266 | ####################### |
| 267 | include $(CLEAR_VARS) |
| 268 | |
| 269 | LOCAL_MODULE := libarmnn-driver@1.1 |
| 270 | ifeq ($(Q_OR_LATER),1) |
| 271 | # "eng" is deprecated in Android Q |
| 272 | LOCAL_MODULE_TAGS := optional |
| 273 | else |
| 274 | LOCAL_MODULE_TAGS := eng optional |
| 275 | endif |
| 276 | #PRODUCT_PACKAGES_ENG := libarmnn-driver@1.1 |
| 277 | LOCAL_ARM_MODE := arm |
| 278 | LOCAL_PROPRIETARY_MODULE := true |
| 279 | # Mark source files as dependent on Android.mk |
| 280 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 281 | |
| 282 | LOCAL_C_INCLUDES := \ |
| 283 | $(ARMNN_HEADER_PATH) \ |
Colm Donelan | 08d9a1c | 2020-09-09 17:56:55 +0100 | [diff] [blame] | 284 | $(ARMNN_THIRD_PARTY_PATH) \ |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 285 | $(ARMNN_UTILS_HEADER_PATH) \ |
Colm Donelan | 0cc6178 | 2020-10-06 21:02:21 +0100 | [diff] [blame] | 286 | $(ARMNN_THIRD_PARTY_PATH) \ |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 287 | $(OPENCL_HEADER_PATH) \ |
| 288 | $(NN_HEADER_PATH) |
| 289 | |
| 290 | LOCAL_CFLAGS := \ |
| 291 | -std=$(CPP_VERSION) \ |
| 292 | -fexceptions \ |
| 293 | -Werror \ |
Finn Williams | f769f29 | 2021-06-25 12:53:09 +0100 | [diff] [blame] | 294 | -Wall \ |
| 295 | -Wextra \ |
| 296 | -Wno-unused-function \ |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 297 | -Wno-format-security \ |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 298 | -DARMNN_ANDROID_NN_V1_1 |
| 299 | |
| 300 | ifeq ($(ARMNN_DRIVER_DEBUG),1) |
| 301 | LOCAL_CFLAGS+= \ |
| 302 | -UNDEBUG |
| 303 | endif # ARMNN_DRIVER_DEBUG == 1 |
| 304 | |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 305 | # Required to build with the changes made to the Android ML framework specific to Android R |
Kevin May | 157f8f4 | 2020-06-02 14:50:01 +0100 | [diff] [blame] | 306 | ifeq ($(ANDROID_R),1) |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 307 | LOCAL_CFLAGS+= \ |
| 308 | -DARMNN_ANDROID_R |
Kevin May | 157f8f4 | 2020-06-02 14:50:01 +0100 | [diff] [blame] | 309 | endif |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 310 | |
Sadik Armagan | 188675f | 2021-02-12 17:16:42 +0000 | [diff] [blame] | 311 | ifeq ($(ANDROID_S),1) |
| 312 | LOCAL_CFLAGS+= \ |
| 313 | -DARMNN_ANDROID_S |
| 314 | endif |
| 315 | |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 316 | ifeq ($(ARMNN_COMPUTE_CL_ENABLED),1) |
| 317 | LOCAL_CFLAGS += \ |
| 318 | -DARMCOMPUTECL_ENABLED |
| 319 | endif # ARMNN_COMPUTE_CL_ENABLED == 1 |
| 320 | |
| 321 | ifeq ($(ARMNN_COMPUTE_NEON_ENABLED),1) |
| 322 | LOCAL_CFLAGS += \ |
| 323 | -DARMCOMPUTENEON_ENABLED |
| 324 | endif # ARMNN_COMPUTE_NEON_ENABLED == 1 |
| 325 | |
| 326 | ifeq ($(ARMNN_REF_ENABLED),1) |
| 327 | LOCAL_CFLAGS += \ |
| 328 | -DARMNNREF_ENABLED |
| 329 | endif # ARMNN_REF_ENABLED == 1 |
| 330 | |
FrancisMurtagh | 594b283 | 2020-06-15 17:17:56 +0100 | [diff] [blame] | 331 | ifeq ($(ARMNN_ETHOSN_ENABLED),1) |
| 332 | LOCAL_CFLAGS += \ |
| 333 | -DARMNNETHOSN_ENABLED |
| 334 | endif # ARMNN_ETHOSN_ENABLED == 1 |
| 335 | |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 336 | LOCAL_SRC_FILES := \ |
| 337 | 1.0/ArmnnDriverImpl.cpp \ |
| 338 | 1.0/HalPolicy.cpp \ |
| 339 | 1.1/ArmnnDriverImpl.cpp \ |
| 340 | 1.1/HalPolicy.cpp \ |
| 341 | ArmnnDriverImpl.cpp \ |
| 342 | DriverOptions.cpp \ |
| 343 | ArmnnDevice.cpp \ |
| 344 | ArmnnPreparedModel.cpp \ |
| 345 | ModelToINetworkConverter.cpp \ |
| 346 | RequestThread.cpp \ |
| 347 | Utils.cpp \ |
| 348 | ConversionUtils.cpp |
| 349 | |
| 350 | LOCAL_STATIC_LIBRARIES := \ |
| 351 | libneuralnetworks_common \ |
Sadik Armagan | f36e10b | 2021-01-11 16:34:01 +0000 | [diff] [blame] | 352 | libflatbuffers-framework \ |
Zingo Andersen | e02562b | 2021-12-14 13:58:56 +0100 | [diff] [blame] | 353 | arm_compute_library \ |
| 354 | $(ARMNN_BACKEND_STATIC_LIBRARIES) |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 355 | |
| 356 | LOCAL_WHOLE_STATIC_LIBRARIES := libarmnn |
| 357 | |
| 358 | LOCAL_SHARED_LIBRARIES := \ |
| 359 | libbase \ |
| 360 | libhidlbase \ |
| 361 | libhidltransport \ |
| 362 | libhidlmemory \ |
| 363 | liblog \ |
| 364 | libutils \ |
| 365 | android.hardware.neuralnetworks@1.0 \ |
| 366 | android.hardware.neuralnetworks@1.1 \ |
| 367 | android.hidl.allocator@1.0 \ |
| 368 | android.hidl.memory@1.0 |
| 369 | |
| 370 | ifeq ($(Q_OR_LATER),1) |
| 371 | LOCAL_SHARED_LIBRARIES+= \ |
| 372 | libnativewindow \ |
| 373 | libui \ |
| 374 | libfmq \ |
| 375 | libcutils \ |
| 376 | android.hardware.neuralnetworks@1.2 |
| 377 | endif # PLATFORM_VERSION == Q |
| 378 | |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 379 | ifeq ($(R_OR_LATER),1) |
| 380 | LOCAL_SHARED_LIBRARIES+= \ |
Sadik Armagan | d7be72e | 2020-04-23 12:56:05 +0100 | [diff] [blame] | 381 | libsync \ |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 382 | android.hardware.neuralnetworks@1.3 |
| 383 | endif # R or later |
| 384 | |
alered01 | 7c395b2 | 2020-04-03 15:37:24 +0100 | [diff] [blame] | 385 | ifeq ($(ARMNN_INCLUDE_LIBOPENCL),1) |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 386 | LOCAL_SHARED_LIBRARIES+= \ |
| 387 | libOpenCL |
| 388 | endif |
| 389 | |
| 390 | include $(BUILD_STATIC_LIBRARY) |
| 391 | |
| 392 | endif # PLATFORM_VERSION == 9 |
| 393 | |
| 394 | ifeq ($(Q_OR_LATER),1) |
| 395 | # The following target is available starting from Android Q |
| 396 | |
| 397 | ####################### |
| 398 | # libarmnn-driver@1.2 # |
| 399 | ####################### |
| 400 | include $(CLEAR_VARS) |
| 401 | |
| 402 | LOCAL_MODULE := libarmnn-driver@1.2 |
| 403 | LOCAL_MODULE_TAGS := optional |
| 404 | LOCAL_ARM_MODE := arm |
| 405 | LOCAL_PROPRIETARY_MODULE := true |
| 406 | # Mark source files as dependent on Android.mk |
| 407 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 408 | |
| 409 | LOCAL_C_INCLUDES := \ |
| 410 | $(ARMNN_HEADER_PATH) \ |
Colm Donelan | 08d9a1c | 2020-09-09 17:56:55 +0100 | [diff] [blame] | 411 | $(ARMNN_THIRD_PARTY_PATH) \ |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 412 | $(ARMNN_UTILS_HEADER_PATH) \ |
Colm Donelan | 0cc6178 | 2020-10-06 21:02:21 +0100 | [diff] [blame] | 413 | $(ARMNN_THIRD_PARTY_PATH) \ |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 414 | $(OPENCL_HEADER_PATH) \ |
| 415 | $(NN_HEADER_PATH) |
| 416 | |
| 417 | LOCAL_CFLAGS := \ |
| 418 | -std=$(CPP_VERSION) \ |
| 419 | -fexceptions \ |
| 420 | -Werror \ |
Finn Williams | f769f29 | 2021-06-25 12:53:09 +0100 | [diff] [blame] | 421 | -Wall \ |
| 422 | -Wextra \ |
| 423 | -Wno-unused-function \ |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 424 | -Wno-format-security \ |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 425 | -DARMNN_ANDROID_NN_V1_2 |
| 426 | |
| 427 | ifeq ($(ARMNN_DRIVER_DEBUG),1) |
| 428 | LOCAL_CFLAGS+= \ |
| 429 | -UNDEBUG |
| 430 | endif # ARMNN_DRIVER_DEBUG == 1 |
| 431 | |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 432 | # Required to build with the changes made to the Android ML framework specific to Android R |
Kevin May | 157f8f4 | 2020-06-02 14:50:01 +0100 | [diff] [blame] | 433 | ifeq ($(ANDROID_R),1) |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 434 | LOCAL_CFLAGS+= \ |
| 435 | -DARMNN_ANDROID_R |
Kevin May | 157f8f4 | 2020-06-02 14:50:01 +0100 | [diff] [blame] | 436 | endif |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 437 | |
Sadik Armagan | 188675f | 2021-02-12 17:16:42 +0000 | [diff] [blame] | 438 | ifeq ($(ANDROID_S),1) |
| 439 | LOCAL_CFLAGS+= \ |
| 440 | -DARMNN_ANDROID_S |
| 441 | endif |
| 442 | |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 443 | ifeq ($(ARMNN_COMPUTE_CL_ENABLED),1) |
| 444 | LOCAL_CFLAGS += \ |
| 445 | -DARMCOMPUTECL_ENABLED |
| 446 | endif # ARMNN_COMPUTE_CL_ENABLED == 1 |
| 447 | |
| 448 | ifeq ($(ARMNN_COMPUTE_NEON_ENABLED),1) |
| 449 | LOCAL_CFLAGS += \ |
| 450 | -DARMCOMPUTENEON_ENABLED |
| 451 | endif # ARMNN_COMPUTE_NEON_ENABLED == 1 |
| 452 | |
| 453 | ifeq ($(ARMNN_REF_ENABLED),1) |
| 454 | LOCAL_CFLAGS += \ |
| 455 | -DARMNNREF_ENABLED |
| 456 | endif # ARMNN_REF_ENABLED == 1 |
| 457 | |
FrancisMurtagh | 594b283 | 2020-06-15 17:17:56 +0100 | [diff] [blame] | 458 | ifeq ($(ARMNN_ETHOSN_ENABLED),1) |
| 459 | LOCAL_CFLAGS += \ |
| 460 | -DARMNNETHOSN_ENABLED |
| 461 | endif # ARMNN_ETHOSN_ENABLED == 1 |
| 462 | |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 463 | LOCAL_SRC_FILES := \ |
| 464 | 1.0/ArmnnDriverImpl.cpp \ |
| 465 | 1.0/HalPolicy.cpp \ |
| 466 | 1.1/ArmnnDriverImpl.cpp \ |
| 467 | 1.1/HalPolicy.cpp \ |
| 468 | 1.2/ArmnnDriverImpl.cpp \ |
| 469 | 1.2/HalPolicy.cpp \ |
| 470 | ArmnnDevice.cpp \ |
| 471 | ArmnnDriverImpl.cpp \ |
| 472 | ArmnnPreparedModel.cpp \ |
| 473 | ArmnnPreparedModel_1_2.cpp \ |
Sadik Armagan | 0a2dfab | 2021-10-06 16:41:44 +0100 | [diff] [blame] | 474 | CacheDataHandler.cpp \ |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 475 | ConversionUtils.cpp \ |
| 476 | DriverOptions.cpp \ |
| 477 | ModelToINetworkConverter.cpp \ |
| 478 | RequestThread.cpp \ |
| 479 | Utils.cpp |
| 480 | |
| 481 | LOCAL_STATIC_LIBRARIES := \ |
| 482 | libneuralnetworks_common \ |
Sadik Armagan | f36e10b | 2021-01-11 16:34:01 +0000 | [diff] [blame] | 483 | libflatbuffers-framework \ |
Zingo Andersen | e02562b | 2021-12-14 13:58:56 +0100 | [diff] [blame] | 484 | arm_compute_library \ |
| 485 | $(ARMNN_BACKEND_STATIC_LIBRARIES) |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 486 | |
| 487 | LOCAL_WHOLE_STATIC_LIBRARIES := libarmnn |
| 488 | |
| 489 | LOCAL_SHARED_LIBRARIES := \ |
| 490 | libbase \ |
| 491 | libhidlbase \ |
| 492 | libhidltransport \ |
| 493 | libhidlmemory \ |
| 494 | liblog \ |
| 495 | libutils \ |
| 496 | libnativewindow \ |
| 497 | libui \ |
| 498 | libfmq \ |
| 499 | libcutils \ |
| 500 | android.hidl.allocator@1.0 \ |
| 501 | android.hidl.memory@1.0 \ |
| 502 | android.hardware.neuralnetworks@1.0 \ |
| 503 | android.hardware.neuralnetworks@1.1 \ |
| 504 | android.hardware.neuralnetworks@1.2 |
| 505 | |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 506 | ifeq ($(R_OR_LATER),1) |
| 507 | LOCAL_SHARED_LIBRARIES+= \ |
Sadik Armagan | d7be72e | 2020-04-23 12:56:05 +0100 | [diff] [blame] | 508 | libsync \ |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 509 | android.hardware.neuralnetworks@1.3 |
| 510 | endif # R or later |
| 511 | |
alered01 | 7c395b2 | 2020-04-03 15:37:24 +0100 | [diff] [blame] | 512 | ifeq ($(ARMNN_INCLUDE_LIBOPENCL),1) |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 513 | LOCAL_SHARED_LIBRARIES+= \ |
| 514 | libOpenCL |
| 515 | endif |
| 516 | |
| 517 | include $(BUILD_STATIC_LIBRARY) |
| 518 | |
| 519 | endif # PLATFORM_VERSION == Q |
| 520 | |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 521 | ifeq ($(R_OR_LATER),1) |
| 522 | # The following target is available starting from Android R |
| 523 | |
| 524 | ####################### |
| 525 | # libarmnn-driver@1.3 # |
| 526 | ####################### |
| 527 | include $(CLEAR_VARS) |
| 528 | |
| 529 | LOCAL_MODULE := libarmnn-driver@1.3 |
| 530 | LOCAL_MODULE_TAGS := optional |
| 531 | LOCAL_ARM_MODE := arm |
| 532 | LOCAL_PROPRIETARY_MODULE := true |
| 533 | # Mark source files as dependent on Android.mk |
| 534 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 535 | |
| 536 | LOCAL_C_INCLUDES := \ |
| 537 | $(ARMNN_HEADER_PATH) \ |
Colm Donelan | 08d9a1c | 2020-09-09 17:56:55 +0100 | [diff] [blame] | 538 | $(ARMNN_THIRD_PARTY_PATH) \ |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 539 | $(ARMNN_UTILS_HEADER_PATH) \ |
Colm Donelan | 0cc6178 | 2020-10-06 21:02:21 +0100 | [diff] [blame] | 540 | $(ARMNN_THIRD_PARTY_PATH) \ |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 541 | $(OPENCL_HEADER_PATH) \ |
| 542 | $(NN_HEADER_PATH) |
| 543 | |
| 544 | LOCAL_CFLAGS := \ |
| 545 | -std=$(CPP_VERSION) \ |
| 546 | -fexceptions \ |
| 547 | -Werror \ |
Finn Williams | f769f29 | 2021-06-25 12:53:09 +0100 | [diff] [blame] | 548 | -Wall \ |
| 549 | -Wextra \ |
| 550 | -Wno-unused-function \ |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 551 | -Wno-format-security \ |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 552 | -DARMNN_ANDROID_NN_V1_3 \ |
Sadik Armagan | 188675f | 2021-02-12 17:16:42 +0000 | [diff] [blame] | 553 | |
| 554 | ifeq ($(ANDROID_R),1) |
| 555 | LOCAL_CFLAGS+= \ |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 556 | -DARMNN_ANDROID_R |
Sadik Armagan | 188675f | 2021-02-12 17:16:42 +0000 | [diff] [blame] | 557 | endif |
| 558 | |
| 559 | ifeq ($(ANDROID_S),1) |
| 560 | LOCAL_CFLAGS+= \ |
| 561 | -DARMNN_ANDROID_S |
| 562 | endif |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 563 | |
| 564 | ifeq ($(ARMNN_DRIVER_DEBUG),1) |
| 565 | LOCAL_CFLAGS+= \ |
| 566 | -UNDEBUG |
| 567 | endif # ARMNN_DRIVER_DEBUG == 1 |
| 568 | |
| 569 | ifeq ($(ARMNN_COMPUTE_CL_ENABLED),1) |
| 570 | LOCAL_CFLAGS += \ |
| 571 | -DARMCOMPUTECL_ENABLED |
| 572 | endif # ARMNN_COMPUTE_CL_ENABLED == 1 |
| 573 | |
| 574 | ifeq ($(ARMNN_COMPUTE_NEON_ENABLED),1) |
| 575 | LOCAL_CFLAGS += \ |
| 576 | -DARMCOMPUTENEON_ENABLED |
| 577 | endif # ARMNN_COMPUTE_NEON_ENABLED == 1 |
| 578 | |
| 579 | ifeq ($(ARMNN_REF_ENABLED),1) |
| 580 | LOCAL_CFLAGS += \ |
| 581 | -DARMNNREF_ENABLED |
| 582 | endif # ARMNN_REF_ENABLED == 1 |
| 583 | |
FrancisMurtagh | 594b283 | 2020-06-15 17:17:56 +0100 | [diff] [blame] | 584 | ifeq ($(ARMNN_ETHOSN_ENABLED),1) |
| 585 | LOCAL_CFLAGS += \ |
| 586 | -DARMNNETHOSN_ENABLED |
| 587 | endif # ARMNN_ETHOSN_ENABLED == 1 |
| 588 | |
Narumol Prangnawarat | cad4e91 | 2020-06-02 12:07:43 +0100 | [diff] [blame] | 589 | LOCAL_CFLAGS += \ |
| 590 | -DRETIRE_RATE=$(RETIRE_RATE) |
| 591 | |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 592 | LOCAL_SRC_FILES := \ |
| 593 | 1.0/ArmnnDriverImpl.cpp \ |
| 594 | 1.0/HalPolicy.cpp \ |
| 595 | 1.1/ArmnnDriverImpl.cpp \ |
| 596 | 1.1/HalPolicy.cpp \ |
| 597 | 1.2/ArmnnDriverImpl.cpp \ |
| 598 | 1.2/HalPolicy.cpp \ |
| 599 | 1.3/ArmnnDriverImpl.cpp \ |
| 600 | 1.3/HalPolicy.cpp \ |
| 601 | ArmnnDevice.cpp \ |
| 602 | ArmnnDriverImpl.cpp \ |
| 603 | ArmnnPreparedModel.cpp \ |
| 604 | ArmnnPreparedModel_1_2.cpp \ |
| 605 | ArmnnPreparedModel_1_3.cpp \ |
Sadik Armagan | 0a2dfab | 2021-10-06 16:41:44 +0100 | [diff] [blame] | 606 | CacheDataHandler.cpp \ |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 607 | ConversionUtils.cpp \ |
| 608 | DriverOptions.cpp \ |
| 609 | ModelToINetworkConverter.cpp \ |
| 610 | RequestThread.cpp \ |
Narumol Prangnawarat | cad4e91 | 2020-06-02 12:07:43 +0100 | [diff] [blame] | 611 | RequestThread_1_3.cpp \ |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 612 | Utils.cpp |
| 613 | |
| 614 | LOCAL_STATIC_LIBRARIES := \ |
| 615 | libneuralnetworks_common \ |
Sadik Armagan | f36e10b | 2021-01-11 16:34:01 +0000 | [diff] [blame] | 616 | libflatbuffers-framework \ |
Zingo Andersen | e02562b | 2021-12-14 13:58:56 +0100 | [diff] [blame] | 617 | arm_compute_library \ |
| 618 | $(ARMNN_BACKEND_STATIC_LIBRARIES) |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 619 | |
| 620 | LOCAL_WHOLE_STATIC_LIBRARIES := libarmnn |
| 621 | |
| 622 | LOCAL_SHARED_LIBRARIES := \ |
| 623 | libbase \ |
| 624 | libhidlbase \ |
| 625 | libhidltransport \ |
| 626 | libhidlmemory \ |
| 627 | liblog \ |
| 628 | libutils \ |
| 629 | libnativewindow \ |
| 630 | libui \ |
| 631 | libfmq \ |
| 632 | libcutils \ |
| 633 | android.hidl.allocator@1.0 \ |
| 634 | android.hidl.memory@1.0 \ |
Sadik Armagan | d7be72e | 2020-04-23 12:56:05 +0100 | [diff] [blame] | 635 | libsync \ |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 636 | android.hardware.neuralnetworks@1.0 \ |
| 637 | android.hardware.neuralnetworks@1.1 \ |
| 638 | android.hardware.neuralnetworks@1.2 \ |
| 639 | android.hardware.neuralnetworks@1.3 |
| 640 | |
alered01 | 7c395b2 | 2020-04-03 15:37:24 +0100 | [diff] [blame] | 641 | ifeq ($(ARMNN_INCLUDE_LIBOPENCL),1) |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 642 | LOCAL_SHARED_LIBRARIES+= \ |
| 643 | libOpenCL |
| 644 | endif |
| 645 | |
| 646 | include $(BUILD_STATIC_LIBRARY) |
| 647 | |
| 648 | endif # PLATFORM_VERSION == R |
| 649 | |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 650 | ##################################################### |
Kevin May | abc95d0 | 2020-05-15 15:34:03 +0100 | [diff] [blame] | 651 | # android.hardware.neuralnetworks@1.0-service-armnn # |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 652 | ##################################################### |
| 653 | include $(CLEAR_VARS) |
| 654 | |
Kevin May | abc95d0 | 2020-05-15 15:34:03 +0100 | [diff] [blame] | 655 | LOCAL_MODULE := android.hardware.neuralnetworks@1.0-service-armnn |
| 656 | LOCAL_INIT_RC := android.hardware.neuralnetworks@1.0-service-armnn.rc |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 657 | ifeq ($(Q_OR_LATER),1) |
| 658 | # "eng" is deprecated in Android Q |
| 659 | LOCAL_MODULE_TAGS := optional |
| 660 | else |
| 661 | LOCAL_MODULE_TAGS := eng optional |
| 662 | endif |
| 663 | LOCAL_ARM_MODE := arm |
| 664 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 665 | LOCAL_PROPRIETARY_MODULE := true |
| 666 | # Mark source files as dependent on Android.mk |
| 667 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 668 | |
| 669 | LOCAL_C_INCLUDES := \ |
| 670 | $(ARMNN_HEADER_PATH) \ |
Colm Donelan | 08d9a1c | 2020-09-09 17:56:55 +0100 | [diff] [blame] | 671 | $(ARMNN_THIRD_PARTY_PATH) \ |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 672 | $(NN_HEADER_PATH) |
| 673 | |
| 674 | LOCAL_CFLAGS := \ |
| 675 | -std=$(CPP_VERSION) \ |
| 676 | -fexceptions |
| 677 | |
| 678 | ifeq ($(ARMNN_DRIVER_DEBUG),1) |
| 679 | LOCAL_CFLAGS += \ |
| 680 | -UNDEBUG |
| 681 | endif # ARMNN_DRIVER_DEBUG == 1 |
| 682 | |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 683 | # Required to build with the changes made to the Android ML framework specific to Android R |
Kevin May | 157f8f4 | 2020-06-02 14:50:01 +0100 | [diff] [blame] | 684 | ifeq ($(ANDROID_R),1) |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 685 | LOCAL_CFLAGS+= \ |
| 686 | -DARMNN_ANDROID_R |
Kevin May | 157f8f4 | 2020-06-02 14:50:01 +0100 | [diff] [blame] | 687 | endif |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 688 | |
Sadik Armagan | 188675f | 2021-02-12 17:16:42 +0000 | [diff] [blame] | 689 | ifeq ($(ANDROID_S),1) |
| 690 | LOCAL_CFLAGS+= \ |
| 691 | -DARMNN_ANDROID_S |
| 692 | endif |
| 693 | |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 694 | LOCAL_SRC_FILES := \ |
| 695 | service.cpp |
| 696 | |
| 697 | LOCAL_STATIC_LIBRARIES := \ |
| 698 | libneuralnetworks_common \ |
Sadik Armagan | f36e10b | 2021-01-11 16:34:01 +0000 | [diff] [blame] | 699 | libflatbuffers-framework \ |
Zingo Andersen | f65b266 | 2021-10-27 07:04:11 +0200 | [diff] [blame] | 700 | arm_compute_library \ |
| 701 | $(ARMNN_BACKEND_STATIC_LIBRARIES) |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 702 | |
| 703 | LOCAL_WHOLE_STATIC_LIBRARIES := \ |
| 704 | libarmnn-driver@1.0 |
| 705 | |
| 706 | LOCAL_SHARED_LIBRARIES := \ |
| 707 | libbase \ |
| 708 | libhidlbase \ |
| 709 | libhidltransport \ |
| 710 | libhidlmemory \ |
| 711 | libdl \ |
| 712 | libhardware \ |
| 713 | liblog \ |
| 714 | libtextclassifier_hash \ |
| 715 | libutils \ |
| 716 | android.hardware.neuralnetworks@1.0 \ |
| 717 | android.hidl.allocator@1.0 \ |
Zingo Andersen | f65b266 | 2021-10-27 07:04:11 +0200 | [diff] [blame] | 718 | android.hidl.memory@1.0 \ |
| 719 | $(ARMNN_BACKEND_SHARED_LIBRARIES) |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 720 | |
| 721 | ifeq ($(P_OR_LATER),1) |
| 722 | # Required to build the 1.0 version of the NN Driver on Android P and later versions, |
| 723 | # as the 1.0 version of the NN API needs the 1.1 HAL headers to be included regardless. |
| 724 | LOCAL_SHARED_LIBRARIES+= \ |
| 725 | android.hardware.neuralnetworks@1.1 |
| 726 | endif # PLATFORM_VERSION == 9 |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 727 | |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 728 | ifeq ($(Q_OR_LATER),1) |
| 729 | LOCAL_SHARED_LIBRARIES+= \ |
| 730 | libnativewindow \ |
| 731 | libui \ |
| 732 | libfmq \ |
| 733 | libcutils \ |
| 734 | android.hardware.neuralnetworks@1.2 |
| 735 | endif # PLATFORM_VERSION == Q |
| 736 | |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 737 | ifeq ($(R_OR_LATER),1) |
| 738 | LOCAL_SHARED_LIBRARIES+= \ |
Sadik Armagan | d7be72e | 2020-04-23 12:56:05 +0100 | [diff] [blame] | 739 | libsync \ |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 740 | android.hardware.neuralnetworks@1.3 |
| 741 | endif # R or later |
| 742 | |
alered01 | 7c395b2 | 2020-04-03 15:37:24 +0100 | [diff] [blame] | 743 | ifeq ($(ARMNN_INCLUDE_LIBOPENCL),1) |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 744 | LOCAL_SHARED_LIBRARIES+= \ |
| 745 | libOpenCL |
| 746 | endif |
| 747 | |
| 748 | include $(BUILD_EXECUTABLE) |
| 749 | |
| 750 | ifeq ($(P_OR_LATER),1) |
| 751 | # The following target is available starting from Android P |
| 752 | |
| 753 | ##################################################### |
Kevin May | abc95d0 | 2020-05-15 15:34:03 +0100 | [diff] [blame] | 754 | # android.hardware.neuralnetworks@1.1-service-armnn # |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 755 | ##################################################### |
| 756 | include $(CLEAR_VARS) |
| 757 | |
Kevin May | abc95d0 | 2020-05-15 15:34:03 +0100 | [diff] [blame] | 758 | LOCAL_MODULE := android.hardware.neuralnetworks@1.1-service-armnn |
| 759 | LOCAL_INIT_RC := android.hardware.neuralnetworks@1.1-service-armnn.rc |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 760 | ifeq ($(Q_OR_LATER),1) |
| 761 | # "eng" is deprecated in Android Q |
| 762 | LOCAL_MODULE_TAGS := optional |
| 763 | else |
| 764 | LOCAL_MODULE_TAGS := eng optional |
| 765 | endif |
| 766 | LOCAL_ARM_MODE := arm |
| 767 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 768 | LOCAL_PROPRIETARY_MODULE := true |
| 769 | # Mark source files as dependent on Android.mk |
| 770 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 771 | |
| 772 | LOCAL_C_INCLUDES := \ |
| 773 | $(ARMNN_HEADER_PATH) \ |
Colm Donelan | 08d9a1c | 2020-09-09 17:56:55 +0100 | [diff] [blame] | 774 | $(ARMNN_THIRD_PARTY_PATH) \ |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 775 | $(NN_HEADER_PATH) |
| 776 | |
| 777 | LOCAL_CFLAGS := \ |
| 778 | -std=$(CPP_VERSION) \ |
| 779 | -fexceptions \ |
| 780 | -DARMNN_ANDROID_NN_V1_1 |
| 781 | |
| 782 | ifeq ($(ARMNN_DRIVER_DEBUG),1) |
| 783 | LOCAL_CFLAGS += \ |
| 784 | -UNDEBUG |
| 785 | endif # ARMNN_DRIVER_DEBUG == 1 |
| 786 | |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 787 | # Required to build with the changes made to the Android ML framework specific to Android R |
Kevin May | 157f8f4 | 2020-06-02 14:50:01 +0100 | [diff] [blame] | 788 | ifeq ($(ANDROID_R),1) |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 789 | LOCAL_CFLAGS+= \ |
| 790 | -DARMNN_ANDROID_R |
Kevin May | 157f8f4 | 2020-06-02 14:50:01 +0100 | [diff] [blame] | 791 | endif |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 792 | |
Sadik Armagan | 188675f | 2021-02-12 17:16:42 +0000 | [diff] [blame] | 793 | ifeq ($(ANDROID_S),1) |
| 794 | LOCAL_CFLAGS+= \ |
| 795 | -DARMNN_ANDROID_S |
| 796 | endif |
| 797 | |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 798 | LOCAL_SRC_FILES := \ |
| 799 | service.cpp |
| 800 | |
| 801 | LOCAL_STATIC_LIBRARIES := \ |
| 802 | libneuralnetworks_common \ |
Sadik Armagan | f36e10b | 2021-01-11 16:34:01 +0000 | [diff] [blame] | 803 | libflatbuffers-framework \ |
Zingo Andersen | f65b266 | 2021-10-27 07:04:11 +0200 | [diff] [blame] | 804 | arm_compute_library \ |
| 805 | $(ARMNN_BACKEND_STATIC_LIBRARIES) |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 806 | |
| 807 | LOCAL_WHOLE_STATIC_LIBRARIES := \ |
| 808 | libarmnn-driver@1.1 |
| 809 | |
| 810 | LOCAL_SHARED_LIBRARIES := \ |
| 811 | libbase \ |
| 812 | libhidlbase \ |
| 813 | libhidltransport \ |
| 814 | libhidlmemory \ |
| 815 | libdl \ |
| 816 | libhardware \ |
| 817 | liblog \ |
| 818 | libtextclassifier_hash \ |
| 819 | libutils \ |
| 820 | android.hardware.neuralnetworks@1.0 \ |
| 821 | android.hardware.neuralnetworks@1.1 \ |
| 822 | android.hidl.allocator@1.0 \ |
Zingo Andersen | f65b266 | 2021-10-27 07:04:11 +0200 | [diff] [blame] | 823 | android.hidl.memory@1.0 \ |
| 824 | $(ARMNN_BACKEND_SHARED_LIBRARIES) |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 825 | |
| 826 | ifeq ($(Q_OR_LATER),1) |
| 827 | LOCAL_SHARED_LIBRARIES+= \ |
| 828 | libnativewindow \ |
| 829 | libui \ |
| 830 | libfmq \ |
| 831 | libcutils \ |
| 832 | android.hardware.neuralnetworks@1.2 |
| 833 | endif # PLATFORM_VERSION == Q |
| 834 | |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 835 | ifeq ($(R_OR_LATER),1) |
| 836 | LOCAL_SHARED_LIBRARIES+= \ |
Sadik Armagan | d7be72e | 2020-04-23 12:56:05 +0100 | [diff] [blame] | 837 | libsync \ |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 838 | android.hardware.neuralnetworks@1.3 |
| 839 | endif # PLATFORM_VERSION == R |
| 840 | |
alered01 | 7c395b2 | 2020-04-03 15:37:24 +0100 | [diff] [blame] | 841 | ifeq ($(ARMNN_INCLUDE_LIBOPENCL),1) |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 842 | LOCAL_SHARED_LIBRARIES+= \ |
| 843 | libOpenCL |
| 844 | endif |
| 845 | |
| 846 | include $(BUILD_EXECUTABLE) |
| 847 | |
| 848 | endif # PLATFORM_VERSION == 9 |
| 849 | |
| 850 | ifeq ($(Q_OR_LATER),1) |
| 851 | # The following target is available starting from Android Q |
| 852 | |
| 853 | ##################################################### |
Kevin May | abc95d0 | 2020-05-15 15:34:03 +0100 | [diff] [blame] | 854 | # android.hardware.neuralnetworks@1.2-service-armnn # |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 855 | ##################################################### |
| 856 | include $(CLEAR_VARS) |
| 857 | |
Kevin May | abc95d0 | 2020-05-15 15:34:03 +0100 | [diff] [blame] | 858 | LOCAL_MODULE := android.hardware.neuralnetworks@1.2-service-armnn |
| 859 | LOCAL_INIT_RC := android.hardware.neuralnetworks@1.2-service-armnn.rc |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 860 | LOCAL_MODULE_TAGS := optional |
| 861 | LOCAL_ARM_MODE := arm |
| 862 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 863 | LOCAL_PROPRIETARY_MODULE := true |
| 864 | # Mark source files as dependent on Android.mk |
| 865 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 866 | |
| 867 | LOCAL_C_INCLUDES := \ |
| 868 | $(ARMNN_HEADER_PATH) \ |
Colm Donelan | 08d9a1c | 2020-09-09 17:56:55 +0100 | [diff] [blame] | 869 | $(ARMNN_THIRD_PARTY_PATH) \ |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 870 | $(NN_HEADER_PATH) |
| 871 | |
| 872 | LOCAL_CFLAGS := \ |
| 873 | -std=$(CPP_VERSION) \ |
| 874 | -fexceptions \ |
| 875 | -DARMNN_ANDROID_NN_V1_2 \ |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 876 | |
| 877 | ifeq ($(ARMNN_DRIVER_DEBUG),1) |
| 878 | LOCAL_CFLAGS += \ |
| 879 | -UNDEBUG |
| 880 | endif # ARMNN_DRIVER_DEBUG == 1 |
| 881 | |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 882 | # Required to build with the changes made to the Android ML framework specific to Android R |
Kevin May | 157f8f4 | 2020-06-02 14:50:01 +0100 | [diff] [blame] | 883 | ifeq ($(ANDROID_R),1) |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 884 | LOCAL_CFLAGS+= \ |
| 885 | -DARMNN_ANDROID_R |
Kevin May | 157f8f4 | 2020-06-02 14:50:01 +0100 | [diff] [blame] | 886 | endif |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 887 | |
Sadik Armagan | 188675f | 2021-02-12 17:16:42 +0000 | [diff] [blame] | 888 | ifeq ($(ANDROID_S),1) |
| 889 | LOCAL_CFLAGS+= \ |
| 890 | -DARMNN_ANDROID_S |
| 891 | endif |
| 892 | |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 893 | LOCAL_SRC_FILES := \ |
| 894 | service.cpp |
| 895 | |
| 896 | LOCAL_STATIC_LIBRARIES := \ |
| 897 | libneuralnetworks_common \ |
Sadik Armagan | f36e10b | 2021-01-11 16:34:01 +0000 | [diff] [blame] | 898 | libflatbuffers-framework \ |
Zingo Andersen | f65b266 | 2021-10-27 07:04:11 +0200 | [diff] [blame] | 899 | arm_compute_library \ |
| 900 | $(ARMNN_BACKEND_STATIC_LIBRARIES) |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 901 | |
| 902 | LOCAL_WHOLE_STATIC_LIBRARIES := \ |
| 903 | libarmnn-driver@1.2 |
| 904 | |
| 905 | LOCAL_SHARED_LIBRARIES := \ |
| 906 | libbase \ |
| 907 | libhidlbase \ |
| 908 | libhidltransport \ |
| 909 | libhidlmemory \ |
| 910 | libdl \ |
| 911 | libhardware \ |
| 912 | liblog \ |
| 913 | libtextclassifier_hash \ |
| 914 | libutils \ |
| 915 | libnativewindow \ |
| 916 | libui \ |
| 917 | libfmq \ |
| 918 | libcutils \ |
| 919 | android.hidl.allocator@1.0 \ |
| 920 | android.hidl.memory@1.0 \ |
| 921 | android.hardware.neuralnetworks@1.0 \ |
| 922 | android.hardware.neuralnetworks@1.1 \ |
Zingo Andersen | f65b266 | 2021-10-27 07:04:11 +0200 | [diff] [blame] | 923 | android.hardware.neuralnetworks@1.2 \ |
| 924 | $(ARMNN_BACKEND_SHARED_LIBRARIES) |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 925 | |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 926 | ifeq ($(R_OR_LATER),1) |
| 927 | LOCAL_SHARED_LIBRARIES+= \ |
Sadik Armagan | d7be72e | 2020-04-23 12:56:05 +0100 | [diff] [blame] | 928 | libsync \ |
Kevin May | ec1e5b8 | 2020-02-26 17:00:39 +0000 | [diff] [blame] | 929 | android.hardware.neuralnetworks@1.3 |
| 930 | endif # R or later |
| 931 | |
alered01 | 7c395b2 | 2020-04-03 15:37:24 +0100 | [diff] [blame] | 932 | ifeq ($(ARMNN_INCLUDE_LIBOPENCL),1) |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 933 | LOCAL_SHARED_LIBRARIES+= \ |
| 934 | libOpenCL |
| 935 | endif |
| 936 | |
| 937 | include $(BUILD_EXECUTABLE) |
| 938 | |
| 939 | endif # PLATFORM_VERSION == Q |
| 940 | |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 941 | ifeq ($(R_OR_LATER),1) |
| 942 | # The following target is available starting from Android R |
| 943 | |
| 944 | ##################################################### |
Kevin May | abc95d0 | 2020-05-15 15:34:03 +0100 | [diff] [blame] | 945 | # android.hardware.neuralnetworks@1.3-service-armnn # |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 946 | ##################################################### |
| 947 | include $(CLEAR_VARS) |
| 948 | |
Kevin May | abc95d0 | 2020-05-15 15:34:03 +0100 | [diff] [blame] | 949 | LOCAL_MODULE := android.hardware.neuralnetworks@1.3-service-armnn |
| 950 | LOCAL_INIT_RC := android.hardware.neuralnetworks@1.3-service-armnn.rc |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 951 | LOCAL_MODULE_TAGS := optional |
| 952 | LOCAL_ARM_MODE := arm |
| 953 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 954 | LOCAL_PROPRIETARY_MODULE := true |
| 955 | # Mark source files as dependent on Android.mk |
| 956 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 957 | |
| 958 | LOCAL_C_INCLUDES := \ |
| 959 | $(ARMNN_HEADER_PATH) \ |
Colm Donelan | 08d9a1c | 2020-09-09 17:56:55 +0100 | [diff] [blame] | 960 | $(ARMNN_THIRD_PARTY_PATH) \ |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 961 | $(NN_HEADER_PATH) |
| 962 | |
| 963 | LOCAL_CFLAGS := \ |
| 964 | -std=$(CPP_VERSION) \ |
| 965 | -fexceptions \ |
| 966 | -DARMNN_ANDROID_NN_V1_3 \ |
Sadik Armagan | 188675f | 2021-02-12 17:16:42 +0000 | [diff] [blame] | 967 | |
| 968 | ifeq ($(ANDROID_R),1) |
| 969 | LOCAL_CFLAGS+= \ |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 970 | -DARMNN_ANDROID_R |
Sadik Armagan | 188675f | 2021-02-12 17:16:42 +0000 | [diff] [blame] | 971 | endif |
| 972 | |
| 973 | ifeq ($(ANDROID_S),1) |
| 974 | LOCAL_CFLAGS+= \ |
| 975 | -DARMNN_ANDROID_S |
| 976 | endif |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 977 | |
| 978 | ifeq ($(ARMNN_DRIVER_DEBUG),1) |
| 979 | LOCAL_CFLAGS += \ |
| 980 | -UNDEBUG |
| 981 | endif # ARMNN_DRIVER_DEBUG == 1 |
| 982 | |
| 983 | LOCAL_SRC_FILES := \ |
| 984 | service.cpp |
| 985 | |
| 986 | LOCAL_STATIC_LIBRARIES := \ |
| 987 | libneuralnetworks_common \ |
Sadik Armagan | f36e10b | 2021-01-11 16:34:01 +0000 | [diff] [blame] | 988 | libflatbuffers-framework \ |
Zingo Andersen | f65b266 | 2021-10-27 07:04:11 +0200 | [diff] [blame] | 989 | arm_compute_library \ |
| 990 | $(ARMNN_BACKEND_STATIC_LIBRARIES) |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 991 | |
| 992 | LOCAL_WHOLE_STATIC_LIBRARIES := \ |
| 993 | libarmnn-driver@1.3 |
| 994 | |
| 995 | LOCAL_SHARED_LIBRARIES := \ |
| 996 | libbase \ |
| 997 | libhidlbase \ |
| 998 | libhidltransport \ |
| 999 | libhidlmemory \ |
| 1000 | libdl \ |
| 1001 | libhardware \ |
| 1002 | liblog \ |
| 1003 | libtextclassifier_hash \ |
| 1004 | libutils \ |
| 1005 | libnativewindow \ |
| 1006 | libui \ |
| 1007 | libfmq \ |
| 1008 | libcutils \ |
Sadik Armagan | d7be72e | 2020-04-23 12:56:05 +0100 | [diff] [blame] | 1009 | libsync \ |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 1010 | android.hidl.allocator@1.0 \ |
| 1011 | android.hidl.memory@1.0 \ |
| 1012 | android.hardware.neuralnetworks@1.0 \ |
| 1013 | android.hardware.neuralnetworks@1.1 \ |
| 1014 | android.hardware.neuralnetworks@1.2 \ |
Zingo Andersen | f65b266 | 2021-10-27 07:04:11 +0200 | [diff] [blame] | 1015 | android.hardware.neuralnetworks@1.3 \ |
| 1016 | $(ARMNN_BACKEND_SHARED_LIBRARIES) |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 1017 | |
alered01 | 7c395b2 | 2020-04-03 15:37:24 +0100 | [diff] [blame] | 1018 | ifeq ($(ARMNN_INCLUDE_LIBOPENCL),1) |
Kevin May | 42477c1 | 2020-03-26 13:34:14 +0000 | [diff] [blame] | 1019 | LOCAL_SHARED_LIBRARIES+= \ |
| 1020 | libOpenCL |
| 1021 | endif |
| 1022 | |
| 1023 | include $(BUILD_EXECUTABLE) |
| 1024 | |
| 1025 | endif # PLATFORM_VERSION == R |
| 1026 | |
Mike Kelly | 0e41513 | 2020-02-11 11:21:25 +0000 | [diff] [blame] | 1027 | ########################## |
| 1028 | # armnn module and tests # |
| 1029 | ########################## |
| 1030 | # Note we use ANDROID_NN_DRIVER_LOCAL_PATH rather than LOCAL_PATH because LOCAL_PATH will be overwritten |
| 1031 | # when including other .mk files that set it. |
| 1032 | include $(ANDROID_NN_DRIVER_LOCAL_PATH)/armnn/Android.mk |
| 1033 | include $(ANDROID_NN_DRIVER_LOCAL_PATH)/test/Android.mk |