Blacklisting for projects which do not work with SDL2
This commit is contained in:
@@ -17,7 +17,7 @@ NDK_SUBDIR_MAKEFILES_FULL := $(call all-subdir-makefiles)
|
||||
# If you want to exclude certain subprojects from the build process.
|
||||
# v.g.: SDL2_image already brings it's own implementation of png, so we exclude the bundled one
|
||||
ifeq ($(SDL_VERSION),2.0)
|
||||
BLACKLISTED_SUBPROJECTS := jpeg png ogg mpg123 timidity
|
||||
BLACKLISTED_SUBPROJECTS := jpeg png ogg mpg123 timidity fluidsynth faad openal sdl_blitpool sdl_gfx sdl_image sdl_main sdl_mixer sdl_net sdl_sound sdl_ttf zzip
|
||||
else
|
||||
BLACKLISTED_SUBPROJECTS := sdl2_image
|
||||
endif
|
||||
|
||||
@@ -45,10 +45,15 @@ ifneq ($(APPLICATION_CUSTOM_BUILD_SCRIPT),)
|
||||
LOCAL_SRC_FILES := dummy.c
|
||||
endif
|
||||
|
||||
ifeq ($(SDL_VERSION),2.0)
|
||||
LOCAL_SHARED_LIBRARIES := SDL2 $(filter-out $(APP_AVAILABLE_STATIC_LIBS), $(COMPILED_LIBRARIES))
|
||||
else
|
||||
LOCAL_SHARED_LIBRARIES := sdl-$(SDL_VERSION) $(filter-out $(APP_AVAILABLE_STATIC_LIBS), $(COMPILED_LIBRARIES))
|
||||
endif
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := $(filter $(APP_AVAILABLE_STATIC_LIBS), $(COMPILED_LIBRARIES))
|
||||
|
||||
|
||||
LOCAL_LDLIBS := $(APPLICATION_GLES_LIBRARY) -ldl -llog -lz
|
||||
|
||||
LOCAL_LDFLAGS := -Lobj/local/$(TARGET_ARCH_ABI)
|
||||
|
||||
Reference in New Issue
Block a user