1#------------------------------------------------------------------------------- 2# Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6#------------------------------------------------------------------------------- 7 8#------------------------------------------------------------------------------- 9# Environment file for shared library deployments to linux-pc. 10#------------------------------------------------------------------------------- 11set(TS_ENV "linux-pc" CACHE STRING "Environment identifier") 12 13if (CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows") 14 message(FATAL_ERROR "Building shared libraries is not yet working on Windows. Sorry!") 15endif() 16 17# Default to using the base toolcahin file for the enviroment 18set(TS_BASE_TOOLCHAIN_FILE "${CMAKE_CURRENT_LIST_DIR}/default_toolchain_file.cmake" CACHE STRING "Base toolchainfile") 19 20# Replicate in environment variable for access from child cmake contexts 21set(ENV{TS_BASE_TOOLCHAIN_FILE} "${TS_BASE_TOOLCHAIN_FILE}") 22 23# Set toolchain files to use 24set(CMAKE_TOOLCHAIN_FILE "${TS_ROOT}/tools/cmake/compiler/shared_lib_toolchain_file.cmake" CACHE STRING "Toolchain file") 25set(TS_EXTERNAL_LIB_TOOLCHAIN_FILE "${TS_ROOT}/tools/cmake/compiler/static_lib_toolchain_file.cmake" CACHE STRING "External lib Toolchain file") 26