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 |
| 13 | NetworkSockets.cpp |
| 14 | PacketVersionResolver.cpp |
Nikhil Raj | 77fe76b | 2021-06-09 14:55:32 +0100 | [diff] [blame] | 15 | SwTrace.cpp |
| 16 | LabelsAndEventClasses.cpp) |
Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 17 | |
| 18 | include_directories(${PROJECT_SOURCE_DIR}/profiling/common/include) |
| 19 | include_directories(${PROJECT_SOURCE_DIR}/common/include) |
| 20 | |
| 21 | if(BUILD_UNIT_TESTS) |
| 22 | include_directories(${PROJECT_SOURCE_DIR}/src/profiling |
| 23 | ${PROJECT_SOURCE_DIR}/src/armnnUtils) |
| 24 | target_include_directories(UnitTests PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
| 25 | endif() |
| 26 | |
| 27 | # will only build a static version of this common code |
| 28 | # to simplify the build. No extra .so file to deploy to boards etc. |
| 29 | add_library_ex(pipeCommon STATIC ${pipeCommon_sources}) |
| 30 | |
Rob Hughes | c013bc8 | 2021-07-14 09:31:31 +0100 | [diff] [blame] | 31 | target_compile_definitions(pipeCommon PRIVATE "ARMNN_COMPILING_DLL") |
| 32 | |
Derek Lamberti | eac4adb | 2020-08-25 13:05:59 +0100 | [diff] [blame] | 33 | # install the target |
| 34 | install( |
| 35 | TARGETS pipeCommon |
| 36 | EXPORT armnn-targets |
| 37 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 38 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 39 | ) |
Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 40 | endif() |