This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
base.gyp
418 lines (418 loc) · 16.7 KB
/
base.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
{
'targets': [
{
'target_name': 'base',
'type': 'static_library',
'direct_dependent_settings': {
'include_dirs': [
'src',
],
'xcode_settings': {
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++11',
'CLANG_CXX_LIBRARY': 'libstdc++',
},
'cflags_cc': [
'-std=c++0x',
],
'conditions': [
['OS=="linux"', {
'ldflags': [
'-pthread',
],
}],
],
},
'include_dirs': [
'src',
],
'xcode_settings': {
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++11',
'CLANG_CXX_LIBRARY': 'libstdc++',
},
'cflags_cc': [
'-std=c++0x',
],
# In Chromium code, we define __STDC_foo_MACROS in order to get the
# C99 macros on Mac and Linux.
'defines': [
'__STDC_CONSTANT_MACROS',
'__STDC_FORMAT_MACROS',
],
'conditions': [
['OS=="win"', {
'sources!': [
'src/base/message_loop/message_pump_libevent.cc',
'src/base/message_loop/message_pump_libevent.h',
'src/base/strings/string16.cc',
'src/base/strings/string16.h',
],
}],
['OS=="linux"', {
'dependencies': [
'src/third_party/libevent/libevent.gyp:libevent'
],
'sources': [
'src/base/nix/xdg_util.cc',
],
}],
],
'sources': [
'src/base/at_exit.cc',
'src/base/at_exit.h',
'src/base/atomic_ref_count.h',
'src/base/atomicops.h',
'src/base/atomicops_internals_arm_gcc.h',
'src/base/atomicops_internals_atomicword_compat.h',
'src/base/atomicops_internals_gcc.h',
'src/base/atomicops_internals_mac.h',
'src/base/atomicops_internals_mips_gcc.h',
'src/base/atomicops_internals_tsan.h',
'src/base/atomicops_internals_x86_gcc.cc',
'src/base/atomicops_internals_x86_gcc.h',
'src/base/atomicops_internals_x86_msvc.h',
'src/base/base_export.h',
'src/base/base_paths.cc',
'src/base/base_paths_posix.cc',
'src/base/base_paths_win.cc',
'src/base/base_switches.cc',
'src/base/base_switches.h',
'src/base/basictypes.h',
'src/base/bind.h',
'src/base/bind_helpers.cc',
'src/base/bind_helpers.h',
'src/base/bind_internal.h',
'src/base/bind_internal_win.h',
'src/base/callback.h',
'src/base/callback_forward.h',
'src/base/callback_helpers.cc',
'src/base/callback_helpers.h',
'src/base/callback_internal.cc',
'src/base/callback_internal.h',
'src/base/callback_registry.h',
'src/base/cancelable_callback.h',
'src/base/command_line.cc',
'src/base/command_line.h',
'src/base/compiler_specific.h',
'src/base/containers/hash_tables.h',
'src/base/containers/linked_list.h',
'src/base/containers/mru_cache.h',
'src/base/containers/scoped_ptr_hash_map.h',
'src/base/containers/small_map.h',
'src/base/containers/stack_container.h',
'src/base/cpu.cc',
'src/base/cpu.h',
'src/base/debug/alias.cc',
'src/base/debug/alias.h',
'src/base/debug/asan_invalid_access.cc',
'src/base/debug/asan_invalid_access.h',
'src/base/debug/crash_logging.cc',
'src/base/debug/crash_logging.h',
'src/base/debug/debugger.cc',
'src/base/debug/debugger.h',
'src/base/debug/debugger_posix.cc',
'src/base/debug/debugger_win.cc',
'src/base/debug/dump_without_crashing.cc',
'src/base/debug/dump_without_crashing.h',
'src/base/debug/leak_annotations.h',
'src/base/debug/leak_tracker.h',
'src/base/debug/proc_maps_linux.cc',
'src/base/debug/proc_maps_linux.h',
'src/base/debug/profiler.cc',
'src/base/debug/profiler.h',
'src/base/debug/stack_trace.cc',
'src/base/debug/stack_trace.h',
'src/base/debug/stack_trace_posix.cc',
'src/base/debug/stack_trace_win.cc',
'src/base/debug/task_annotator.cc',
'src/base/debug/task_annotator.h',
'src/base/debug/trace_event.h',
'src/base/debug/trace_event_argument.cc',
'src/base/debug/trace_event_argument.h',
'src/base/debug/trace_event_impl.cc',
'src/base/debug/trace_event_impl.h',
'src/base/debug/trace_event_impl_constants.cc',
'src/base/debug/trace_event_memory.cc',
'src/base/debug/trace_event_memory.h',
'src/base/debug/trace_event_synthetic_delay.cc',
'src/base/debug/trace_event_synthetic_delay.h',
'src/base/debug/trace_event_system_stats_monitor.cc',
'src/base/debug/trace_event_system_stats_monitor.h',
'src/base/debug/trace_event_win.cc',
'src/base/debug/trace_event_win.h',
'src/base/environment.cc',
'src/base/files/file.cc',
'src/base/files/file.h',
'src/base/files/file_enumerator.cc',
'src/base/files/file_enumerator.h',
'src/base/files/file_enumerator_posix.cc',
'src/base/files/file_enumerator_win.cc',
'src/base/files/file_path.cc',
'src/base/files/file_path.h',
'src/base/files/file_path_constants.cc',
'src/base/files/file_posix.cc',
'src/base/files/file_util.cc',
'src/base/files/file_util.h',
'src/base/files/file_util_linux.cc',
'src/base/files/file_util_posix.cc',
'src/base/files/file_util_win.cc',
'src/base/files/file_win.cc',
'src/base/files/scoped_file.cc',
'src/base/files/scoped_file.h',
'src/base/files/scoped_temp_dir.cc',
'src/base/files/scoped_temp_dir.h',
'src/base/hash.cc',
'src/base/hash.h',
'src/base/json/json_file_value_serializer.cc',
'src/base/json/json_file_value_serializer.h',
'src/base/json/json_parser.cc',
'src/base/json/json_parser.h',
'src/base/json/json_reader.cc',
'src/base/json/json_reader.h',
'src/base/json/json_string_value_serializer.cc',
'src/base/json/json_string_value_serializer.h',
'src/base/json/json_value_converter.cc',
'src/base/json/json_value_converter.h',
'src/base/json/json_writer.cc',
'src/base/json/json_writer.h',
'src/base/json/string_escape.cc',
'src/base/json/string_escape.h',
'src/base/lazy_instance.cc',
'src/base/lazy_instance.h',
'src/base/location.cc',
'src/base/location.h',
'src/base/logging.cc',
'src/base/logging.h',
'src/base/md5.cc',
'src/base/memory/raw_scoped_refptr_mismatch_checker.h',
'src/base/memory/ref_counted.cc',
'src/base/memory/ref_counted.h',
'src/base/memory/ref_counted_memory.cc',
'src/base/memory/ref_counted_memory.h',
'src/base/memory/scoped_handle.h',
'src/base/memory/scoped_policy.h',
'src/base/memory/scoped_ptr.h',
'src/base/memory/scoped_vector.h',
'src/base/memory/singleton.cc',
'src/base/memory/singleton.h',
'src/base/memory/weak_ptr.cc',
'src/base/memory/weak_ptr.h',
'src/base/message_loop/incoming_task_queue.cc',
'src/base/message_loop/incoming_task_queue.h',
'src/base/message_loop/message_loop.cc',
'src/base/message_loop/message_loop.h',
'src/base/message_loop/message_loop_proxy.cc',
'src/base/message_loop/message_loop_proxy.h',
'src/base/message_loop/message_loop_proxy_impl.cc',
'src/base/message_loop/message_loop_proxy_impl.h',
'src/base/message_loop/message_pump.cc',
'src/base/message_loop/message_pump.h',
'src/base/message_loop/message_pump_default.cc',
'src/base/message_loop/message_pump_default.h',
'src/base/message_loop/message_pump_libevent.cc',
'src/base/message_loop/message_pump_libevent.h',
'src/base/message_loop/message_pump_win.cc',
'src/base/message_loop/message_pump_win.h',
'src/base/message_loop/timer_slack.h',
'src/base/move.h',
'src/base/path_service.cc',
'src/base/path_service.h',
'src/base/pending_task.cc',
'src/base/pending_task.h',
'src/base/pickle.cc',
'src/base/pickle.h',
'src/base/port.h',
'src/base/process/internal_linux.cc',
'src/base/process/kill.cc',
'src/base/process/kill.h',
'src/base/process/kill_posix.cc',
'src/base/process/kill_win.cc',
'src/base/process/launch.cc',
'src/base/process/launch.h',
'src/base/process/launch_posix.cc',
'src/base/process/launch_win.cc',
'src/base/process/memory.cc',
'src/base/process/memory.h',
'src/base/process/memory_linux.cc',
'src/base/process/memory_win.cc',
'src/base/process/process.h',
'src/base/process/process_handle.h',
'src/base/process/process_handle_linux.cc',
'src/base/process/process_handle_posix.cc',
'src/base/process/process_handle_win.cc',
'src/base/process/process_iterator.cc',
'src/base/process/process_iterator.h',
'src/base/process/process_iterator_linux.cc',
'src/base/process/process_iterator_win.cc',
'src/base/process/process_linux.cc',
'src/base/process/process_metrics.cc',
'src/base/process/process_metrics_linux.cc',
'src/base/process/process_metrics_posix.cc',
'src/base/process/process_metrics_win.cc',
'src/base/process/process_win.cc',
'src/base/profiler/alternate_timer.cc',
'src/base/profiler/alternate_timer.h',
'src/base/profiler/scoped_profile.cc',
'src/base/profiler/scoped_profile.h',
'src/base/profiler/scoped_tracker.cc',
'src/base/profiler/scoped_tracker.h',
'src/base/profiler/tracked_time.cc',
'src/base/profiler/tracked_time.h',
'src/base/rand_util.cc',
'src/base/rand_util.h',
'src/base/rand_util_posix.cc',
'src/base/rand_util_win.cc',
'src/base/run_loop.cc',
'src/base/run_loop.h',
'src/base/safe_strerror_posix.cc',
'src/base/safe_strerror_posix.h',
'src/base/scoped_clear_errno.h',
'src/base/sequence_checker.h',
'src/base/sequence_checker_impl.cc',
'src/base/sequence_checker_impl.h',
'src/base/sequenced_task_runner.cc',
'src/base/sequenced_task_runner.h',
'src/base/stl_util.h',
'src/base/strings/string16.cc',
'src/base/strings/string16.h',
'src/base/strings/string_number_conversions.cc',
'src/base/strings/string_number_conversions.h',
'src/base/strings/string_piece.cc',
'src/base/strings/string_piece.h',
'src/base/strings/string_split.cc',
'src/base/strings/string_split.h',
'src/base/strings/string_tokenizer.h',
'src/base/strings/string_util.cc',
'src/base/strings/string_util.h',
'src/base/strings/string_util_constants.cc',
'src/base/strings/string_util_posix.h',
'src/base/strings/string_util_win.h',
'src/base/strings/stringize_macros.h',
'src/base/strings/stringprintf.cc',
'src/base/strings/stringprintf.h',
'src/base/strings/sys_string_conversions.h',
'src/base/strings/sys_string_conversions_posix.cc',
'src/base/strings/sys_string_conversions_win.cc',
'src/base/strings/utf_string_conversion_utils.cc',
'src/base/strings/utf_string_conversion_utils.h',
'src/base/strings/utf_string_conversions.cc',
'src/base/strings/utf_string_conversions.h',
'src/base/synchronization/cancellation_flag.cc',
'src/base/synchronization/cancellation_flag.h',
'src/base/synchronization/condition_variable.h',
'src/base/synchronization/condition_variable_posix.cc',
'src/base/synchronization/condition_variable_win.cc',
'src/base/synchronization/lock.cc',
'src/base/synchronization/lock.h',
'src/base/synchronization/lock_impl.h',
'src/base/synchronization/lock_impl_posix.cc',
'src/base/synchronization/lock_impl_win.cc',
'src/base/synchronization/waitable_event.h',
'src/base/synchronization/waitable_event_posix.cc',
'src/base/synchronization/waitable_event_win.cc',
'src/base/sys_info.cc',
'src/base/sys_info.h',
'src/base/sys_info_linux.cc',
'src/base/sys_info_posix.cc',
'src/base/sys_info_win.cc',
'src/base/task_runner.cc',
'src/base/task_runner.h',
'src/base/template_util.h',
'src/base/third_party/dmg_fp/dmg_fp.h',
'src/base/third_party/dmg_fp/dtoa_wrapper.cc',
'src/base/third_party/dmg_fp/g_fmt.cc',
'src/base/third_party/dynamic_annotations/LICENSE',
'src/base/third_party/dynamic_annotations/README.chromium',
'src/base/third_party/dynamic_annotations/dynamic_annotations.c',
'src/base/third_party/dynamic_annotations/dynamic_annotations.gyp',
'src/base/third_party/dynamic_annotations/dynamic_annotations.h',
'src/base/third_party/icu/icu_utf.cc',
'src/base/third_party/icu/icu_utf.h',
'src/base/third_party/nspr/prtime.cc',
'src/base/third_party/nspr/prtime.h',
'src/base/third_party/valgrind/memcheck.h',
'src/base/third_party/valgrind/valgrind.h',
'src/base/third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
'src/base/thread_task_runner_handle.cc',
'src/base/thread_task_runner_handle.h',
'src/base/threading/non_thread_safe.h',
'src/base/threading/non_thread_safe_impl.cc',
'src/base/threading/non_thread_safe_impl.h',
'src/base/threading/platform_thread.h',
'src/base/threading/platform_thread_linux.cc',
'src/base/threading/platform_thread_posix.cc',
'src/base/threading/platform_thread_win.cc',
'src/base/threading/post_task_and_reply_impl.cc',
'src/base/threading/post_task_and_reply_impl.h',
'src/base/threading/sequenced_worker_pool.cc',
'src/base/threading/sequenced_worker_pool.h',
'src/base/threading/simple_thread.cc',
'src/base/threading/simple_thread.h',
'src/base/threading/thread.cc',
'src/base/threading/thread.h',
'src/base/threading/thread_checker.h',
'src/base/threading/thread_checker_impl.cc',
'src/base/threading/thread_checker_impl.h',
'src/base/threading/thread_collision_warner.cc',
'src/base/threading/thread_collision_warner.h',
'src/base/threading/thread_id_name_manager.cc',
'src/base/threading/thread_id_name_manager.h',
'src/base/threading/thread_local.h',
'src/base/threading/thread_local_posix.cc',
'src/base/threading/thread_local_storage.cc',
'src/base/threading/thread_local_storage.h',
'src/base/threading/thread_local_storage_posix.cc',
'src/base/threading/thread_local_storage_win.cc',
'src/base/threading/thread_local_win.cc',
'src/base/threading/thread_restrictions.cc',
'src/base/threading/thread_restrictions.h',
'src/base/threading/worker_pool.cc',
'src/base/threading/worker_pool_posix.cc',
'src/base/threading/worker_pool_win.cc',
'src/base/time/time.cc',
'src/base/time/time.h',
'src/base/time/time_posix.cc',
'src/base/time/time_win.cc',
'src/base/timer/timer.cc',
'src/base/timer/timer.h',
'src/base/tracked_objects.cc',
'src/base/tracked_objects.h',
'src/base/tracking_info.cc',
'src/base/tracking_info.h',
'src/base/tuple.h',
'src/base/values.cc',
'src/base/vlog.cc',
'src/base/vlog.h',
'src/base/win/event_trace_provider.cc',
'src/base/win/event_trace_provider.h',
'src/base/win/object_watcher.cc',
'src/base/win/object_watcher.h',
'src/base/win/pe_image.cc',
'src/base/win/pe_image.h',
'src/base/win/registry.cc',
'src/base/win/registry.h',
'src/base/win/scoped_handle.cc',
'src/base/win/scoped_handle.h',
'src/base/win/scoped_process_information.cc',
'src/base/win/scoped_process_information.h',
'src/base/win/startup_information.cc',
'src/base/win/startup_information.h',
'src/base/win/windows_version.cc',
'src/base/win/windows_version.h',
'src/base/win/wrapped_window_proc.cc',
'src/base/win/wrapped_window_proc.h',
'src/build/build_config.h',
'src/third_party/superfasthash/superfasthash.c',
],
},
{
'target_name': 'test_base',
'type': 'executable',
'sources': [
'main.cc',
],
'dependencies': [
'base',
],
}
],
}