From a609fb5c943444d09525733a94b8a328ff6f0513 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Sun, 9 Nov 2014 17:03:31 +0100 Subject: [PATCH] (iOS) Start adding Theos Makefile - still missing some things (need some way to convert xib files on the fly to nib, .app bundle still needs plists included, overlays bundled, etc. --- apple/iOS/Makefile | 29 ++++++++++++++++++ .../Resources}/Default-568h@2x.png | Bin apple/{Assets => iOS/Resources}/Default.png | Bin .../{Assets => iOS/Resources}/Default@2x.png | Bin apple/{Assets => iOS/Resources}/Icon-72.png | Bin apple/{Assets => iOS/Resources}/Icon.png | Bin .../Resources}/PauseIndicatorView.xib | 0 apple/{Assets => iOS/Resources}/ic_pause.png | Bin .../RetroArch_iOS.xcodeproj/project.pbxproj | 4 +-- apple/iOS/control | 9 ++++++ 10 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 apple/iOS/Makefile rename apple/{Assets => iOS/Resources}/Default-568h@2x.png (100%) rename apple/{Assets => iOS/Resources}/Default.png (100%) rename apple/{Assets => iOS/Resources}/Default@2x.png (100%) rename apple/{Assets => iOS/Resources}/Icon-72.png (100%) rename apple/{Assets => iOS/Resources}/Icon.png (100%) rename apple/{Assets => iOS/Resources}/PauseIndicatorView.xib (100%) rename apple/{Assets => iOS/Resources}/ic_pause.png (100%) create mode 100644 apple/iOS/control diff --git a/apple/iOS/Makefile b/apple/iOS/Makefile new file mode 100644 index 0000000000..de19799311 --- /dev/null +++ b/apple/iOS/Makefile @@ -0,0 +1,29 @@ +SDKVERSION=8.1 +ARCHS = armv7 armv7s +include $(THEOS)/makefiles/common.mk + +SRC_DIR := ../.. + +APPLICATION_NAME = retroarch +retroarch_FILES = $(SRC_DIR)/griffin/griffin.c \ + $(SRC_DIR)/audio/utils_neon.S \ + $(SRC_DIR)/audio/resamplers/sinc_neon.S \ + $(SRC_DIR)/audio/resamplers/cc_resampler_neon.S \ + $(SRC_DIR)/apple/iOS/browser.m \ + $(SRC_DIR)/apple/iOS/menu.m \ + $(SRC_DIR)/apple/iOS/platform.m \ + $(SRC_DIR)/apple/common/apple_gamecontroller.m \ + $(SRC_DIR)/apple/common/CFExtensions.m \ + $(SRC_DIR)/apple/common/RAGameView.m \ + $(SRC_DIR)/apple/common/utility.m +retroarch_FRAMEWORKS = Foundation UIKit CoreGraphics AudioToolbox GLKit OpenGLES CoreText CoreLocation CoreAudio AVFoundation CoreMedia CoreVideo GameController + +COMMON_FLAGS := -DIOS -DHAVE_GRIFFIN -DHAVE_LOCATION -DHAVE_RGUI -DHAVE_MENU -DHAVE_DYNAMIC -DHAVE_OPENGL -DHAVE_FBO -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_GLSL -DINLINE=inline -DLSB_FIRST -DHAVE_THREADS -D__LIBRETRO__ -DRARCH_MOBILE -std=gnu99 -DHAVE_COREAUDIO -DHAVE_FBO -DHAVE_OVERLAY -DHAVE_ZLIB -DWANT_MINIZ -DSINC_LOWER_QUALITY -DRARCH_INTERNAL -DHAVE_FILTERS_BUILTIN -DHAVE_LAKKA -DHAVE_XMB -D_LZMA_UINT32_IS_ULONG -DHAVE_STRL +COMMON_FLAGS += -DHAVE_CAMERA +COMMON_IOS_FLAGS := -Wno-deprecated-declarations -Wno-error +COMMON_IOS_OBJCFLAGS := -fobjc-arc +INCDIR := -I$(SRC_DIR) -I$(SRC_DIR)/libretro-sdk/include +retroarch_CFLAGS += $(COMMON_FLAGS) $(COMMON_IOS_FLAGS) $(COMMON_IOS_OBJCFLAGS) $(INCDIR) +retroarch_CCFLAGS += $(COMMON_FLAGS) $(COMMON_IOS_FLAGS) $(COMMON_IOS_OBJCFLAGS) $(INCDIR) + +include $(THEOS_MAKE_PATH)/application.mk diff --git a/apple/Assets/Default-568h@2x.png b/apple/iOS/Resources/Default-568h@2x.png similarity index 100% rename from apple/Assets/Default-568h@2x.png rename to apple/iOS/Resources/Default-568h@2x.png diff --git a/apple/Assets/Default.png b/apple/iOS/Resources/Default.png similarity index 100% rename from apple/Assets/Default.png rename to apple/iOS/Resources/Default.png diff --git a/apple/Assets/Default@2x.png b/apple/iOS/Resources/Default@2x.png similarity index 100% rename from apple/Assets/Default@2x.png rename to apple/iOS/Resources/Default@2x.png diff --git a/apple/Assets/Icon-72.png b/apple/iOS/Resources/Icon-72.png similarity index 100% rename from apple/Assets/Icon-72.png rename to apple/iOS/Resources/Icon-72.png diff --git a/apple/Assets/Icon.png b/apple/iOS/Resources/Icon.png similarity index 100% rename from apple/Assets/Icon.png rename to apple/iOS/Resources/Icon.png diff --git a/apple/Assets/PauseIndicatorView.xib b/apple/iOS/Resources/PauseIndicatorView.xib similarity index 100% rename from apple/Assets/PauseIndicatorView.xib rename to apple/iOS/Resources/PauseIndicatorView.xib diff --git a/apple/Assets/ic_pause.png b/apple/iOS/Resources/ic_pause.png similarity index 100% rename from apple/Assets/ic_pause.png rename to apple/iOS/Resources/ic_pause.png diff --git a/apple/iOS/RetroArch_iOS.xcodeproj/project.pbxproj b/apple/iOS/RetroArch_iOS.xcodeproj/project.pbxproj index dca06459d1..97b2e6d8aa 100644 --- a/apple/iOS/RetroArch_iOS.xcodeproj/project.pbxproj +++ b/apple/iOS/RetroArch_iOS.xcodeproj/project.pbxproj @@ -68,7 +68,7 @@ 83D632DD19ECFCC4009E3161 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = ""; }; 83D632DE19ECFCC4009E3161 /* PauseIndicatorView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = PauseIndicatorView.xib; sourceTree = ""; }; 83EB675F19EEAF050096F441 /* modules */ = {isa = PBXFileReference; lastKnownFileType = folder; path = modules; sourceTree = SOURCE_ROOT; }; - 83EB676119EEAF1B0096F441 /* overlays */ = {isa = PBXFileReference; lastKnownFileType = folder; name = overlays; path = ../../media/overlays; sourceTree = ""; }; + 83EB676119EEAF1B0096F441 /* overlays */ = {isa = PBXFileReference; lastKnownFileType = folder; name = overlays; path = ../../../media/overlays; sourceTree = ""; }; 96366C5416C9AC3300D64A22 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = System/Library/Frameworks/CoreAudio.framework; sourceTree = SDKROOT; }; 96366C5816C9ACF500D64A22 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; 963C3C33186E3DED00A6EB1E /* GameController.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GameController.framework; path = System/Library/Frameworks/GameController.framework; sourceTree = SDKROOT; }; @@ -133,7 +133,7 @@ 83D632DE19ECFCC4009E3161 /* PauseIndicatorView.xib */, ); name = Assets; - path = ../Assets; + path = Resources; sourceTree = ""; }; 96AFAE1A16C1D4EA009DE44C = { diff --git a/apple/iOS/control b/apple/iOS/control new file mode 100644 index 0000000000..8c3480b494 --- /dev/null +++ b/apple/iOS/control @@ -0,0 +1,9 @@ +Package: com.libretro.retroarch +Name: retroarch +Depends: +Version: 0.0.1 +Architecture: iphoneos-arm +Description: An awesome application! +Maintainer: Libretro +Author: Libretro +Section: Utilities