Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Unified Diff: mojo/mojo_public.gypi

Issue 188693006: Mojo interface libraries: set install name and search path properly on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comments Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/mojo_public.gypi
diff --git a/mojo/mojo_public.gypi b/mojo/mojo_public.gypi
index b4ad543e6cc6ee576495821d7131f5c000774bee..ee773379c64b8de287792b607a5a1dbc3e1df296 100644
--- a/mojo/mojo_public.gypi
+++ b/mojo/mojo_public.gypi
@@ -23,6 +23,20 @@
'public/system/macros.h',
'public/system/system_export.h',
],
+ 'conditions': [
+ ['OS=="mac"', {
+ 'xcode_settings': {
+ # 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/.', ],
+ },
+ },
+ }],
+ ],
},
{
'target_name': 'mojo_gles2',
@@ -51,6 +65,20 @@
'public/gles2/gles2_private.cc',
'public/gles2/gles2_private.h',
],
+ 'conditions': [
+ ['OS=="mac"', {
+ 'xcode_settings': {
+ # 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/.', ],
+ },
+ },
+ }],
+ ],
},
{
'target_name': 'mojo_test_support',
@@ -72,6 +100,20 @@
'public/tests/test_support_private.h',
'public/tests/test_support_export.h',
],
+ 'conditions': [
+ ['OS=="mac"', {
+ 'xcode_settings': {
+ # 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/.', ],
+ },
+ },
+ }],
+ ],
},
{
'target_name': 'mojo_public_test_utils',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698