summaryrefslogtreecommitdiffstats
path: root/crypto-sources.mk
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2015-08-18 17:47:53 -0700
committerDan Willemsen <dwillemsen@google.com>2015-08-28 13:40:06 -0700
commit08656b61d075740bfb24ddcce65223146259fc02 (patch)
treedc62c249d595198e0d99e43890019d21e901fbec /crypto-sources.mk
parente25abed5ef1542dc435905e05597fe374382fbec (diff)
downloadexternal_boringssl-08656b61d075740bfb24ddcce65223146259fc02.zip
external_boringssl-08656b61d075740bfb24ddcce65223146259fc02.tar.gz
external_boringssl-08656b61d075740bfb24ddcce65223146259fc02.tar.bz2
Whitelist windows modules
And stop changing variables based on HOST_OS. Bug: 23566667 Change-Id: I3b3b2f0aef066eb224cb1fa6f2e9f32c32695711
Diffstat (limited to 'crypto-sources.mk')
-rw-r--r--crypto-sources.mk13
1 files changed, 8 insertions, 5 deletions
diff --git a/crypto-sources.mk b/crypto-sources.mk
index 78194f2..7d9319c 100644
--- a/crypto-sources.mk
+++ b/crypto-sources.mk
@@ -3,10 +3,13 @@ include $(LOCAL_PATH)/sources.mk
LOCAL_CFLAGS += -I$(LOCAL_PATH)/src/include -I$(LOCAL_PATH)/src/crypto -Wno-unused-parameter
# Do not add in the architecture-specific files if we don't want to build assembly
-ifeq (,$(filter -DOPENSSL_NO_ASM,$(LOCAL_CFLAGS)))
-LOCAL_SRC_FILES_x86 = $(linux_x86_sources)
-LOCAL_SRC_FILES_x86_64 = $(linux_x86_64_sources)
-LOCAL_SRC_FILES_arm = $(linux_arm_sources)
-LOCAL_SRC_FILES_arm64 = $(linux_aarch64_sources)
+ifeq ($(LOCAL_IS_HOST_MODULE),true)
+LOCAL_SRC_FILES_linux_x86 := $(linux_x86_sources)
+LOCAL_SRC_FILES_linux_x86_64 := $(linux_x86_64_sources)
+else
+LOCAL_SRC_FILES_x86 := $(linux_x86_sources)
+LOCAL_SRC_FILES_x86_64 := $(linux_x86_64_sources)
+LOCAL_SRC_FILES_arm := $(linux_arm_sources)
+LOCAL_SRC_FILES_arm64 := $(linux_aarch64_sources)
endif
LOCAL_SRC_FILES += $(crypto_sources)