From 71a0705e8fc5c39ca5b1daa512ef90c37246a76f Mon Sep 17 00:00:00 2001 From: Narayan Kamath Date: Wed, 24 Jun 2015 10:35:36 +0100 Subject: Add a build target to build bssl for host. Change-Id: I22c079a2486acc2aa68c4b99f026bbdcbea9d4ff --- Android.mk | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Android.mk b/Android.mk index 66f6033..0315cfc 100644 --- a/Android.mk +++ b/Android.mk @@ -120,6 +120,23 @@ LOCAL_CFLAGS = -Wno-unused-parameter include $(LOCAL_PATH)/ssl-sources.mk include $(BUILD_HOST_STATIC_LIBRARY) +# Host static tool (for linux only). +ifeq ($(HOST_OS), linux) +include $(CLEAR_VARS) +LOCAL_CFLAGS += -Wall -Werror -std=c++0x +LOCAL_CPP_EXTENSION := cc +LOCAL_MODULE := bssl +LOCAL_MODULE_TAGS := optional +LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk $(LOCAL_PATH)/sources.mk +LOCAL_CFLAGS = -Wno-unused-parameter +LOCAL_SHARED_LIBRARIES=libcrypto-host libssl-host +# Needed for clock_gettime. +LOCAL_LDFLAGS := -lrt +include $(LOCAL_PATH)/sources.mk +LOCAL_SRC_FILES = $(tool_sources) +include $(BUILD_HOST_EXECUTABLE) +endif # HOST_OS == linux + # Host shared library include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional -- cgit v1.1