blob: b85a5d55703f651e10fd40a30cd3623ac1092d4f [file] [log] [blame]
Julian Hallb1d5d5f2020-11-23 18:23:48 +01001#-------------------------------------------------------------------------------
Julian Hallf7d55ff2021-11-22 13:57:54 +00002# Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
Julian Hallb1d5d5f2020-11-23 18:23:48 +01003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7cmake_minimum_required(VERSION 3.16)
8include(../../deployment.cmake REQUIRED)
9
10#-------------------------------------------------------------------------------
11# The CMakeLists.txt for building the libts deployment for arm-linux
12#
13# Used for building the libts library for the arm-linux enviroment. Used for
14# locating and accessing services from a Linux userspace client. Service
15# instances can be located in any supported secure processing enviroment.
16#-------------------------------------------------------------------------------
17include(${TS_ROOT}/environments/arm-linux/env_shared_lib.cmake)
18project(trusted-services LANGUAGES CXX C)
19add_library(ts SHARED)
20target_include_directories(ts PRIVATE "${TOP_LEVEL_INCLUDE_DIRS}")
21
22#-------------------------------------------------------------------------------
23# Components that are specific to deployment in the arm-linux environment.
24#
25#-------------------------------------------------------------------------------
26add_components(
27 TARGET "ts"
28 BASE_DIR ${TS_ROOT}
29 COMPONENTS
Julian Hallf7d55ff2021-11-22 13:57:54 +000030 "components/common/utils"
Julian Hallb1d5d5f2020-11-23 18:23:48 +010031 "components/rpc/ffarpc/caller/linux"
Julian Hallf7d55ff2021-11-22 13:57:54 +000032 "components/rpc/mm_communicate/caller/linux"
Julian Hallb1d5d5f2020-11-23 18:23:48 +010033 "components/service/locator/linux"
34 "components/service/locator/linux/ffa"
35 "components/common/uuid"
36)
37
38#-------------------------------------------------------------------------------
39# Extend with components that are common across all deployments of
40# libts
41#
42#-------------------------------------------------------------------------------
43include(../libts.cmake REQUIRED)
44
45#-------------------------------------------------------------------------------
46# Define library options and dependencies.
47#
48#-------------------------------------------------------------------------------
49env_set_link_options(TGT ts)
Julian Hallf7d55ff2021-11-22 13:57:54 +000050target_link_libraries(ts PRIVATE gcc)