ref: b815f3a977c83ccb1c2733b27bf6ab6612a7f6f5
parent: 59681be0a04a275daf5345274b61cebb6000f594
author: James Zern <[email protected]>
date: Wed Apr 8 17:03:36 EDT 2015
Android.mk: add a flag to control shared/static lib ndk-build ENABLE_SHARED=1 ... Change-Id: Idd64804b165d0d4bbfb0b242d6c4eee5e828dab4
--- a/build/make/Android.mk
+++ b/build/make/Android.mk
@@ -184,7 +184,11 @@
@$(RM) -r $(ASM_CNV_PATH)
@$(RM) $(CLEAN-OBJS)
-include $(BUILD_SHARED_LIBRARY)
+ifeq ($(ENABLE_SHARED),1)
+ include $(BUILD_SHARED_LIBRARY)
+else
+ include $(BUILD_STATIC_LIBRARY)
+endif
ifeq ($(CONFIG_RUNTIME_CPU_DETECT),yes)
$(call import-module,cpufeatures)