diff options
author | Jesse Wilson <jessewilson@google.com> | 2010-09-13 17:28:12 -0700 |
---|---|---|
committer | Jesse Wilson <jessewilson@google.com> | 2010-09-13 19:26:02 -0700 |
commit | 8436e1610cc0f5d2821b0235523be105f4f5e7e3 (patch) | |
tree | 7ae858b2dd34374425fc01084dc117d1a1d3609a | |
parent | 0d31ca0f54efe12f12049174bfa9403961654a92 (diff) | |
download | bouncycastle-8436e1610cc0f5d2821b0235523be105f4f5e7e3.tar.gz |
Make bouncycastle available to the host build.
Change-Id: Iaeac6c7642b0ab5cb337bd1a65fbfdc8a3cb564f
-rw-r--r-- | Android.mk | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -15,14 +15,17 @@ # LOCAL_PATH := $(call my-dir) +bouncycastle_src_files := $(call all-java-files-under,src/main/java) + include $(CLEAR_VARS) LOCAL_MODULE := bouncycastle -LOCAL_SRC_FILES := $(call all-java-files-under,src/main/java) +LOCAL_SRC_FILES := $(bouncycastle_src_files) LOCAL_JAVACFLAGS := -encoding UTF-8 LOCAL_JAVA_LIBRARIES := core LOCAL_NO_STANDARD_LIBRARIES := true include $(BUILD_JAVA_LIBRARY) +# This is used to generate a list of what is unused so it can be removed when bouncycastle is updated. # Based on "Finding dead code" example in ProGuard manual at http://proguard.sourceforge.net/ .PHONY: bouncycastle-proguard-deadcode bouncycastle-proguard-deadcode: $(full_classes_compiled_jar) $(full_java_libs) @@ -61,3 +64,14 @@ bouncycastle-proguard-deadcode: $(full_classes_compiled_jar) $(full_java_libs) -keepclassmembers "class * implements org.bouncycastle.crypto.paddings.BlockCipherPadding { \ public java.lang.String getPaddingName(); \ }" + +ifeq ($(WITH_HOST_DALVIK),true) + include $(CLEAR_VARS) + LOCAL_MODULE := bouncycastle-hostdex + LOCAL_SRC_FILES := $(bouncycastle_src_files) + LOCAL_JAVACFLAGS := -encoding UTF-8 + LOCAL_JAVA_LIBRARIES := core-hostdex + LOCAL_NO_STANDARD_LIBRARIES := true + LOCAL_BUILD_HOST_DEX := true + include $(BUILD_HOST_JAVA_LIBRARY) +endif |