SDL: do not build prebuilt libs if they are not used by the app

This commit is contained in:
Sergii Pylypenko
2018-10-11 17:28:41 +03:00
parent de301f6c59
commit 51790527e9
12 changed files with 54 additions and 27 deletions

View File

@@ -1,6 +1,11 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := vncserver
# Hide vncserver from the project if openssl is not compiled
ifneq ($(filter ssl, $(APP_MODULES)),)
LIBVNCSERVER_ROOT:=src
LIBVNCSERVER_SRC_FILES:= \
@@ -59,6 +64,6 @@ LOCAL_C_INCLUDES += include
LOCAL_STATIC_LIBRARIES := jpeg png ssl crypto
LOCAL_MODULE := vncserver
include $(BUILD_SHARED_LIBRARY)
endif