diff options
author | Balint Dobszay <balint.dobszay@arm.com> | 2021-05-26 11:13:00 +0200 |
---|---|---|
committer | György Szing <gyorgy.szing@arm.com> | 2021-11-29 17:12:40 +0100 |
commit | b22916ec01934d7ac4482f9600113c5040e03d1d (patch) | |
tree | a364ad2a1130e074de22120fb1bd8d42cd6d7aec | |
parent | 384fc50dd83b903039b498e52cd7077cd99510bb (diff) | |
download | trusted-services-b22916ec01934d7ac4482f9600113c5040e03d1d.tar.gz |
Add version number for libts
Read version number from file and apply to libts using the appropriate
CMake properties. The version number represents the API version of
libts and must be used according to the Semantic Versioning
specification (https://semver.org).
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
Change-Id: I09b12d71a95c874162be8ffee3b1b51a020725e4
-rw-r--r-- | deployments/libts/libts.cmake | 13 | ||||
-rw-r--r-- | deployments/libts/version.txt | 1 |
2 files changed, 13 insertions, 1 deletions
diff --git a/deployments/libts/libts.cmake b/deployments/libts/libts.cmake index d07e25c0f..6463ca174 100644 --- a/deployments/libts/libts.cmake +++ b/deployments/libts/libts.cmake @@ -1,5 +1,5 @@ #------------------------------------------------------------------------------- -# Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. +# Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # @@ -12,6 +12,17 @@ #------------------------------------------------------------------------------- #------------------------------------------------------------------------------- +# Common API version implemented by all libts deployments +#------------------------------------------------------------------------------- +version_semver_read(FILE "${CMAKE_CURRENT_LIST_DIR}/version.txt" + MAJOR _major MINOR _minor PATCH _patch) +set_target_properties(ts PROPERTIES VERSION "${_major}.${_minor}.${_patch}") +set_target_properties(ts PROPERTIES SOVERSION "${_major}") +unset(_major) +unset(_minor) +unset(_patch) + +#------------------------------------------------------------------------------- # Components that are common accross all deployments # #------------------------------------------------------------------------------- diff --git a/deployments/libts/version.txt b/deployments/libts/version.txt new file mode 100644 index 000000000..afaf360d3 --- /dev/null +++ b/deployments/libts/version.txt @@ -0,0 +1 @@ +1.0.0
\ No newline at end of file |