Julian Hall | 8363287 | 2023-03-06 14:33:32 +0000 | [diff] [blame^] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2023, Arm Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | #------------------------------------------------------------------------------- |
| 9 | # The base build file shared between deployments of 'ts-fw-test'. Used for |
| 10 | # testing the fimware running on a separate DUT, exercised from test cases |
| 11 | # that run on a host machine. This test configuration is suitable for test |
| 12 | # scenarios that involve disruptive operations such as device restarts that |
| 13 | # preclude |
| 14 | #------------------------------------------------------------------------------- |
| 15 | |
| 16 | #------------------------------------------------------------------------------- |
| 17 | # Components that are common across all deployments |
| 18 | # |
| 19 | #------------------------------------------------------------------------------- |
| 20 | add_components( |
| 21 | TARGET "ts-fw-test" |
| 22 | BASE_DIR ${TS_ROOT} |
| 23 | COMPONENTS |
| 24 | "components/common/endian" |
| 25 | "components/common/trace" |
| 26 | "components/common/utils" |
| 27 | "components/common/uuid" |
| 28 | "components/rpc/common/interface" |
| 29 | "components/rpc/common/caller" |
| 30 | "components/rpc/http/caller" |
| 31 | "components/rpc/http/caller/test" |
| 32 | "components/service/common/client" |
| 33 | "components/service/common/include" |
| 34 | "components/service/locator" |
| 35 | "components/service/locator/interface" |
| 36 | "components/service/locator/remote/restapi" |
| 37 | "components/service/discovery/client" |
| 38 | "components/service/fwu/test/fwu_client/remote" |
| 39 | "components/service/fwu/test/fwu_dut" |
| 40 | "components/service/fwu/test/fwu_dut/proxy" |
| 41 | "components/service/fwu/test/fwu_dut_factory/remote" |
| 42 | "components/service/fwu/test/image_directory_checker" |
| 43 | "components/service/fwu/test/metadata_checker" |
| 44 | "components/service/fwu/test/metadata_fetcher/client" |
| 45 | ) |
| 46 | |
| 47 | #------------------------------------------------------------------------------- |
| 48 | # Installed package dependencies |
| 49 | # |
| 50 | #------------------------------------------------------------------------------- |
| 51 | |
| 52 | # Native CURL headers and libraries needed |
| 53 | find_package(CURL REQUIRED) |
| 54 | target_include_directories(ts-fw-test PRIVATE ${CURL_INCLUDE_DIR}) |
| 55 | target_link_libraries(ts-fw-test ${CURL_LIBRARIES}) |
| 56 | |
| 57 | #------------------------------------------------------------------------------- |
| 58 | # Define install content. |
| 59 | # |
| 60 | #------------------------------------------------------------------------------- |
| 61 | if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) |
| 62 | set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install CACHE PATH "location to install build output to." FORCE) |
| 63 | endif() |
| 64 | install(TARGETS ts-fw-test RUNTIME DESTINATION ${TS_ENV}/bin) |