Chromium Code Reviews| Index: content/content_shell.gypi |
| diff --git a/content/content_shell.gypi b/content/content_shell.gypi |
| index 9290d4934979eaa4a4572a8b608e497e08d76310..ffe3a202f21c63c3060b5e9c072c48c82d4ce25a 100644 |
| --- a/content/content_shell.gypi |
| +++ b/content/content_shell.gypi |
| @@ -853,10 +853,39 @@ |
| '--version=<(content_shell_version)', |
| '--branding=<(content_shell_product_name)'], |
| }, |
| + { |
| + # Copy libmojo_system.dylib explicitly. The copies command hard |
|
Mark Mentovai
2014/03/26 16:56:55
Same comments apply here.
|
| + # links, and since we modify it we would end up with the wrong |
| + # load command in things linked afterward. |
| + 'postbuild_name': 'Copy libmojo_system.dylib', |
| + 'action': ['cp', |
| + '-p', |
| + '${BUILT_PRODUCTS_DIR}/libmojo_system.dylib', |
| + '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Libraries'], |
| + }, |
| + { |
| + # Changes the load command of libmojo_system.dylib to come from |
| + # the Libraries folder. |
| + 'postbuild_name': 'Update load of libmojo_system.dylib', |
| + 'action': ['install_name_tool', |
| + '-change', |
| + '@loader_path/libmojo_system.dylib', |
| + '@loader_path/Libraries/libmojo_system.dylib', |
| + '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'], |
| + }, |
| + { |
| + # Changes the id of libmojo_system.dylib to come from the |
| + # Libraries folder to be consistent with the load command. |
| + 'postbuild_name': 'Update id of libmojo_system.dylib', |
| + 'action': ['install_name_tool', |
| + '-id', |
| + '@loader_path/Libraries/libmojo_system.dylib', |
| + '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Libraries/libmojo_system.dylib'], |
| + }, |
| ], |
| 'copies': [ |
| { |
| - # Copy FFmpeg binaries for audio/video support. |
| + # Copy FFmpeg for audio/video support and mojo. |
| 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries', |
| 'files': [ |
| '<(PRODUCT_DIR)/ffmpegsumo.so', |