blob: 1b47b6cf73516e68000832214b1ead40031338dc [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
Nikhil Raj77fe76b2021-06-09 14:55:32 +010016 SwTrace.cpp
17 LabelsAndEventClasses.cpp)
Jim Flynnbbfe6032020-07-20 16:57:44 +010018
19 include_directories(${PROJECT_SOURCE_DIR}/profiling/common/include)
20 include_directories(${PROJECT_SOURCE_DIR}/common/include)
21
22 if(BUILD_UNIT_TESTS)
23 include_directories(${PROJECT_SOURCE_DIR}/src/profiling
24 ${PROJECT_SOURCE_DIR}/src/armnnUtils)
25 target_include_directories(UnitTests PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include)
26 endif()
27
28 # will only build a static version of this common code
29 # to simplify the build. No extra .so file to deploy to boards etc.
30 add_library_ex(pipeCommon STATIC ${pipeCommon_sources})
31
Rob Hughesc013bc82021-07-14 09:31:31 +010032 target_compile_definitions(pipeCommon PRIVATE "ARMNN_COMPILING_DLL")
33
Derek Lambertieac4adb2020-08-25 13:05:59 +010034 # install the target
35 install(
36 TARGETS pipeCommon
37 EXPORT armnn-targets
38 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
39 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
40 )
Jim Flynnbbfe6032020-07-20 16:57:44 +010041endif()