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

Side by Side Diff: bin/bin.gypi

Issue 8772016: Refactor the gypi files to eliminate some redundancy. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | bin/bin_sources.gypi » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'builtin_in_cc_file': 'builtin_in.cc', 7 'builtin_in_cc_file': 'builtin_in.cc',
8 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', 8 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc',
9 'snapshot_in_cc_file': 'snapshot_in.cc', 9 'snapshot_in_cc_file': 'snapshot_in.cc',
10 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', 10 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin',
11 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', 11 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc',
12 'cygwin_dir': '../../third_party/cygwin', 12 'cygwin_dir': '../../third_party/cygwin',
13 }, 13 },
14 'targets': [ 14 'targets': [
15 { 15 {
16 'target_name': 'generate_builtin_cc_file', 16 'target_name': 'generate_builtin_cc_file',
17 'type': 'none', 17 'type': 'none',
18 'conditions': [ 18 'conditions': [
19 ['OS=="win"', { 19 ['OS=="win"', {
20 'msvs_cygwin_dirs': ['<(cygwin_dir)'], 20 'msvs_cygwin_dirs': ['<(cygwin_dir)'],
21 }], 21 }],
22 ], 22 ],
23 'sources': [ 23 'sources': [
24 'builtin.dart', 24 'builtin.dart',
Ivan Posva 2011/12/01 22:19:31 We should add those to the builtin_sources.gypi fi
siva 2011/12/01 23:03:25 Done.
25 'buffer_list.dart', 25 'buffer_list.dart',
26 'directory.dart', 26 'directory.dart',
27 'directory_impl.dart', 27 'directory_impl.dart',
28 'eventhandler.dart', 28 'eventhandler.dart',
29 'file.dart', 29 'file.dart',
30 'file_impl.dart', 30 'file_impl.dart',
31 'input_stream.dart', 31 'input_stream.dart',
32 'output_stream.dart', 32 'output_stream.dart',
33 'string_stream.dart', 33 'string_stream.dart',
34 'platform.dart', 34 'platform.dart',
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 'type': 'static_library', 68 'type': 'static_library',
69 'dependencies': [ 69 'dependencies': [
70 'generate_builtin_cc_file', 70 'generate_builtin_cc_file',
71 ], 71 ],
72 'include_dirs': [ 72 'include_dirs': [
73 '..', 73 '..',
74 ], 74 ],
75 'sources': [ 75 'sources': [
76 'builtin_natives.cc', 76 'builtin_natives.cc',
77 'builtin.h', 77 'builtin.h',
78 'dartutils.h', 78 ],
79 'dartutils.cc', 79 'includes': [
80 'directory.h', 80 'bin_sources.gypi',
Ivan Posva 2011/12/01 22:19:31 builtin_sources.gypi? bin_sources I would expect t
siva 2011/12/01 23:03:25 Done.
81 'directory.cc', 81 ],
82 'directory_posix.cc', 82 'sources/': [
83 'directory_win.cc', 83 ['exclude', '_test\\.(cc|h)$'],
84 'eventhandler.cc',
85 'eventhandler.h',
86 'eventhandler_linux.cc',
87 'eventhandler_linux.h',
88 'eventhandler_macos.cc',
89 'eventhandler_macos.h',
90 'eventhandler_win.cc',
91 'eventhandler_win.h',
92 'file.cc',
93 'file.h',
94 'file_linux.cc',
95 'file_macos.cc',
96 'file_win.cc',
97 'fdutils.h',
98 'fdutils_linux.cc',
99 'fdutils_macos.cc',
100 'globals.h',
101 'platform.cc',
102 'platform.h',
103 'platform_linux.cc',
104 'platform_macos.cc',
105 'platform_win.cc',
106 'process.cc',
107 'process.h',
108 'process_linux.cc',
109 'process_macos.cc',
110 'process_win.cc',
111 'socket.cc',
112 'socket.h',
113 'socket_linux.cc',
114 'socket_macos.cc',
115 'socket_win.cc',
116 'set.h',
117 ], 84 ],
118 'conditions': [ 85 'conditions': [
119 ['OS=="win"', {'sources/' : [ 86 ['OS=="win"', {'sources/' : [
120 ['exclude', 'fdutils.h'], 87 ['exclude', 'fdutils.h'],
121 ]}], 88 ]}],
122 ], 89 ],
123 }, 90 },
124 { 91 {
125 'target_name': 'libdart_withcore', 92 'target_name': 'libdart_withcore',
126 'type': 'static_library', 93 'type': 'static_library',
127 'dependencies': [ 94 'dependencies': [
128 'libdart_lib_withcore', 95 'libdart_lib_withcore',
129 'libdart_vm', 96 'libdart_vm',
130 'libjscre', 97 'libjscre',
131 'libdouble_conversion', 98 'libdouble_conversion',
132 ], 99 ],
133 'include_dirs': [ 100 'include_dirs': [
134 '..', 101 '..',
135 ], 102 ],
136 'sources': [ 103 'sources': [
137 '../include/dart_api.h', 104 '../include/dart_api.h',
138 '../vm/dart_api_impl.cc', 105 '../vm/dart_api_impl.cc',
139 ], 106 ],
140 }, 107 },
141 { 108 {
142 # Completely statically linked dart binary.
143 'target_name': 'dart_no_snapshot',
144 'type': 'executable',
145 'dependencies': [
146 'libdart_withcore',
147 'libdart_builtin',
148 ],
149 'include_dirs': [
150 '..',
151 ],
152 'sources': [
153 'main.cc',
154 'snapshot_empty.cc',
155 'builtin.cc',
156 # Include generated source files.
157 '<(builtin_cc_file)',
158 ],
159 'conditions': [
160 ['OS=="win"', {
161 'link_settings': {
162 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ],
163 },
164 }]],
165 },
166 {
167 # Completely statically linked binary for generating snapshots. 109 # Completely statically linked binary for generating snapshots.
168 'target_name': 'gen_snapshot', 110 'target_name': 'gen_snapshot',
169 'type': 'executable', 111 'type': 'executable',
170 'dependencies': [ 112 'dependencies': [
171 'libdart_withcore', 113 'libdart_withcore',
172 'libdart_builtin', 114 'libdart_builtin',
173 ], 115 ],
174 'include_dirs': [ 116 'include_dirs': [
175 '..', 117 '..',
176 ], 118 ],
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 'type': 'executable', 192 'type': 'executable',
251 'sources': [ 193 'sources': [
252 'process_test.cc', 194 'process_test.cc',
253 ] 195 ]
254 }, 196 },
255 { 197 {
256 'target_name': 'run_vm_tests', 198 'target_name': 'run_vm_tests',
257 'type': 'executable', 199 'type': 'executable',
258 'dependencies': [ 200 'dependencies': [
259 'libdart_withcore', 201 'libdart_withcore',
202 'libdart_builtin',
260 'generate_snapshot_test_dat_file', 203 'generate_snapshot_test_dat_file',
261 ], 204 ],
262 'include_dirs': [ 205 'include_dirs': [
263 '..', 206 '..',
264 '<(SHARED_INTERMEDIATE_DIR)', 207 '<(SHARED_INTERMEDIATE_DIR)',
265 ], 208 ],
266 'sources': [ 209 'sources': [
267 'run_vm_tests.cc', 210 'run_vm_tests.cc',
268 'dartutils.h',
269 'dartutils.cc',
270 'directory.h',
271 'directory.cc',
272 'directory_posix.cc',
273 'directory_win.cc',
274 'eventhandler.cc',
275 'eventhandler.h',
276 'eventhandler_linux.cc',
277 'eventhandler_linux.h',
278 'eventhandler_macos.cc',
279 'eventhandler_macos.h',
280 'eventhandler_win.cc',
281 'eventhandler_win.h',
282 'file.cc',
283 'file.h',
284 'file_test.cc',
285 'file_linux.cc',
286 'file_macos.cc',
287 'file_win.cc',
288 'fdutils.h',
289 'fdutils_linux.cc',
290 'fdutils_macos.cc',
291 'platform.cc',
292 'platform.h',
293 'platform_linux.cc',
294 'platform_macos.cc',
295 'platform_win.cc',
296 'process.cc',
297 'process.h',
298 'process_linux.cc',
299 'process_macos.cc',
300 'process_win.cc',
301 'socket.cc',
302 'socket.h',
303 'socket_linux.cc',
304 'socket_macos.cc',
305 'socket_win.cc',
306 'set.h',
307 'set_test.cc',
308 ], 211 ],
309 'includes': [ 212 'includes': [
213 'bin_sources.gypi',
310 '../vm/vm_sources.gypi', 214 '../vm/vm_sources.gypi',
311 ], 215 ],
312 'defines': [ 216 'defines': [
313 'TESTING', 217 'TESTING',
314 ], 218 ],
315 # Only include _test.[cc|h] files. 219 # Only include _test.[cc|h] files.
316 'sources/': [ 220 'sources/': [
317 ['exclude', '\\.(cc|h)$'], 221 ['exclude', '\\.(cc|h)$'],
318 ['include', '_test\\.(cc|h)$'], 222 ['include', '_test\\.(cc|h)$'],
319 ['include', 'run_vm_tests.cc'], 223 ['include', 'run_vm_tests.cc'],
320 ['include', 'dart_api_impl.cc'],
Ivan Posva 2011/12/01 22:19:31 Great cleanup!
321 ['include', 'dartutils.h'],
322 ['include', 'dartutils.cc'],
323 ['include', 'directory.h'],
324 ['include', 'directory.cc'],
325 ['include', 'eventhandler.cc'],
326 ['include', 'eventhandler.h'],
327 ['include', 'file.cc'],
328 ['include', 'file.h'],
329 ['include', 'file_test.cc'],
330 ['include', 'platform.cc'],
331 ['include', 'platform.h'],
332 ['include', 'process.cc'],
333 ['include', 'process.h'],
334 ['include', 'socket.cc'],
335 ['include', 'socket.h'],
336 ['include', 'set_test.cc'],
337 ], 224 ],
338 'conditions': [ 225 'conditions': [
339 ['OS=="linux"', {'sources/' : [
340 ['include', 'directory_posix.cc'],
341 ['include', 'eventhandler_linux.cc'],
342 ['include', 'eventhandler_linux.h'],
343 ['include', 'fdutils.h'],
344 ['include', 'fdutils_linux.cc'],
345 ['include', 'file_linux.cc'],
346 ['include', 'platform_linux.cc'],
347 ['include', 'process_linux.cc'],
348 ['include', 'socket_linux.cc'],
349 ]}],
350 ['OS=="mac"', {'sources/' : [
351 ['include', 'directory_posix.cc'],
352 ['include', 'eventhandler_macos.cc'],
353 ['include', 'eventhandler_macos.h'],
354 ['include', 'fdutils.h'],
355 ['include', 'fdutils_macos.cc'],
356 ['include', 'file_macos.cc'],
357 ['include', 'platform_macos.cc'],
358 ['include', 'process_macos.cc'],
359 ['include', 'socket_macos.cc'],
360 ]}],
361 ['OS=="win"', {'sources/' : [
362 ['include', 'directory_win.cc'],
363 ['include', 'eventhandler_win.cc'],
364 ['include', 'eventhandler_win.h'],
365 ['include', 'file_win.cc'],
366 ['include', 'platform_win.cc'],
367 ['include', 'process_win.cc'],
368 ['include', 'socket_win.cc'],
369 ]}],
370 ['OS=="win"', { 226 ['OS=="win"', {
371 'link_settings': { 227 'link_settings': {
372 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], 228 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ],
373 }, 229 },
374 }], 230 }],
375 ], 231 ],
376 }, 232 },
377 ], 233 ],
378 } 234 }
OLDNEW
« no previous file with comments | « no previous file | bin/bin_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698