Skip to content

Commit

Permalink
Prepare for Crypto++ 8.2 tag
Browse files Browse the repository at this point in the history
  • Loading branch information
noloader committed Feb 6, 2021
1 parent 1810dc0 commit 63d2ec0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,13 @@ ifeq ($(TARGET_ARCH),arm64)
endif

ifeq ($(TARGET_ARCH),x86)
CRYPTOPP_LIB_FILES := $(filter-out %avx.cpp,$(CRYPTOPP_LIB_FILES))
CRYPTOPP_LIB_FILES := $(filter-out neon_simd.cpp,$(CRYPTOPP_LIB_FILES))
CRYPTOPP_LIB_FILES := $(filter-out donna_64.cpp,$(CRYPTOPP_LIB_FILES))
endif

ifeq ($(TARGET_ARCH),x86_64)
CRYPTOPP_LIB_FILES := $(filter-out %avx.cpp,$(CRYPTOPP_LIB_FILES))
CRYPTOPP_LIB_FILES := $(filter-out neon_simd.cpp,$(CRYPTOPP_LIB_FILES))
CRYPTOPP_LIB_FILES := $(filter-out donna_32.cpp,$(CRYPTOPP_LIB_FILES))
endif
Expand All @@ -138,6 +140,14 @@ LOCAL_CPPFLAGS := -Wall
LOCAL_CPP_FEATURES := rtti exceptions
LOCAL_LDFLAGS := -Wl,--exclude-libs,ALL -Wl,--as-needed

# Intel machines and AVX2
ifeq ($(TARGET_ARCH),x86)
LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS) -DCRYPTOPP_DISABLE_AVX2
endif
ifeq ($(TARGET_ARCH),x86_64)
LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS) -DCRYPTOPP_DISABLE_AVX2
endif

LOCAL_EXPORT_CFLAGS := $(LOCAL_CFLAGS)
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/..

Expand All @@ -154,6 +164,14 @@ LOCAL_SRC_FILES := $(addprefix $(CRYPTOPP_PATH),$(CRYPTOPP_LIB_FILES))
LOCAL_CPPFLAGS := -Wall
LOCAL_CPP_FEATURES := rtti exceptions

# Intel machines and AVX2
ifeq ($(TARGET_ARCH),x86)
LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS) -DCRYPTOPP_DISABLE_AVX2
endif
ifeq ($(TARGET_ARCH),x86_64)
LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS) -DCRYPTOPP_DISABLE_AVX2
endif

LOCAL_EXPORT_CFLAGS := $(LOCAL_CFLAGS)
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/..

Expand Down

0 comments on commit 63d2ec0

Please sign in to comment.