blob: e02c7855816d4b7f14c66663688422d9a4dbaa4f [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 Flynn9c85b412022-03-16 00:27:43 +000013 LabelsAndEventClasses.cpp
Jim Flynn6c9f17d2022-03-10 23:13:01 +000014 Logging.cpp
Jim Flynnbbfe6032020-07-20 16:57:44 +010015 NetworkSockets.cpp
16 PacketVersionResolver.cpp
Jim Flynn77b284e2022-03-13 20:53:35 +000017 Processes.cpp
Nikhil Raj77fe76b2021-06-09 14:55:32 +010018 SwTrace.cpp
Jim Flynn9c85b412022-03-16 00:27:43 +000019 Threads.cpp)
Jim Flynnbbfe6032020-07-20 16:57:44 +010020
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 Hughesc013bc82021-07-14 09:31:31 +010034 target_compile_definitions(pipeCommon PRIVATE "ARMNN_COMPILING_DLL")
35
Derek Lambertieac4adb2020-08-25 13:05:59 +010036 # 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 Flynnbbfe6032020-07-20 16:57:44 +010043endif()