blob: ab512d6c11bd9ba6052a96f3d56d78ab6f024fe0 [file] [log] [blame]
Julian Hallb1d5d5f2020-11-23 18:23:48 +01001#-------------------------------------------------------------------------------
2# Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
3#
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
30 "components/rpc/ffarpc/caller/linux"
31 "components/service/locator/linux"
32 "components/service/locator/linux/ffa"
33 "components/common/uuid"
34)
35
36#-------------------------------------------------------------------------------
37# Extend with components that are common across all deployments of
38# libts
39#
40#-------------------------------------------------------------------------------
41include(../libts.cmake REQUIRED)
42
43#-------------------------------------------------------------------------------
44# Define library options and dependencies.
45#
46#-------------------------------------------------------------------------------
47env_set_link_options(TGT ts)
48target_link_libraries(ts PRIVATE gcc)