diff options
author | Dan Willemsen <dwillemsen@google.com> | 2015-09-03 18:56:42 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-09-03 18:56:42 +0000 |
commit | 0267d647a4d272af8b9e7c91063d374f7e2775bb (patch) | |
tree | dc62c249d595198e0d99e43890019d21e901fbec | |
parent | b1a38160d06829e95ab8f2816b823db90696255f (diff) | |
parent | 4ca36931e543512682d75e8e6d923144261dfd4d (diff) | |
download | external_boringssl-0267d647a4d272af8b9e7c91063d374f7e2775bb.zip external_boringssl-0267d647a4d272af8b9e7c91063d374f7e2775bb.tar.gz external_boringssl-0267d647a4d272af8b9e7c91063d374f7e2775bb.tar.bz2 |
am 4ca36931: am 08656b61: Whitelist windows modules
* commit '4ca36931e543512682d75e8e6d923144261dfd4d':
Whitelist windows modules
-rw-r--r-- | Android.mk | 15 | ||||
-rw-r--r-- | crypto-sources.mk | 13 |
2 files changed, 15 insertions, 13 deletions
@@ -49,30 +49,29 @@ include $(BUILD_EXECUTABLE) # Host static library include $(CLEAR_VARS) -LOCAL_MODULE_TAGS := optional +LOCAL_IS_HOST_MODULE := true LOCAL_MODULE := libcrypto_static +LOCAL_MODULE_HOST_OS := darwin linux windows LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/src/include LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk $(LOCAL_PATH)/crypto-sources.mk LOCAL_CFLAGS = -Wno-unused-parameter # Windows and Macs both have problems with assembly files -ifneq ($(HOST_OS),linux) -LOCAL_CFLAGS += -DOPENSSL_NO_ASM -endif +LOCAL_CFLAGS_darwin += -DOPENSSL_NO_ASM +LOCAL_CFLAGS_windows += -DOPENSSL_NO_ASM include $(LOCAL_PATH)/crypto-sources.mk include $(BUILD_HOST_STATIC_LIBRARY) # Host shared library include $(CLEAR_VARS) -LOCAL_MODULE_TAGS := optional +LOCAL_IS_HOST_MODULE := true LOCAL_MODULE := libcrypto-host LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include LOCAL_MULTILIB := both LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk $(LOCAL_PATH)/crypto-sources.mk LOCAL_CFLAGS += -fvisibility=hidden -DBORINGSSL_SHARED_LIBRARY -DBORINGSSL_IMPLEMENTATION -Wno-unused-parameter # Windows and Macs both have problems with assembly files -ifneq ($(HOST_OS),linux) -LOCAL_CFLAGS += -DOPENSSL_NO_ASM -endif +LOCAL_CFLAGS_darwin += -DOPENSSL_NO_ASM +LOCAL_CFLAGS_windows += -DOPENSSL_NO_ASM include $(LOCAL_PATH)/crypto-sources.mk include $(BUILD_HOST_SHARED_LIBRARY) 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) |