blob: fdaa550924318705335c25b7be37a0aedebad278 [file] [log] [blame]
Gyorgy Szing386433f2023-03-31 12:52:25 +00001#-------------------------------------------------------------------------------
Imre Kisefadd3a2024-06-28 14:15:57 +02002# Copyright (c) 2023-2024, Arm Limited and Contributors. All rights reserved.
Gyorgy Szing386433f2023-03-31 12:52:25 +00003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6# Common components used for any deployment of the fwu service provider.
7#-------------------------------------------------------------------------------
8
9if (NOT DEFINED TGT)
10 message(FATAL_ERROR "Mandatory parameter TGT is not defined.")
11endif()
12
13#-------------------------------------------------------------------------------
14# Components common to all deployments
15#
16#-------------------------------------------------------------------------------
17add_components(TARGET ${TGT}
18 BASE_DIR ${TS_ROOT}
19 COMPONENTS
20 "components/app/fwu-tool"
21 "components/common/uuid"
22 "components/common/endian"
23 "components/media/disk/gpt_iterator"
24 "components/media/volume/index"
25 "components/service/common/include"
26 "components/service/fwu/agent"
Imre Kisefadd3a2024-06-28 14:15:57 +020027 "components/service/fwu/common"
Gyorgy Szing386433f2023-03-31 12:52:25 +000028 "components/service/fwu/config"
29 "components/service/fwu/config/gpt"
30 "components/service/fwu/fw_store/banked"
31 "components/service/fwu/fw_store/banked/metadata_serializer/v1"
32 "components/service/fwu/fw_store/banked/metadata_serializer/v2"
33 "components/service/fwu/installer"
34 "components/service/fwu/installer/raw"
35 "components/service/fwu/installer/copy"
36 "components/service/fwu/installer/factory/default"
37 "components/service/fwu/inspector/direct"
38)
39
40#################################################################
41
42target_include_directories(${TGT} PRIVATE
43 ${TS_ROOT}
44 ${TS_ROOT}/components
45)
46
47#-------------------------------------------------------------------------------
48# Define install content.
49#
50#-------------------------------------------------------------------------------
51if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
52 set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install CACHE PATH "location to install build output to." FORCE)
53endif()
54install(TARGETS ${TGT}
55 RUNTIME DESTINATION ${TS_ENV}/bin
56 PUBLIC_HEADER DESTINATION ${TS_ENV}/include)