[Scummvm-git-logs] scummvm master -> 5b617c1eefbae327dae43ee92fcb6a555689d8c0

sev- sev at scummvm.org
Fri Apr 24 08:53:28 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
5b617c1eef CREATE_PROJECT: Use relative paths for static libraries for Xcode


Commit: 5b617c1eefbae327dae43ee92fcb6a555689d8c0
    https://github.com/scummvm/scummvm/commit/5b617c1eefbae327dae43ee92fcb6a555689d8c0
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2020-04-24T10:53:23+02:00

Commit Message:
CREATE_PROJECT: Use relative paths for static libraries for Xcode

With the project including both iOS and macOS targets, using an
absolute path ensures it is incorrect for one of those. Since it was
using /usr/local/lib/ all the paths had to be changed in Xcode to
build the iOS target.

Also as the paths where we expect the libraries to be (/usr/local/lib
on macOS and lib under the build directory for iOS) are added to the
search path in the Xcode project, we do not actually need to use
absolute path). Also this make it easier to use a different path for
libraries (e.g. if using MacPort or brew) as we only need to change
the search path setting in the Xcode project and not the
path for each library).

Changed paths:
    devtools/create_project/xcode.cpp


diff --git a/devtools/create_project/xcode.cpp b/devtools/create_project/xcode.cpp
index 9648d4fe20..68930a3ba5 100644
--- a/devtools/create_project/xcode.cpp
+++ b/devtools/create_project/xcode.cpp
@@ -408,7 +408,7 @@ void XcodeProvider::setupCopyFilesBuildPhase() {
 #define DEF_LOCALLIB_STATIC_PATH(path,lib,absolute) properties[lib".a"] = FileProperty("archive.ar", lib ".a", path, (absolute ? "\"<absolute>\"" : "\"<group>\"")); \
 	ADD_SETTING_ORDER_NOVALUE(children, getHash(lib".a"), lib".a", fwOrder++);
 
-#define DEF_LOCALLIB_STATIC(lib) DEF_LOCALLIB_STATIC_PATH("/usr/local/lib/" lib ".a", lib, true)
+#define DEF_LOCALLIB_STATIC(lib) DEF_LOCALLIB_STATIC_PATH(lib ".a", lib, false)
 
 
 /**




More information about the Scummvm-git-logs mailing list