Added building libaapt2_jni.so.

Change-Id: Ica2769c08b4bb5c6cceebb8052c0dd7817ef4586
This commit is contained in:
Paulo Casanova
2016-09-23 20:52:31 +01:00
parent 682ad3b4d3
commit c7ca55e27b

View File

@@ -77,6 +77,8 @@ sources := \
sources += Format.proto
sourcesJni :=
testSources := \
compile/IdAssigner_test.cpp \
compile/InlineXmlFormatParser_test.cpp \
@@ -176,6 +178,25 @@ LOCAL_STATIC_LIBRARIES := $(hostStaticLibs)
LOCAL_STATIC_LIBRARIES_windows := $(hostStaticLibs_windows)
include $(BUILD_HOST_STATIC_LIBRARY)
# ==========================================================
# Build the host shared library: libaapt2_jni
# ==========================================================
include $(CLEAR_VARS)
LOCAL_MODULE := libaapt2_jni
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_HOST_OS := darwin linux windows
LOCAL_CFLAGS := $(cFlags)
LOCAL_CFLAGS_darwin := $(cFlags_darwin)
LOCAL_CFLAGS_windows := $(cFlags_windows)
LOCAL_CPPFLAGS := $(cppFlags)
LOCAL_C_INCLUDES := $(protoIncludes)
LOCAL_SRC_FILES := $(sourcesJni)
LOCAL_STATIC_LIBRARIES := libaapt2 $(hostStaticLibs)
LOCAL_STATIC_LIBRARIES_windows := $(hostStaticLibs_windows)
include $(BUILD_HOST_SHARED_LIBRARY)
# ==========================================================
# Build the host tests: libaapt2_tests
# ==========================================================