blob: 0431f5f2f4fab2ba5c7bd070eccf5f014579d163 [file] [log] [blame]
Ben Murdoch097c5b22016-05-18 11:27:45 +01001# Copyright (c) 2014 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{
6 'target_defaults': {
7 'xcode_settings': {
8 'ARCHS': ['i386', 'x86_64'],
9 },
10 },
11 'targets': [
12 {
13 'target_name': 'target_a',
14 'type': 'static_library',
15 'sources': [
16 'file_a.cc',
17 'file_a.h',
18 ],
19 },
20 {
21 'target_name': 'target_b',
22 'type': 'static_library',
23 'sources': [
24 'file_b.cc',
25 'file_b.h',
26 ],
27 },
28 {
29 'target_name': 'target_c_standalone_helper',
30 'type': 'loadable_module',
31 'hard_dependency': 1,
32 'dependencies': [
33 'target_a',
34 'target_b',
35 ],
36 'sources': [
37 'file_c.cc',
38 ],
39 },
40 {
41 'target_name': 'target_c_standalone',
42 'type': 'none',
43 'dependencies': [
44 'target_c_standalone_helper',
45 ],
46 'actions': [
47 {
48 'action_name': 'Package C',
49 'inputs': [],
50 'outputs': [
51 '<(PRODUCT_DIR)/libc_standalone.a',
52 ],
53 'action': [
54 'touch',
55 '<@(_outputs)',
56 ],
57 },
58 ],
59 },
60 {
61 'target_name': 'target_d_standalone_helper',
62 'type': 'shared_library',
63 'dependencies': [
64 'target_a',
65 'target_b',
66 ],
67 'sources': [
68 'file_d.cc',
69 ],
70 },
71 {
72 'target_name': 'target_d_standalone',
73 'type': 'none',
74 'dependencies': [
75 'target_d_standalone_helper',
76 ],
77 'actions': [
78 {
79 'action_name': 'Package D',
80 'inputs': [],
81 'outputs': [
82 '<(PRODUCT_DIR)/libd_standalone.a',
83 ],
84 'action': [
85 'touch',
86 '<@(_outputs)',
87 ],
88 },
89 ],
90 }
91 ],
92}