-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14612 c8812cc2-4d05-0410-92ff-de0c093fc19c
- Loading branch information
kyngchaos
committed
Nov 13, 2010
1 parent
d702bfc
commit ad5362e
Showing
5 changed files
with
39 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Mac Bundle Macros | ||
|
||
# BundleUtilities has functions to bundle and fixup libraries into an | ||
# application package, but it's all-or-nothing and is missing some features: | ||
# | ||
# - @loader_path | ||
# - helper functions can't get install_name, just dependencies | ||
|
||
# get the install_name of a library or framework | ||
# regex stuff taken from GetPrerequisites | ||
|
||
FUNCTION (GET_INSTALL_NAME LIBFILE LIBNAME OUTVAR) | ||
EXECUTE_PROCESS (COMMAND otool -D "${LIBFILE}" OUTPUT_VARIABLE iname_out) | ||
STRING (REGEX REPLACE ".*:\n" "" iname "${iname_out}") | ||
IF (iname) | ||
# trim it | ||
STRING (REGEX MATCH "[^\n ].*[^\n ]" iname "${iname}") | ||
SET (${OUTVAR} ${iname} PARENT_SCOPE) | ||
ENDIF (iname) | ||
ENDFUNCTION (GET_INSTALL_NAME) | ||
|
||
# message only if verbose makefiles | ||
|
||
FUNCTION (MYMESSAGE MSG) | ||
IF (@CMAKE_VERBOSE_MAKEFILE@) | ||
MESSAGE (STATUS "${MSG}") | ||
ENDIF (@CMAKE_VERBOSE_MAKEFILE@) | ||
ENDFUNCTION (MYMESSAGE) | ||
|
||
# install_name_tool -change CHANGE CHANGETO CHANGEBIN | ||
|
||
FUNCTION (INSTALLNAMETOOL_CHANGE CHANGE CHANGETO CHANGEBIN) | ||
MYMESSAGE ("install_name_tool -change ${CHANGE} ${CHANGETO} \"${CHANGEBIN}\"") | ||
EXECUTE_PROCESS (COMMAND install_name_tool -change ${CHANGE} ${CHANGETO} "${CHANGEBIN}") | ||
ENDFUNCTION (INSTALLNAMETOOL_CHANGE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters