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

Side by Side Diff: tools/tools.gyp

Issue 986033002: Allow Crashpad to build in the Chromium tree (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Rewrap Created 5 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Crashpad Authors. All rights reserved. 1 # Copyright 2014 The Crashpad Authors. All rights reserved.
2 # 2 #
3 # Licensed under the Apache License, Version 2.0 (the "License"); 3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License. 4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at 5 # You may obtain a copy of the License at
6 # 6 #
7 # http://www.apache.org/licenses/LICENSE-2.0 7 # http://www.apache.org/licenses/LICENSE-2.0
8 # 8 #
9 # Unless required by applicable law or agreed to in writing, software 9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, 10 # distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 19 matching lines...) Expand all
30 # To have an Info.plist, they must have a special __TEXT,__info_plist 30 # To have an Info.plist, they must have a special __TEXT,__info_plist
31 # section. This section is created at link time. 31 # section. This section is created at link time.
32 # 32 #
33 # The Info.plist for this purpose is mac/sectaskaccess_info.plist and is 33 # The Info.plist for this purpose is mac/sectaskaccess_info.plist and is
34 # referenced by OTHER_LDFLAGS. ninja runs the link step from the output 34 # referenced by OTHER_LDFLAGS. ninja runs the link step from the output
35 # directory such as out/Release, and requires a relative path from that 35 # directory such as out/Release, and requires a relative path from that
36 # directory. Xcode runs the link step from the directory of the 36 # directory. Xcode runs the link step from the directory of the
37 # .xcodeproj, which is the directory of the .gyp file. 37 # .xcodeproj, which is the directory of the .gyp file.
38 'conditions': [ 38 'conditions': [
39 ['GENERATOR=="ninja"', { 39 ['GENERATOR=="ninja"', {
40 'sectaskaccess_info_plist': 40 'sectaskaccess_info_plist': '<!(pwd)/mac/sectaskaccess_info.plist',
41 '../../tools/mac/sectaskaccess_info.plist',
42 }, { # else: GENERATOR!="ninja" 41 }, { # else: GENERATOR!="ninja"
43 'sectaskaccess_info_plist': 'mac/sectaskaccess_info.plist', 42 'sectaskaccess_info_plist': 'mac/sectaskaccess_info.plist',
44 }], 43 }],
45 ], 44 ],
46 }, 45 },
47 46
48 'targets': [ 47 'targets': [
49 { 48 {
50 'target_name': 'crashpad_tool_support', 49 'target_name': 'crashpad_tool_support',
51 'type': 'static_library', 50 'type': 'static_library',
52 'dependencies': [ 51 'dependencies': [
53 '../third_party/mini_chromium/mini_chromium/base/base.gyp:base', 52 '../third_party/mini_chromium/mini_chromium.gyp:base',
54 ], 53 ],
55 'include_dirs': [ 54 'include_dirs': [
56 '..', 55 '..',
57 ], 56 ],
58 'sources': [ 57 'sources': [
59 'tool_support.cc', 58 'tool_support.cc',
60 'tool_support.h', 59 'tool_support.h',
61 ], 60 ],
62 }, 61 },
63 { 62 {
64 'target_name': 'catch_exception_tool', 63 'target_name': 'catch_exception_tool',
65 'type': 'executable', 64 'type': 'executable',
66 'dependencies': [ 65 'dependencies': [
67 'crashpad_tool_support', 66 'crashpad_tool_support',
68 '../compat/compat.gyp:crashpad_compat', 67 '../compat/compat.gyp:crashpad_compat',
69 '../third_party/mini_chromium/mini_chromium/base/base.gyp:base', 68 '../third_party/mini_chromium/mini_chromium.gyp:base',
70 '../util/util.gyp:crashpad_util', 69 '../util/util.gyp:crashpad_util',
71 ], 70 ],
72 'include_dirs': [ 71 'include_dirs': [
73 '..', 72 '..',
74 ], 73 ],
75 'sources': [ 74 'sources': [
76 'mac/catch_exception_tool.cc', 75 'mac/catch_exception_tool.cc',
77 ], 76 ],
78 }, 77 },
79 { 78 {
80 'target_name': 'exception_port_tool', 79 'target_name': 'exception_port_tool',
81 'type': 'executable', 80 'type': 'executable',
82 'dependencies': [ 81 'dependencies': [
83 'crashpad_tool_support', 82 'crashpad_tool_support',
84 '../compat/compat.gyp:crashpad_compat', 83 '../compat/compat.gyp:crashpad_compat',
85 '../third_party/mini_chromium/mini_chromium/base/base.gyp:base', 84 '../third_party/mini_chromium/mini_chromium.gyp:base',
86 '../util/util.gyp:crashpad_util', 85 '../util/util.gyp:crashpad_util',
87 ], 86 ],
88 'include_dirs': [ 87 'include_dirs': [
89 '..', 88 '..',
90 ], 89 ],
91 'sources': [ 90 'sources': [
92 'mac/exception_port_tool.cc', 91 'mac/exception_port_tool.cc',
93 ], 92 ],
94 'xcode_settings': { 93 'xcode_settings': {
95 'OTHER_LDFLAGS': [ 94 'OTHER_LDFLAGS': [
96 '-sectcreate', 95 '-sectcreate',
97 '__TEXT', 96 '__TEXT',
98 '__info_plist', 97 '__info_plist',
99 '<(sectaskaccess_info_plist)' 98 '<(sectaskaccess_info_plist)'
100 ], 99 ],
101 }, 100 },
102 }, 101 },
103 { 102 {
104 'target_name': 'generate_dump', 103 'target_name': 'generate_dump',
105 'type': 'executable', 104 'type': 'executable',
106 'dependencies': [ 105 'dependencies': [
107 'crashpad_tool_support', 106 'crashpad_tool_support',
108 '../compat/compat.gyp:crashpad_compat', 107 '../compat/compat.gyp:crashpad_compat',
109 '../minidump/minidump.gyp:crashpad_minidump', 108 '../minidump/minidump.gyp:crashpad_minidump',
110 '../snapshot/snapshot.gyp:crashpad_snapshot', 109 '../snapshot/snapshot.gyp:crashpad_snapshot',
111 '../third_party/mini_chromium/mini_chromium/base/base.gyp:base', 110 '../third_party/mini_chromium/mini_chromium.gyp:base',
112 '../util/util.gyp:crashpad_util', 111 '../util/util.gyp:crashpad_util',
113 ], 112 ],
114 'include_dirs': [ 113 'include_dirs': [
115 '..', 114 '..',
116 ], 115 ],
117 'sources': [ 116 'sources': [
118 'generate_dump.cc', 117 'generate_dump.cc',
119 ], 118 ],
120 'xcode_settings': { 119 'xcode_settings': {
121 'OTHER_LDFLAGS': [ 120 'OTHER_LDFLAGS': [
122 '-sectcreate', 121 '-sectcreate',
123 '__TEXT', 122 '__TEXT',
124 '__info_plist', 123 '__info_plist',
125 '<(sectaskaccess_info_plist)' 124 '<(sectaskaccess_info_plist)'
126 ], 125 ],
127 }, 126 },
128 }, 127 },
129 { 128 {
130 'target_name': 'on_demand_service_tool', 129 'target_name': 'on_demand_service_tool',
131 'type': 'executable', 130 'type': 'executable',
132 'dependencies': [ 131 'dependencies': [
133 'crashpad_tool_support', 132 'crashpad_tool_support',
134 '../compat/compat.gyp:crashpad_compat', 133 '../compat/compat.gyp:crashpad_compat',
135 '../third_party/mini_chromium/mini_chromium/base/base.gyp:base', 134 '../third_party/mini_chromium/mini_chromium.gyp:base',
136 '../util/util.gyp:crashpad_util', 135 '../util/util.gyp:crashpad_util',
137 ], 136 ],
138 'include_dirs': [ 137 'include_dirs': [
139 '..', 138 '..',
140 ], 139 ],
141 'link_settings': { 140 'link_settings': {
142 'libraries': [ 141 'libraries': [
143 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', 142 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
144 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', 143 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
145 ], 144 ],
146 }, 145 },
147 'sources': [ 146 'sources': [
148 'mac/on_demand_service_tool.mm', 147 'mac/on_demand_service_tool.mm',
149 ], 148 ],
150 }, 149 },
151 { 150 {
152 'target_name': 'run_with_crashpad', 151 'target_name': 'run_with_crashpad',
153 'type': 'executable', 152 'type': 'executable',
154 'dependencies': [ 153 'dependencies': [
155 'crashpad_tool_support', 154 'crashpad_tool_support',
156 '../client/client.gyp:crashpad_client', 155 '../client/client.gyp:crashpad_client',
157 '../compat/compat.gyp:crashpad_compat', 156 '../compat/compat.gyp:crashpad_compat',
158 '../third_party/mini_chromium/mini_chromium/base/base.gyp:base', 157 '../third_party/mini_chromium/mini_chromium.gyp:base',
159 ], 158 ],
160 'include_dirs': [ 159 'include_dirs': [
161 '..', 160 '..',
162 ], 161 ],
163 'sources': [ 162 'sources': [
164 'mac/run_with_crashpad.cc', 163 'mac/run_with_crashpad.cc',
165 ], 164 ],
166 }, 165 },
167 ], 166 ],
168 }, { 167 }, {
169 'targets': [], 168 'targets': [],
170 }], 169 }],
171 ], 170 ],
172 } 171 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698