summaryrefslogtreecommitdiffstats
path: root/NativeCode.mk
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2013-05-01 12:17:23 -0700
committerKenny Root <kroot@google.com>2013-05-02 15:30:46 -0700
commit20ec13bd54d56d6832ef2a02a02e65a5f0a304db (patch)
tree1a56917b7dac1c55ff5d49001701b6220752c10d /NativeCode.mk
parente2c689ab581762cab6fdb70951b50458a30be1ee (diff)
downloadlibcore-20ec13bd54d56d6832ef2a02a02e65a5f0a304db.zip
libcore-20ec13bd54d56d6832ef2a02a02e65a5f0a304db.tar.gz
libcore-20ec13bd54d56d6832ef2a02a02e65a5f0a304db.tar.bz2
NativeCrypto: build native library standalone
Change-Id: I678f5c1b985d72ab1d41ae22dfcae35814c44e85
Diffstat (limited to 'NativeCode.mk')
-rw-r--r--NativeCode.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/NativeCode.mk b/NativeCode.mk
index 5369453..638fb69 100644
--- a/NativeCode.mk
+++ b/NativeCode.mk
@@ -166,6 +166,21 @@ ifeq ($(WITH_HOST_DALVIK),true)
LOCAL_STATIC_LIBRARIES := $(core_static_libraries)
include $(BUILD_HOST_SHARED_LIBRARY)
+ # Conscrypt native library for nojarjar'd version
+ include $(CLEAR_VARS)
+ LOCAL_SRC_FILES := \
+ crypto/src/main/native/org_conscrypt_NativeCrypto.cpp \
+ luni/src/main/native/AsynchronousSocketCloseMonitor.cpp
+ LOCAL_C_INCLUDES := $(core_c_includes)
+ LOCAL_CPPFLAGS += $(core_cppflags)
+ LOCAL_LDLIBS += -lpthread
+ LOCAL_MODULE_TAGS := optional
+ LOCAL_MODULE := libconscrypt_jni
+ LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/NativeCode.mk
+ LOCAL_SHARED_LIBRARIES := $(core_shared_libraries) libssl libcrypto
+ LOCAL_STATIC_LIBRARIES := $(core_static_libraries)
+ include $(BUILD_HOST_SHARED_LIBRARY)
+
ifeq ($(LIBCORE_SKIP_TESTS),)
include $(CLEAR_VARS)
# Define the rules.