forked from cisco-open-source/qtwebdriver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.gyp
283 lines (266 loc) · 10.1 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
{
'includes': [
'wd.gypi',
'wd_common.gypi',
],
'targets': [
{
'target_name': 'chromium_base',
'type': 'static_library',
'standalone_static_library': 1,
'include_dirs': [
'inc/',
'src/',
],
'includes': [
'wd_build_options.gypi',
],
'sources': [
'src/base/at_exit.cc',
'src/base/atomicops_internals_x86_gcc.cc',
'src/base/base64.cc',
'src/base/base_paths.cc',
'src/base/base_switches.cc',
'src/base/callback_internal.cc',
'src/base/command_line.cc',
'src/base/debug/alias.cc',
'src/base/debug/debugger.cc',
'src/base/environment.cc',
'src/base/file_path.cc',
'src/base/file_util.cc',
'src/base/json/json_parser.cc',
'src/base/json/json_reader.cc',
'src/base/json/json_writer.cc',
'src/base/json/string_escape.cc',
'src/base/lazy_instance.cc',
'src/base/location.cc',
'src/base/logging.cc',
'src/base/memory/ref_counted.cc',
'src/base/memory/singleton.cc',
'src/base/memory/weak_ptr.cc',
'src/base/message_loop.cc',
'src/base/message_loop_proxy.cc',
'src/base/message_loop_proxy_impl.cc',
'src/base/message_pump.cc',
'src/base/message_pump_default.cc',
'src/base/metrics/bucket_ranges.cc',
'src/base/metrics/histogram_base.cc',
'src/base/metrics/histogram.cc',
'src/base/metrics/histogram_samples.cc',
'src/base/metrics/sample_vector.cc',
'src/base/metrics/statistics_recorder.cc',
'src/base/path_service.cc',
'src/base/pending_task.cc',
'src/base/pickle.cc',
'src/base/platform_file.cc',
'src/base/profiler/alternate_timer.cc',
'src/base/profiler/scoped_profile.cc',
'src/base/profiler/tracked_time.cc',
'src/base/rand_util.cc',
'src/base/run_loop.cc',
'src/base/scoped_temp_dir.cc',
'src/base/string_number_conversions.cc',
'src/base/string_piece.cc',
'src/base/stringprintf.cc',
'src/base/string_split.cc',
'src/base/string_util.cc',
'src/base/synchronization/lock.cc',
'src/base/task_runner.cc',
'src/base/third_party/dmg_fp/dtoa.cc',
'src/base/third_party/dmg_fp/g_fmt.cc',
'src/base/third_party/dynamic_annotations/dynamic_annotations.c',
'src/base/third_party/icu/icu_utf.cc',
'src/base/third_party/nspr/prtime.cc',
'src/base/third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
'src/base/threading/post_task_and_reply_impl.cc',
'src/base/threading/thread.cc',
'src/base/threading/thread_checker_impl.cc',
'src/base/threading/thread_collision_warner.cc',
'src/base/threading/thread_restrictions.cc',
'src/base/threading/worker_pool.cc',
'src/base/thread_task_runner_handle.cc',
'src/base/time.cc',
'src/base/timer.cc',
'src/base/tracked_objects.cc',
'src/base/tracking_info.cc',
'src/base/utf_string_conversions.cc',
'src/base/utf_string_conversion_utils.cc',
'src/base/values.cc',
'src/net/base/file_stream.cc',
'src/net/base/file_stream_metrics.cc',
'src/net/base/file_stream_net_log_parameters.cc',
'src/net/base/io_buffer.cc',
'src/net/base/net_errors.cc',
'src/net/base/net_log.cc',
'src/third_party/modp_b64/modp_b64.cc'
],
'conditions': [
['OS=="linux"', {
'defines': [
'__STDC_FORMAT_MACROS',
'OS_POSIX',
],
'sources': [
'src/base/string16.cc',
'src/base/time_posix.cc',
'src/base/base_paths_posix.cc',
'src/base/debug/debugger_posix.cc',
'src/base/file_util_posix.cc',
'src/base/nix/xdg_util.cc',
'src/base/platform_file_posix.cc',
'src/base/rand_util_posix.cc',
'src/base/safe_strerror_posix.cc',
'src/base/synchronization/condition_variable_posix.cc',
'src/base/synchronization/lock_impl_posix.cc',
'src/base/synchronization/waitable_event_posix.cc',
'src/base/sys_info_posix.cc',
'src/base/sys_string_conversions_posix.cc',
'src/base/threading/platform_thread_posix.cc',
'src/base/threading/thread_local_posix.cc',
'src/base/threading/thread_local_storage_posix.cc',
'src/base/threading/worker_pool_posix.cc',
'src/net/base/file_stream_metrics_posix.cc',
'src/net/base/file_stream_posix.cc',
'src/net/base/net_errors_posix.cc',
'src/base/sys_info_linux.cc',
],
} ],
[ 'OS == "win"', {
'defines': [
'_WIN32',
'OS_WIN',
'NOMINMAX',
'_CRT_RAND_S',
'WIN32',
'_WINSOCKAPI_',
],
'sources': [
'src/base/cpu.cc',
'src/base/time_win.cc',
'src/base/base_paths_win.cc',
'src/base/debug/debugger_win.cc',
'src/base/file_util_win.cc',
'src/base/platform_file_win.cc',
'src/base/rand_util_win.cc',
'src/base/synchronization/condition_variable_win.cc',
'src/base/synchronization/lock_impl_win.cc',
'src/base/synchronization/waitable_event_win.cc',
'src/base/sys_info_win.cc',
'src/base/threading/platform_thread_win.cc',
'src/base/threading/thread_local_win.cc',
'src/base/threading/thread_local_storage_win.cc',
'src/base/threading/worker_pool_win.cc',
'src/net/base/file_stream_win.cc',
'src/net/base/file_stream_metrics_win.cc',
'src/net/base/net_errors_win.cc',
'src/base/sys_info_win.cc',
'src/base/win/windows_version.cc',
'src/base/win/registry.cc',
'src/base/win/scoped_handle.cc',
'src/base/win/wrapped_window_proc.cc',
'src/base/message_pump_win.cc',
'src/base/process_util.cc',
'src/base/process_util_win.cc',
],
} ],
[ 'OS == "mac" or OS=="ios"', {
'defines': [
'OS_POSIX',
],
'sources': [
'src/base/string16.cc',
'src/base/time_posix.cc',
'src/base/base_paths_posix.cc',
'src/base/debug/debugger_posix.cc',
'src/base/platform_file_posix.cc',
'src/base/rand_util_posix.cc',
'src/base/safe_strerror_posix.cc',
'src/base/synchronization/condition_variable_posix.cc',
'src/base/synchronization/lock_impl_posix.cc',
'src/base/synchronization/waitable_event_posix.cc',
'src/base/sys_info_posix.cc',
'src/base/sys_string_conversions_mac.mm',
'src/base/threading/platform_thread_posix.cc',
'src/base/threading/thread_local_posix.cc',
'src/base/threading/thread_local_storage_posix.cc',
'src/base/threading/worker_pool_posix.cc',
'src/net/base/file_stream_metrics_posix.cc',
'src/net/base/file_stream_posix.cc',
'src/net/base/net_errors_posix.cc',
'src/base/base_paths_mac.mm',
'src/base/file_util_posix.cc',
'src/base/file_util_mac.mm',
'src/base/message_pump_mac.mm',
'src/base/scoped_nsautorelease_pool.mm',
'src/base/mac/foundation_util.mm',
'src/base/mac/bundle_locations.mm',
'src/base/mac/mac_logging.cc',
'src/base/mac/mach_logging.cc',
'src/base/mac/scoped_mach_port.cc',
'src/base/threading/platform_thread_mac.mm',
'src/base/time_mac.cc',
],
} ],
[ 'OS == "mac"', {
'defines': [
'OS_POSIX',
],
'sources': [
'src/base/sys_info_mac.cc',
],
} ],
[ 'OS=="ios"', {
'defines': [
'OS_POSIX',
],
'sources': [
'src/base/sys_info_ios.mm',
],
} ],
['OS=="android"', {
'sources': [
'src/base/string16.cc',
'src/base/time_posix.cc',
'src/base/base_paths_android.cc',
'src/base/debug/debugger_posix.cc',
'src/base/file_util_android.cc',
'src/base/file_util_posix.cc',
'src/base/nix/xdg_util.cc',
'src/base/platform_file_posix.cc',
'src/base/rand_util_posix.cc',
'src/base/safe_strerror_posix.cc',
'src/base/synchronization/condition_variable_posix.cc',
'src/base/synchronization/lock_impl_posix.cc',
'src/base/synchronization/waitable_event_posix.cc',
'src/base/sys_info_posix.cc',
'src/base/sys_string_conversions_posix.cc',
'src/base/threading/platform_thread_posix.cc',
'src/base/threading/thread_local_posix.cc',
'src/base/threading/thread_local_storage_posix.cc',
'src/base/threading/worker_pool_posix.cc',
'src/net/base/file_stream_metrics_posix.cc',
'src/net/base/file_stream_posix.cc',
'src/net/base/net_errors_posix.cc',
'src/base/sys_info_linux.cc',
'src/base/message_pump_android.cc',
'src/base/os_compat_android.cc',
'src/base/android/scoped_java_ref.cc',
'src/base/android/path_utils.cc',
'src/base/android/path_service_android.cc',
'src/base/android/jni_string.cc',
'src/base/android/jni_helper.cc',
'src/base/android/jni_array.cc',
'src/base/android/jni_android.cc',
],
} ],
]
} , {
'target_name': 'chromium_base_shared',
'type': 'shared_library',
'product_name': 'chromium_base',
'dependencies': [
'chromium_base',
],
}
],
}