diff options
Diffstat (limited to 'build/common.gypi')
-rw-r--r-- | build/common.gypi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index 479e5f4..62dad147 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -1273,6 +1273,17 @@ }, { # else: branding!="Chrome" 'defines': ['CHROMIUM_BUILD'], }], + ['OS=="mac" and component=="shared_library"', { + 'xcode_settings': { + 'DYLIB_INSTALL_NAME_BASE': '@rpath', + 'LD_RUNPATH_SEARCH_PATHS': [ + # For unbundled binaries. + '@loader_path/.', + # For bundled binaries, to get back from Binary.app/Contents/MacOS. + '@loader_path/../../..', + ], + }, + }], ['branding=="Chrome" and (OS=="win" or OS=="mac")', { 'defines': ['ENABLE_RLZ'], }], |