Copy libgit2 dylib and update using install_name_tool

This commit is contained in:
Kevin Sawicki
2012-10-30 09:01:30 -07:00
committed by Corey Johnson
parent 3772a4ce1b
commit ef00ba934f

View File

@@ -140,6 +140,12 @@
'native/frameworks/CocoaOniguruma.framework',
],
},
{
'destination': '<(PRODUCT_DIR)/Atom.app/Contents/Frameworks/libgit2.framework/Libraries',
'files': [
'git2/frameworks/libgit2.0.17.0.dylib',
],
},
],
'postbuilds': [
{
@@ -320,7 +326,7 @@
# (DYLIB_INSTALL_NAME_BASE) relative to the main executable
# (chrome). A different relative path needs to be used in
# atom_helper_app.
'postbuild_name': 'Fix Framework Link',
'postbuild_name': 'Fix CEF Framework Link',
'action': [
'install_name_tool',
'-change',
@@ -329,6 +335,16 @@
'${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
],
},
{
'postbuild_name': 'Fix libgit2 Framework Link',
'action': [
'install_name_tool',
'-change',
'@executable_path/libgit2.0.17.0.dylib',
'@executable_path/../../../../Frameworks/libgit2.framework/Libraries/libgit2.0.17.0.dylib',
'${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
],
},
{
'postbuild_name': 'Copy and Compile Static Files',
'action': [