diff options
Diffstat (limited to 'third_party/boringssl/boringssl-toolchain.cmake')
-rw-r--r-- | third_party/boringssl/boringssl-toolchain.cmake | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/third_party/boringssl/boringssl-toolchain.cmake b/third_party/boringssl/boringssl-toolchain.cmake new file mode 100644 index 0000000000..574ae5602e --- /dev/null +++ b/third_party/boringssl/boringssl-toolchain.cmake @@ -0,0 +1,18 @@ +# Copyright 2023 The ChromiumOS Authors +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +set(CMAKE_BUILD_TYPE Release) + +# TODO(b/273639386): Remove these workarounds when the upstream supports +# better way to disable the filesystem, threads and locks usages. +set(CMAKE_SYSTEM_NAME Linux) + +set(CMAKE_TRY_COMPILE_PLATFORM_VARIABLES CROS_EC_REPO CROSS_COMPILE CC_NAME CXX_NAME) +include("${CROS_EC_REPO}/cmake/toolchain-common.cmake") + +# Pretend as "Trusty", an embedded platform. +# TODO(b/273639386): Remove these workarounds when the upstream supports +# better way to disable the filesystem, threads and locks usages. +add_definitions(-D__TRUSTY__) +set(ANDROID TRUE) |