mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-12 18:45:33 -10:00
ZLIB_LIBS is never assigned anywhere, so every makefile target that set HAVE_ZLIB=1 compiled trans_stream_zlib.c and archive_file_zlib.c against <zlib.h> and then failed to link -- there is no longer a vendored implementation behind them. psl1ght hit this first; MSVC hit the compile-side variant once the compat/zlib headers went away. Take HAVE_ZLIB out of every platform. RetroArch decodes PNG with rpng, so the -lpng that pulled zlib in on vita and wiiu was only ever a convenience for statically linked cores, and android's -lz went with it. No target enables zlib by default any more: trans_stream_zlib.c is now reachable only through the explicit HAVE_ZLIB=1 opt-in in Makefile.common and its matching guard in griffin. psl1ght additionally drops freetype for stb font: libfreetype pulls inflate/inflateEnd in through ftgzip, which is the same undefined reference by another route. Also repair damage from the earlier -I removal, which deleted the last entry of several line-continued lists and left the preceding line with a trailing backslash: vita and ctr swallowed the following 'else' (vita lost main() entirely), orbis ended up with a literal '\' argument, and psp1 and griffin were left with an empty continuation and a bare 'CFLAGS +='. The database sample never built archive_file_7z's strldup dependency; add compat_strldup.c. test_rpng and the json sample both compiled trans_stream_zlib.c without a zlib to link against; point them at the built-in DEFLATE backend instead.
25 lines
1.3 KiB
Makefile
25 lines
1.3 KiB
Makefile
APPVERSION = 1.9.13.0
|
|
PACKAGE_VERSION = 1.9.13.0
|
|
|
|
DEPLOYMENT_IOSVERSION = 5.0
|
|
TARGET = iphone:latest:$(DEPLOYMENT_IOSVERSION)
|
|
ARCHS = armv7
|
|
TARGET_IPHONEOS_DEPLOYMENT_VERSION=$(DEPLOYMENT_IOSVERSION)
|
|
include $(THEOS)/makefiles/common.mk
|
|
|
|
SRC_DIR := ../..
|
|
|
|
APPLICATION_NAME = RetroArch
|
|
${APPLICATION_NAME}_FRAMEWORKS = Foundation UIKit CoreGraphics AudioToolbox GLKit OpenGLES CoreText CoreLocation CoreAudio AVFoundation CoreMedia CoreVideo GameController
|
|
${APPLICATION_NAME}_FILES = $(SRC_DIR)/griffin/griffin.c \
|
|
$(SRC_DIR)/griffin/griffin_objc.m
|
|
|
|
COMMON_FLAGS := -DIOS -DHAVE_GRIFFIN -DHAVE_NETWORKING -DHAVE_IFINFO -DHAVE_RGUI -DHAVE_MENU -DHAVE_DYNAMIC -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_GLSL -DINLINE=inline -DHAVE_THREADS -D__LIBRETRO__ -DRARCH_MOBILE -std=gnu99 -DHAVE_COREAUDIO -DHAVE_OVERLAY -DRARCH_INTERNAL -DHAVE_FILTERS_BUILTIN -DHAVE_XMB -D_LZMA_UINT32_IS_ULONG -DHAVE_STRL
|
|
COMMON_IOS_FLAGS := -Wno-deprecated-declarations -Wno-error
|
|
COMMON_IOS_OBJCFLAGS := -fobjc-arc
|
|
INCFLAGS := -I$(SRC_DIR) -I$(SRC_DIR)/libretro-common/include
|
|
${APPLICATION_NAME}_CFLAGS += $(COMMON_FLAGS) $(COMMON_IOS_FLAGS) $(COMMON_IOS_OBJCFLAGS) $(INCFLAGS)
|
|
${APPLICATION_NAME}_CCFLAGS += $(COMMON_FLAGS) $(COMMON_IOS_FLAGS) $(COMMON_IOS_OBJCFLAGS) $(INCFLAGS)
|
|
|
|
include $(THEOS_MAKE_PATH)/application.mk
|