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
c4686ee84c
commit
0d03655605
3 changed files with 5 additions and 2 deletions
2
configure
vendored
2
configure
vendored
|
@ -3886,7 +3886,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" = 'tvos'; then
|
||||
append_var LDFLAGS "-mtvos-version-min=9 -arch arm64"
|
||||
append_var CFLAGS "-mtvos-version-min=9 -arch arm64"
|
||||
|
|
|
@ -454,6 +454,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");
|
||||
|
@ -582,6 +583,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");
|
||||
|
@ -792,6 +794,7 @@ void XcodeProvider::setupFrameworksBuildPhase(const BuildSetup &setup) {
|
|||
frameworks_tvOS.push_back("AudioToolbox.framework");
|
||||
frameworks_tvOS.push_back("QuartzCore.framework");
|
||||
frameworks_tvOS.push_back("OpenGLES.framework");
|
||||
frameworks_tvOS.push_back("Accelerate.framework");
|
||||
|
||||
if (CONTAINS_DEFINE(setup.defines, "USE_FAAD")) {
|
||||
frameworks_tvOS.push_back("libfaad.a");
|
||||
|
|
2
ports.mk
2
ports.mk
|
@ -556,7 +556,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