Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright © 2020 Arm Ltd and Contributors. All rights reserved. |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | # |
| 5 | |
| 6 | if(BUILD_TIMELINE_DECODER) |
| 7 | set(pipeCommon_sources) |
| 8 | list(APPEND pipeCommon_sources |
| 9 | CommandHandlerFunctor.cpp |
| 10 | CommandHandlerKey.cpp |
| 11 | CommandHandlerRegistry.cpp |
| 12 | CommonProfilingUtils.cpp |
Jim Flynn | 9c85b41 | 2022-03-16 00:27:43 +0000 | [diff] [blame^] | 13 | LabelsAndEventClasses.cpp |
Jim Flynn | 6c9f17d | 2022-03-10 23:13:01 +0000 | [diff] [blame] | 14 | Logging.cpp |
Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 15 | NetworkSockets.cpp |
| 16 | PacketVersionResolver.cpp |
Jim Flynn | 77b284e | 2022-03-13 20:53:35 +0000 | [diff] [blame] | 17 | Processes.cpp |
Nikhil Raj | 77fe76b | 2021-06-09 14:55:32 +0100 | [diff] [blame] | 18 | SwTrace.cpp |
Jim Flynn | 9c85b41 | 2022-03-16 00:27:43 +0000 | [diff] [blame^] | 19 | Threads.cpp) |
Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 20 | |
| 21 | include_directories(${PROJECT_SOURCE_DIR}/profiling/common/include) |
| 22 | include_directories(${PROJECT_SOURCE_DIR}/common/include) |
| 23 | |
| 24 | if(BUILD_UNIT_TESTS) |
| 25 | include_directories(${PROJECT_SOURCE_DIR}/src/profiling |
| 26 | ${PROJECT_SOURCE_DIR}/src/armnnUtils) |
| 27 | target_include_directories(UnitTests PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
| 28 | endif() |
| 29 | |
| 30 | # will only build a static version of this common code |
| 31 | # to simplify the build. No extra .so file to deploy to boards etc. |
| 32 | add_library_ex(pipeCommon STATIC ${pipeCommon_sources}) |
| 33 | |
Rob Hughes | c013bc8 | 2021-07-14 09:31:31 +0100 | [diff] [blame] | 34 | target_compile_definitions(pipeCommon PRIVATE "ARMNN_COMPILING_DLL") |
| 35 | |
Derek Lamberti | eac4adb | 2020-08-25 13:05:59 +0100 | [diff] [blame] | 36 | # install the target |
| 37 | install( |
| 38 | TARGETS pipeCommon |
| 39 | EXPORT armnn-targets |
| 40 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 41 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 42 | ) |
Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 43 | endif() |