Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ libs/
*.so
*.dylib
jni/*.bat
.DS_Store
xcuserdata
33 changes: 33 additions & 0 deletions apple/base.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Packaging
PRODUCT_NAME = dosbox_pure_libretro

// Deployment
TARGETED_DEVICE_FAMILY = 1,2,3,4,6,7
SUPPORTS_MACCATALYST = YES
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = YES

// Architectures
SUPPORTED_PLATFORMS = xrsimulator xros watchsimulator watchos macosx iphonesimulator iphoneos appletvsimulator appletvos

// Search paths
ALWAYS_SEARCH_USER_PATHS = NO

// Definições comuns para todas as configs
CLANG_CXX_LANGUAGE_STANDARD = gnu++11
CLANG_CXX_LIBRARY = libc++
GCC_C_LANGUAGE_STANDARD = gnu11
IPHONEOS_DEPLOYMENT_TARGET = 12.0

// Flags globais do Makefile
OTHER_CPLUSPLUSFLAGS = $(inherited) -fomit-frame-pointer -fexceptions -fvisibility=hidden -ffunction-sections -fPIC -Wno-address-of-packed-member -Wno-format -Wno-switch -Wno-psabi -Wno-unknown-warning-option -Wno-unreachable-code -Wno-sometimes-uninitialized -Wno-deprecated-anon-enum-enum-conversion

OTHER_CFLAGS = $(inherited) -Wno-deprecated-declarations -Wno-deprecated-volatile -Wno-comma -Wno-implicit-int-conversion -Wno-documentation -Wno-unused-variable -Wno-unused-function -Wno-conditional-uninitialized -Wno-strict-prototypes

// Defines globais
GCC_PREPROCESSOR_DEFINITIONS = __LIBRETRO__=1 _FILE_OFFSET_BITS=64 DISABLE_DYNAREC=1 DBP_IOS=1 $(inherited)

// Linker flags comuns
OTHER_LDFLAGS = $(inherited) -Wl,-dead_strip -lpthread

HEADER_SEARCH_PATHS = $(SRCROOT)/include $(SRCROOT)/libretro-common/include
6 changes: 6 additions & 0 deletions apple/debug.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include "base.xcconfig"

GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1 _DEBUG=1 $(inherited)
OTHER_CFLAGS = $(inherited) -ftrivial-auto-var-init=zero
OTHER_CPLUSPLUSFLAGS = $(inherited) -g -O0 -ftrivial-auto-var-init=zero
OTHER_LDFLAGS = $(inherited) -g -O0
15 changes: 15 additions & 0 deletions apple/release.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "base.xcconfig"

GCC_PREPROCESSOR_DEFINITIONS = NDEBUG=1 $(inherited)
OTHER_CPLUSPLUSFLAGS = $(inherited) -O2
OTHER_LDFLAGS = $(inherited) -O2

// Auto strip, similar to "strip -xS" (conflicted with archive)
STRIP_INSTALLED_PRODUCT = NO
STRIP_STYLE = all

// Needed to include .a lib in the .xcarchive
BUILD_LIBRARY_FOR_DISTRIBUTION = YES
SKIP_INSTALL = NO
INSTALL_PATH = /usr/local/lib

Loading