xref: /aosp_15_r20/external/armnn/src/backends/backendsCommon/common.mk (revision 89c4ff92f2867872bb9e2354d150bf0c8c502810)
1#
2# Copyright © 2017-2023 ARM Ltd and Contributors. All rights reserved.
3# SPDX-License-Identifier: MIT
4#
5
6# COMMON_SOURCES contains the list of files to be included
7# in the Android build and it is picked up by the Android.mk
8# file in the root of ArmNN
9
10COMMON_SOURCES := \
11    TensorHandle.cpp \
12    DynamicBackend.cpp \
13    DynamicBackendUtils.cpp \
14    IBackendInternal.cpp \
15    ITensorHandleFactory.cpp \
16    LayerSupportBase.cpp \
17    MapWorkload.cpp \
18    MemCopyWorkload.cpp \
19    MemImportWorkload.cpp \
20    MemoryManager.cpp \
21    MemSyncWorkload.cpp \
22    OptimizationViews.cpp \
23    TensorHandleFactoryRegistry.cpp \
24    UnmapWorkload.cpp \
25    WorkloadData.cpp \
26    WorkloadFactory.cpp \
27    WorkloadUtils.cpp \
28    memoryOptimizerStrategyLibrary/strategies/ConstantMemoryStrategy.cpp \
29	memoryOptimizerStrategyLibrary/strategies/SingleAxisPriorityList.cpp \
30    memoryOptimizerStrategyLibrary/strategies/StrategyValidator.cpp
31
32
33# COMMON_TEST_SOURCES contains the list of files to be included
34# in the Android unit test build (armnn-tests) and it is picked
35# up by the Android.mk file in the root of ArmNN
36
37COMMON_TEST_SOURCES := \
38    test/CustomMemoryOptimizerStrategyTests.cpp \
39    test/InstanceNormalizationEndToEndTestImpl.cpp \
40    test/JsonPrinterTestImpl.cpp \
41    test/LogSoftmaxEndToEndTestImpl.cpp \
42    test/QLstmEndToEndTestImpl.cpp \
43    test/QuantizedLstmEndToEndTestImpl.cpp \
44    test/SpaceToDepthEndToEndTestImpl.cpp \
45    test/layerTests/AbsTestImpl.cpp \
46    test/layerTests/ActivationTestImpl.cpp \
47    test/layerTests/AdditionTestImpl.cpp \
48    test/layerTests/ArgMinMaxTestImpl.cpp \
49    test/layerTests/BatchMatMulTestImpl.cpp \
50    test/layerTests/BatchNormalizationTestImpl.cpp \
51    test/layerTests/CastTestImpl.cpp \
52    test/layerTests/ChannelShuffleTestImpl.cpp \
53    test/layerTests/ComparisonTestImpl.cpp \
54    test/layerTests/ConcatTestImpl.cpp \
55    test/layerTests/ConstantTestImpl.cpp \
56    test/layerTests/Conv2dTestImpl.cpp \
57    test/layerTests/Conv3dTestImpl.cpp \
58    test/layerTests/ConvertFp16ToFp32TestImpl.cpp \
59    test/layerTests/ConvertFp32ToFp16TestImpl.cpp \
60    test/layerTests/DebugTestImpl.cpp \
61    test/layerTests/DepthToSpaceTestImpl.cpp \
62    test/layerTests/DequantizeTestImpl.cpp \
63    test/layerTests/DivisionTestImpl.cpp \
64    test/layerTests/ElementwiseUnaryTestImpl.cpp \
65    test/layerTests/ExpTestImpl.cpp \
66    test/layerTests/FakeQuantizationTestImpl.cpp \
67    test/layerTests/FillTestImpl.cpp \
68    test/layerTests/FloorTestImpl.cpp \
69    test/layerTests/FullyConnectedTestImpl.cpp \
70    test/layerTests/GatherNdTestImpl.cpp \
71    test/layerTests/GatherTestImpl.cpp \
72    test/layerTests/InstanceNormalizationTestImpl.cpp \
73    test/layerTests/L2NormalizationTestImpl.cpp \
74    test/layerTests/LogTestImpl.cpp \
75    test/layerTests/LogicalTestImpl.cpp \
76    test/layerTests/LogSoftmaxTestImpl.cpp \
77    test/layerTests/LstmTestImpl.cpp \
78    test/layerTests/MaximumTestImpl.cpp \
79    test/layerTests/MinimumTestImpl.cpp \
80    test/layerTests/MirrorPadTestImpl.cpp \
81    test/layerTests/MultiplicationTestImpl.cpp \
82    test/layerTests/NegTestImpl.cpp \
83    test/layerTests/NormalizationTestImpl.cpp \
84    test/layerTests/PadTestImpl.cpp \
85    test/layerTests/Pooling2dTestImpl.cpp \
86    test/layerTests/Pooling3dTestImpl.cpp \
87    test/layerTests/RankTestImpl.cpp \
88    test/layerTests/ReductionTestImpl.cpp \
89    test/layerTests/ReduceProdTestImpl.cpp \
90    test/layerTests/ReduceSumTestImpl.cpp \
91    test/layerTests/ReshapeTestImpl.cpp \
92    test/layerTests/ResizeTestImpl.cpp \
93    test/layerTests/RsqrtTestImpl.cpp \
94    test/layerTests/SliceTestImpl.cpp \
95    test/layerTests/QuantizeTestImpl.cpp \
96    test/layerTests/SinTestImpl.cpp \
97    test/layerTests/ShapeTestImpl.cpp \
98    test/layerTests/SoftmaxTestImpl.cpp \
99    test/layerTests/SpaceToBatchNdTestImpl.cpp \
100    test/layerTests/SpaceToDepthTestImpl.cpp \
101    test/layerTests/SplitterTestImpl.cpp \
102    test/layerTests/SqrtTestImpl.cpp \
103    test/layerTests/StackTestImpl.cpp \
104    test/layerTests/StridedSliceTestImpl.cpp \
105    test/layerTests/SubtractionTestImpl.cpp \
106    test/layerTests/TransposeConvolution2dTestImpl.cpp \
107    test/layerTests/UnidirectionalSequenceLstmTestImpl.cpp \
108    memoryOptimizerStrategyLibrary/test/ConstMemoryStrategyTests.cpp \
109    memoryOptimizerStrategyLibrary/test/ValidatorStrategyTests.cpp \
110    memoryOptimizerStrategyLibrary/test/SingleAxisPriorityListTests.cpp
111
112ifeq ($(ARMNN_REF_ENABLED),1)
113COMMON_TEST_SOURCES += \
114    test/WorkloadDataValidation.cpp
115endif # ARMNN_REF_ENABLED == 1
116