Add support library compabibility layer This change provides a new "libneuralnetworks_cl" static library that contains a version of the NNAPI runtime wihout non-NDK dependencies. Vendors can link against this library to create support library drivers. This change introduces new preprocessor symbols: - NN_COMPATIBILITY_LIBRARY_BUILD - NN_NO_AHWB - NN_NO_BURST The last two temporarily limit corresponding runtime features and should be removed by later changes. If NN_COMPATIBILITY_LIBRARY_BUILD is defined, then NN_NO_AHWB and NN_NO_BURST should be defined and NN_INCLUDE_CPU_IMPLEMENTATION should be undefined. Bug: 160667944 Bug: 170289677 Test: NNT_static Change-Id: I5685d0e46dc9461d62815f61dddd5fc7aedf3762 Merged-In: I5685d0e46dc9461d62815f61dddd5fc7aedf3762 (cherry picked from commit 8c4917bbc4c123778d9c4d0b9a5df79897fc4051)
diff --git a/common/OperationsUtils.cpp b/common/OperationsUtils.cpp index c5a71e9..dfd2f3b 100644 --- a/common/OperationsUtils.cpp +++ b/common/OperationsUtils.cpp
@@ -24,8 +24,8 @@ #include <sstream> #include <vector> +#include "LegacyUtils.h" #include "Operations.h" -#include "Utils.h" namespace android { namespace nn {