CREATE_PROJECT: Add Accelerate framework to iOS and tvOS
Add Apple Accelerate framework to iOS and tvOS targets. The framework utilizes NEON extensions on the ARM chip to accelerate calculations. This will come to use when processing texture data.
This commit is contained in:
parent
2eb788b7ff
commit
624d9782a5
3 changed files with 4 additions and 2 deletions
2
configure
vendored
2
configure
vendored
|
@ -3866,7 +3866,7 @@ case $_backend in
|
|||
append_var LIBS "-lobjc -framework UIKit -framework CoreGraphics -framework OpenGLES"
|
||||
append_var LIBS "-framework QuartzCore -framework CoreFoundation -framework Foundation"
|
||||
append_var LIBS "-framework AudioToolbox -framework CoreAudio -framework SystemConfiguration "
|
||||
append_var LIBS "-framework GameController"
|
||||
append_var LIBS "-framework GameController -framework Accelerate"
|
||||
if test "$_host_cpu" = 'aarch64' ; then
|
||||
append_var LDFLAGS "-miphoneos-version-min=7.1 -arch arm64"
|
||||
append_var CFLAGS "-miphoneos-version-min=7.1 -arch arm64"
|
||||
|
|
|
@ -434,6 +434,7 @@ void XcodeProvider::setupFrameworksBuildPhase(const BuildSetup &setup) {
|
|||
std::map<std::string, FileProperty> properties;
|
||||
int fwOrder = 0;
|
||||
// Frameworks
|
||||
DEF_SYSFRAMEWORK("Accelerate");
|
||||
DEF_SYSFRAMEWORK("ApplicationServices");
|
||||
DEF_SYSFRAMEWORK("AudioToolbox");
|
||||
DEF_SYSFRAMEWORK("AudioUnit");
|
||||
|
@ -562,6 +563,7 @@ void XcodeProvider::setupFrameworksBuildPhase(const BuildSetup &setup) {
|
|||
frameworks_iOS.push_back("AudioToolbox.framework");
|
||||
frameworks_iOS.push_back("QuartzCore.framework");
|
||||
frameworks_iOS.push_back("OpenGLES.framework");
|
||||
frameworks_iOS.push_back("Accelerate.framework");
|
||||
|
||||
if (CONTAINS_DEFINE(setup.defines, "USE_FAAD")) {
|
||||
frameworks_iOS.push_back("libfaad.a");
|
||||
|
|
2
ports.mk
2
ports.mk
|
@ -504,7 +504,7 @@ iphone: $(DETECT_OBJS) $(OBJS)
|
|||
+$(LD) $(LDFLAGS) -o scummvm $(DETECT_OBJS) $(OBJS) \
|
||||
$(OSX_STATIC_LIBS) \
|
||||
-framework UIKit -framework CoreGraphics -framework OpenGLES -framework GameController \
|
||||
-framework CoreFoundation -framework QuartzCore -framework Foundation \
|
||||
-framework CoreFoundation -framework QuartzCore -framework Foundation -framework Accelerate \
|
||||
-framework AudioToolbox -framework CoreAudio -framework SystemConfiguration -lobjc -lz
|
||||
|
||||
# Special target to create a snapshot disk image for macOS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue