• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2012 Google Inc. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4{
5  'targets': [
6    {
7      'target_name': 'default_rpath',
8      'type': 'shared_library',
9      'sources': [ 'file.c' ],
10    },
11    {
12      'target_name': 'explicit_rpath',
13      'type': 'shared_library',
14      'sources': [ 'file.c' ],
15      'xcode_settings': {
16        'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'],
17      },
18    },
19    {
20      'target_name': 'explicit_rpaths_escaped',
21      'type': 'shared_library',
22      'sources': [ 'file.c' ],
23      'xcode_settings': {
24        # Xcode requires spaces to be escaped, else it ends up adding two
25        # independent rpaths.
26        'LD_RUNPATH_SEARCH_PATHS': ['First\\ rpath', 'Second\\ rpath'],
27      },
28    },
29    {
30      'target_name': 'explicit_rpaths_bundle',
31      'product_name': 'My Framework',
32      'type': 'shared_library',
33      'mac_bundle': 1,
34      'sources': [ 'file.c' ],
35      'xcode_settings': {
36        'LD_RUNPATH_SEARCH_PATHS': ['@loader_path/.'],
37      },
38    },
39    {
40      'target_name': 'executable',
41      'type': 'executable',
42      'sources': [ 'main.c' ],
43      'xcode_settings': {
44        'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'],
45      },
46    },
47  ],
48}
49