1# Copyright (C) 2022 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16HOST_LIB_NAME := ssl
17
18BORINGSSL_DIR := $(TRUSTY_TOP)/external/boringssl
19
20HOST_ARCH := $(shell uname -m)
21ifneq ($(HOST_ARCH),x86_64)
22$(error Unsupported host architecture: $(HOST_ARCH), expected x86_64)
23endif
24
25include $(BORINGSSL_DIR)/sources.mk
26HOST_LIB_SRCS := \
27	$(addprefix external/boringssl/,$(crypto_sources)) \
28	$(addprefix external/boringssl/,$(crypto_sources_asm)) \
29
30HOST_INCLUDE_DIRS += \
31	external/boringssl/src/include \
32
33include make/host_lib.mk
34
35HOST_ARCH :=