blob: 3932186c51b501022a17cd526554ac212eed999f [file] [log] [blame]
Jim Flynnbbfe6032020-07-20 16:57:44 +01001#
2# Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3# SPDX-License-Identifier: MIT
4#
5
6if(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 Flynn6c9f17d2022-03-10 23:13:01 +000013 Logging.cpp
Jim Flynnbbfe6032020-07-20 16:57:44 +010014 NetworkSockets.cpp
15 PacketVersionResolver.cpp
Jim Flynn77b284e2022-03-13 20:53:35 +000016 Processes.cpp
Nikhil Raj77fe76b2021-06-09 14:55:32 +010017 SwTrace.cpp
18 LabelsAndEventClasses.cpp)
Jim Flynnbbfe6032020-07-20 16:57:44 +010019
20 include_directories(${PROJECT_SOURCE_DIR}/profiling/common/include)
21 include_directories(${PROJECT_SOURCE_DIR}/common/include)
22
23 if(BUILD_UNIT_TESTS)
24 include_directories(${PROJECT_SOURCE_DIR}/src/profiling
25 ${PROJECT_SOURCE_DIR}/src/armnnUtils)
26 target_include_directories(UnitTests PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include)
27 endif()
28
29 # will only build a static version of this common code
30 # to simplify the build. No extra .so file to deploy to boards etc.
31 add_library_ex(pipeCommon STATIC ${pipeCommon_sources})
32
Rob Hughesc013bc82021-07-14 09:31:31 +010033 target_compile_definitions(pipeCommon PRIVATE "ARMNN_COMPILING_DLL")
34
Derek Lambertieac4adb2020-08-25 13:05:59 +010035 # install the target
36 install(
37 TARGETS pipeCommon
38 EXPORT armnn-targets
39 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
40 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
41 )
Jim Flynnbbfe6032020-07-20 16:57:44 +010042endif()