Skip to content

Commit

Permalink
Revert 260175 "Fixup mojo dylibs to support mojo in content"
Browse files Browse the repository at this point in the history
sky is about to check something in that will interact poorly with this
and it'll be easier to apply the necessary changes after that.

> Fixup mojo dylibs to support mojo in content
> 
> Second try after revert of
> https://codereview.chromium.org/211503005/
> 
> The isolates failed because libmojo_system.dylib wasn't getting copied.
> 
> BUG=
> TBR=mark@chromium.org
> 
> Review URL: https://codereview.chromium.org/217003003

TBR=davemoore@chromium.org

Review URL: https://codereview.chromium.org/216793008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260181 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
davemoore@chromium.org committed Mar 28, 2014
1 parent 452d6fd commit f77f0ca
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 77 deletions.
2 changes: 1 addition & 1 deletion build/common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@
'enable_printing%': 0,
}],

['OS=="win" or OS=="mac" or (OS=="linux" and chromeos==0)', {
['OS=="win" or (OS=="linux" and chromeos==0)', {
'use_mojo%': 1,
}],

Expand Down
1 change: 0 additions & 1 deletion chrome/chrome.isolate
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
],
'isolate_dependency_tracked': [
'<(PRODUCT_DIR)/ffmpegsumo.so',
'<(PRODUCT_DIR)/libmojo_system.dylib',
],
'isolate_dependency_untracked': [
'<(PRODUCT_DIR)/<(mac_product_name) Framework.framework/',
Expand Down
31 changes: 1 addition & 30 deletions chrome/chrome_dll_bundle.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -127,35 +127,6 @@
'--scm=1',
'--branding=<(branding)'],
},
{
# Copy libmojo_system.dylib explicitly. The copies section does a
# hard link, 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 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'],
},
{
# 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}'],
},
{
'postbuild_name': 'Symlink Libraries',
'action': [
Expand All @@ -168,7 +139,7 @@
],
'copies': [
{
# Copy FFmpeg binaries for audio/video support and mojo.
# Copy FFmpeg binaries for audio/video support.
'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
'files': [
'<(PRODUCT_DIR)/ffmpegsumo.so',
Expand Down
1 change: 0 additions & 1 deletion chrome/tools/build/mac/dump_product_syms
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ SRC_NAMES=(
"crash_inspector"
"crash_report_sender.app"
"ffmpegsumo.so"
"libmojo_system.dylib"
"libplugin_carbon_interpose.dylib"
"ppGoogleNaClPluginChrome.plugin"
"remoting_host_plugin.plugin"
Expand Down
31 changes: 1 addition & 30 deletions content/content_shell.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -849,39 +849,10 @@
'--version=<(content_shell_version)',
'--branding=<(content_shell_product_name)'],
},
{
# Copy libmojo_system.dylib explicitly. The copies section does a
# hard link, 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 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'],
},
{
# 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}'],
},
],
'copies': [
{
# Copy FFmpeg for audio/video support and mojo.
# Copy FFmpeg binaries for audio/video support.
'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
'files': [
'<(PRODUCT_DIR)/ffmpegsumo.so',
Expand Down
38 changes: 24 additions & 14 deletions mojo/mojo_public.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,15 @@
'conditions': [
['OS=="mac"', {
'xcode_settings': {
# Make it a loader-path dependent library.
'DYLIB_INSTALL_NAME_BASE': '@loader_path',
# Make it a run-path dependent library.
'DYLIB_INSTALL_NAME_BASE': '@rpath',
},
'direct_dependent_settings': {
'xcode_settings': {
# Look for run-path dependent libraries in the loader's directory.
'LD_RUNPATH_SEARCH_PATHS': [ '@loader_path/.', ],
},
},
'conditions': [
['mac_breakpad==1', {
'variables': {
# A real .dSYM is needed for dump_syms to operate on.
'mac_real_dsym': 1,
},
}],
],
}],
],
},
Expand Down Expand Up @@ -71,8 +69,14 @@
'conditions': [
['OS=="mac"', {
'xcode_settings': {
# Make it a loader-path dependent library.
'DYLIB_INSTALL_NAME_BASE': '@loader_path',
# Make it a run-path dependent library.
'DYLIB_INSTALL_NAME_BASE': '@rpath',
},
'direct_dependent_settings': {
'xcode_settings': {
# Look for run-path dependent libraries in the loader's directory.
'LD_RUNPATH_SEARCH_PATHS': [ '@loader_path/.', ],
},
},
}],
],
Expand Down Expand Up @@ -100,8 +104,14 @@
'conditions': [
['OS=="mac"', {
'xcode_settings': {
# Make it a loader-path dependent library.
'DYLIB_INSTALL_NAME_BASE': '@loader_path',
# Make it a run-path dependent library.
'DYLIB_INSTALL_NAME_BASE': '@rpath',
},
'direct_dependent_settings': {
'xcode_settings': {
# Look for run-path dependent libraries in the loader's directory.
'LD_RUNPATH_SEARCH_PATHS': [ '@loader_path/.', ],
},
},
}],
],
Expand Down

0 comments on commit f77f0ca

Please sign in to comment.