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

Side by Side Diff: util/util.gyp

Issue 620553004: Superficial gyp changes to not immediately error out on Windows (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: guard all tools in if mac Created 6 years, 2 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 | « tools/tools.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and 12 # See the License for the specific language governing permissions and
13 # limitations under the License. 13 # limitations under the License.
14 14
15 { 15 {
16 'targets': [ 16 'targets': [
17 { 17 {
18 'target_name': 'util', 18 'target_name': 'util',
19 'type': 'static_library', 19 'type': 'static_library',
20 'dependencies': [ 20 'dependencies': [
21 '../compat/compat.gyp:compat', 21 '../compat/compat.gyp:compat',
22 '../third_party/mini_chromium/mini_chromium/base/base.gyp:base', 22 '../third_party/mini_chromium/mini_chromium/base/base.gyp:base',
23 ], 23 ],
24 'include_dirs': [ 24 'include_dirs': [
25 '..', 25 '..',
26 '<(INTERMEDIATE_DIR)', 26 '<(INTERMEDIATE_DIR)',
27 ], 27 ],
28 'link_settings': {
29 'libraries': [
30 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
31 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
32 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
33 ],
34 },
35 'sources': [ 28 'sources': [
36 'file/fd_io.cc', 29 'file/fd_io.cc',
37 'file/fd_io.h', 30 'file/fd_io.h',
38 'file/file_writer.cc', 31 'file/file_writer.cc',
39 'file/file_writer.h', 32 'file/file_writer.h',
40 'file/string_file_writer.cc', 33 'file/string_file_writer.cc',
41 'file/string_file_writer.h', 34 'file/string_file_writer.h',
42 'mac/checked_mach_address_range.cc', 35 'mac/checked_mach_address_range.cc',
43 'mac/checked_mach_address_range.h', 36 'mac/checked_mach_address_range.h',
44 'mac/launchd.h', 37 'mac/launchd.h',
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 'stdlib/pointer_container.h', 99 'stdlib/pointer_container.h',
107 'stdlib/string_number_conversion.cc', 100 'stdlib/string_number_conversion.cc',
108 'stdlib/string_number_conversion.h', 101 'stdlib/string_number_conversion.h',
109 'stdlib/strlcpy.cc', 102 'stdlib/strlcpy.cc',
110 'stdlib/strlcpy.h', 103 'stdlib/strlcpy.h',
111 'stdlib/strnlen.cc', 104 'stdlib/strnlen.cc',
112 'stdlib/strnlen.h', 105 'stdlib/strnlen.h',
113 'synchronization/semaphore.cc', 106 'synchronization/semaphore.cc',
114 'synchronization/semaphore.h', 107 'synchronization/semaphore.h',
115 ], 108 ],
116 'actions': [ 109 'conditions': [
117 { 110 ['OS=="mac"', {
118 'action_name': 'mig exc.defs', 111 'actions': [
119 'inputs': [ 112 {
120 'mach/mig.py', 113 'action_name': 'mig exc.defs',
121 '$(SDKROOT)/usr/include/mach/exc.defs', 114 'inputs': [
115 'mach/mig.py',
116 '$(SDKROOT)/usr/include/mach/exc.defs',
117 ],
118 'outputs': [
119 '<(INTERMEDIATE_DIR)/util/mach/excUser.c',
120 '<(INTERMEDIATE_DIR)/util/mach/excServer.c',
121 '<(INTERMEDIATE_DIR)/util/mach/exc.h',
122 '<(INTERMEDIATE_DIR)/util/mach/excServer.h',
123 ],
124 'action': [
125 'python', '<@(_inputs)', '<@(_outputs)'
126 ],
127 'process_outputs_as_sources': 1,
128 },
129 {
130 'action_name': 'mig mach_exc.defs',
131 'inputs': [
132 'mach/mig.py',
133 '$(SDKROOT)/usr/include/mach/mach_exc.defs',
134 ],
135 'outputs': [
136 '<(INTERMEDIATE_DIR)/util/mach/mach_excUser.c',
137 '<(INTERMEDIATE_DIR)/util/mach/mach_excServer.c',
138 '<(INTERMEDIATE_DIR)/util/mach/mach_exc.h',
139 '<(INTERMEDIATE_DIR)/util/mach/mach_excServer.h',
140 ],
141 'action': [
142 'python', '<@(_inputs)', '<@(_outputs)'
143 ],
144 'process_outputs_as_sources': 1,
145 },
122 ], 146 ],
123 'outputs': [ 147 'link_settings': {
124 '<(INTERMEDIATE_DIR)/util/mach/excUser.c', 148 'libraries': [
125 '<(INTERMEDIATE_DIR)/util/mach/excServer.c', 149 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
126 '<(INTERMEDIATE_DIR)/util/mach/exc.h', 150 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
127 '<(INTERMEDIATE_DIR)/util/mach/excServer.h', 151 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
128 ], 152 ],
129 'action': [ 153 },
130 'python', '<@(_inputs)', '<@(_outputs)' 154 }],
131 ],
132 'process_outputs_as_sources': 1,
133 },
134 {
135 'action_name': 'mig mach_exc.defs',
136 'inputs': [
137 'mach/mig.py',
138 '$(SDKROOT)/usr/include/mach/mach_exc.defs',
139 ],
140 'outputs': [
141 '<(INTERMEDIATE_DIR)/util/mach/mach_excUser.c',
142 '<(INTERMEDIATE_DIR)/util/mach/mach_excServer.c',
143 '<(INTERMEDIATE_DIR)/util/mach/mach_exc.h',
144 '<(INTERMEDIATE_DIR)/util/mach/mach_excServer.h',
145 ],
146 'action': [
147 'python', '<@(_inputs)', '<@(_outputs)'
148 ],
149 'process_outputs_as_sources': 1,
150 },
151 ], 155 ],
152 }, 156 },
153 { 157 {
154 'target_name': 'util_test_lib', 158 'target_name': 'util_test_lib',
155 'type': 'static_library', 159 'type': 'static_library',
156 'dependencies': [ 160 'dependencies': [
157 '../compat/compat.gyp:compat', 161 '../compat/compat.gyp:compat',
158 '../third_party/gtest/gtest.gyp:gtest', 162 '../third_party/gtest/gtest.gyp:gtest',
159 '../third_party/mini_chromium/mini_chromium/base/base.gyp:base', 163 '../third_party/mini_chromium/mini_chromium/base/base.gyp:base',
160 'util', 164 'util',
161 ], 165 ],
162 'include_dirs': [ 166 'include_dirs': [
163 '..', 167 '..',
164 ], 168 ],
165 'link_settings': {
166 'libraries': [
167 '$(SDKROOT)/usr/lib/libbsm.dylib',
168 ],
169 },
170 'sources': [ 169 'sources': [
171 'test/errors.cc', 170 'test/errors.cc',
172 'test/errors.h', 171 'test/errors.h',
173 'test/executable_path.h', 172 'test/executable_path.h',
174 'test/executable_path_mac.cc', 173 'test/executable_path_mac.cc',
175 'test/mac/dyld.h', 174 'test/mac/dyld.h',
176 'test/mac/mach_errors.cc', 175 'test/mac/mach_errors.cc',
177 'test/mac/mach_errors.h', 176 'test/mac/mach_errors.h',
178 'test/mac/mach_multiprocess.cc', 177 'test/mac/mach_multiprocess.cc',
179 'test/mac/mach_multiprocess.h', 178 'test/mac/mach_multiprocess.h',
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 'posix/symbolic_constants_posix_test.cc', 230 'posix/symbolic_constants_posix_test.cc',
232 'stdlib/string_number_conversion_test.cc', 231 'stdlib/string_number_conversion_test.cc',
233 'stdlib/strlcpy_test.cc', 232 'stdlib/strlcpy_test.cc',
234 'stdlib/strnlen_test.cc', 233 'stdlib/strnlen_test.cc',
235 'synchronization/semaphore_test.cc', 234 'synchronization/semaphore_test.cc',
236 'test/executable_path_test.cc', 235 'test/executable_path_test.cc',
237 'test/mac/mach_multiprocess_test.cc', 236 'test/mac/mach_multiprocess_test.cc',
238 'test/multiprocess_exec_test.cc', 237 'test/multiprocess_exec_test.cc',
239 'test/multiprocess_test.cc', 238 'test/multiprocess_test.cc',
240 ], 239 ],
240 'conditions': [
241 ['OS=="mac"', {
242 'link_settings': {
243 'libraries': [
244 '$(SDKROOT)/usr/lib/libbsm.dylib',
245 ],
246 },
247 }],
248 ],
241 }, 249 },
242 { 250 {
243 'target_name': 'util_test_multiprocess_exec_test_child', 251 'target_name': 'util_test_multiprocess_exec_test_child',
244 'type': 'executable', 252 'type': 'executable',
245 'sources': [ 253 'sources': [
246 'test/multiprocess_exec_test_child.cc', 254 'test/multiprocess_exec_test_child.cc',
247 ], 255 ],
248 }, 256 },
249 ], 257 ],
250 } 258 }
OLDNEW
« no previous file with comments | « tools/tools.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698