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

Side by Side Diff: test/toolsets/toolsets.gyp

Issue 13992005: Fix rpath for components when cross-compiling. (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: linux-only Created 7 years, 8 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 unified diff | Download patch
« no previous file with comments | « test/toolsets/main.cc ('k') | test/toolsets/toolsets_shared.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 Google Inc. All rights reserved. 1 # Copyright (c) 2009 Google Inc. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'target_defaults': { 6 'target_defaults': {
7 'target_conditions': [ 7 'target_conditions': [
8 ['_toolset=="target"', {'defines': ['TARGET']}] 8 ['_toolset=="target"', {'defines': ['TARGET']}]
9 ] 9 ]
10 }, 10 },
11 'targets': [ 11 'targets': [
12 { 12 {
13 'target_name': 'toolsets', 13 'target_name': 'toolsets',
14 'type': 'static_library', 14 'type': 'static_library',
15 'toolsets': ['target', 'host'], 15 'toolsets': ['target', 'host'],
16 'sources': [ 16 'sources': [
17 'toolsets.cc', 17 'toolsets.cc',
18 ], 18 ],
19 }, 19 },
20 { 20 {
21 'target_name': 'host-main', 21 'target_name': 'host-main',
22 'type': 'executable', 22 'type': 'executable',
23 'toolsets': ['host'], 23 'toolsets': ['host'],
24 'dependencies': ['toolsets'], 24 'dependencies': ['toolsets', 'toolsets_shared'],
25 'sources': [ 25 'sources': [
26 'main.cc', 26 'main.cc',
27 ], 27 ],
28 }, 28 },
29 { 29 {
30 'target_name': 'target-main', 30 'target_name': 'target-main',
31 'type': 'executable', 31 'type': 'executable',
32 'dependencies': ['toolsets'], 32 'dependencies': ['toolsets', 'toolsets_shared'],
33 'sources': [ 33 'sources': [
34 'main.cc', 34 'main.cc',
35 ], 35 ],
36 }, 36 },
37 # This tests that build systems can handle a shared library being build for 37 # This tests that build systems can handle a shared library being build for
38 # both host and target. 38 # both host and target.
39 { 39 {
40 'target_name': 'janus', 40 'target_name': 'janus',
41 'type': 'shared_library', 41 'type': 'shared_library',
42 'toolsets': ['target', 'host'], 42 'toolsets': ['target', 'host'],
43 'sources': [ 43 'sources': [
44 'toolsets.cc', 44 'toolsets.cc',
45 ], 45 ],
46 'cflags': [ '-fPIC' ], 46 'cflags': [ '-fPIC' ],
47 }, 47 },
48 {
49 'target_name': 'toolsets_shared',
50 'type': 'shared_library',
51 'toolsets': ['target', 'host'],
52 'target_conditions': [
53 # Ensure target and host have different shared_library names
54 ['_toolset=="host"', {'product_extension': 'host'}],
55 ],
56 'sources': [
57 'toolsets_shared.cc',
58 ],
59 'cflags': [ '-fPIC' ],
60 },
48 ], 61 ],
49 } 62 }
OLDNEW
« no previous file with comments | « test/toolsets/main.cc ('k') | test/toolsets/toolsets_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698