summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2015-06-24 10:35:36 +0100
committerNarayan Kamath <narayan@google.com>2015-06-24 12:26:56 +0100
commit71a0705e8fc5c39ca5b1daa512ef90c37246a76f (patch)
tree480ed68c2a6e84148e6bfab04be9ad684d58ad63
parent0e6bb1c72014c26289d09f4deea9c25706be5824 (diff)
downloadexternal_boringssl-71a0705e8fc5c39ca5b1daa512ef90c37246a76f.zip
external_boringssl-71a0705e8fc5c39ca5b1daa512ef90c37246a76f.tar.gz
external_boringssl-71a0705e8fc5c39ca5b1daa512ef90c37246a76f.tar.bz2
Add a build target to build bssl for host.
Change-Id: I22c079a2486acc2aa68c4b99f026bbdcbea9d4ff
-rw-r--r--Android.mk17
1 files changed, 17 insertions, 0 deletions
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