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

Side by Side Diff: base/BUILD.gn

Issue 972203003: Fix GN NaCl Debug build of base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again 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
« no previous file with comments | « no previous file | base/debug/BUILD.gn » ('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) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 if (is_android) { 8 if (is_android) {
9 import("//build/config/android/rules.gni") 9 import("//build/config/android/rules.gni")
10 } 10 }
11 11
12 source_set("base_paths") {
13 sources = [
14 "base_paths.cc",
15 "base_paths.h",
16 "base_paths_android.cc",
17 "base_paths_android.h",
18 "base_paths_mac.h",
19 "base_paths_mac.mm",
20 "base_paths_posix.cc",
21 "base_paths_posix.h",
22 "base_paths_win.cc",
23 "base_paths_win.h",
24 ]
25
26 if (is_android || is_mac) {
27 sources -= [ "base_paths_posix.cc" ]
28 }
29
30 if (is_nacl) {
31 sources -= [
32 "base_paths.cc",
33 "base_paths_posix.cc",
34 ]
35 }
36
37 defines = [ "BASE_IMPLEMENTATION" ]
38
39 deps = [
40 "//base/memory",
41 "//base/process",
42 ]
43
44 visibility = [ ":base" ]
45 }
46
12 component("base") { 47 component("base") {
13 sources = [ 48 sources = [
14 "allocator/allocator_extension.cc", 49 "allocator/allocator_extension.cc",
15 "allocator/allocator_extension.h", 50 "allocator/allocator_extension.h",
16 "allocator/type_profiler_control.cc", 51 "allocator/type_profiler_control.cc",
17 "allocator/type_profiler_control.h", 52 "allocator/type_profiler_control.h",
18 "android/animation_frame_time_histogram.cc", 53 "android/animation_frame_time_histogram.cc",
19 "android/animation_frame_time_histogram.h", 54 "android/animation_frame_time_histogram.h",
20 "android/application_status_listener.cc", 55 "android/application_status_listener.cc",
21 "android/application_status_listener.h", 56 "android/application_status_listener.h",
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 "atomicops_internals_portable.h", 120 "atomicops_internals_portable.h",
86 "atomicops_internals_x86_gcc.cc", 121 "atomicops_internals_x86_gcc.cc",
87 "atomicops_internals_x86_gcc.h", 122 "atomicops_internals_x86_gcc.h",
88 "atomicops_internals_x86_msvc.h", 123 "atomicops_internals_x86_msvc.h",
89 "auto_reset.h", 124 "auto_reset.h",
90 "barrier_closure.cc", 125 "barrier_closure.cc",
91 "barrier_closure.h", 126 "barrier_closure.h",
92 "base64.cc", 127 "base64.cc",
93 "base64.h", 128 "base64.h",
94 "base_export.h", 129 "base_export.h",
95 "base_paths.cc",
96 "base_paths.h",
97 "base_paths_android.cc",
98 "base_paths_android.h",
99 "base_paths_mac.h",
100 "base_paths_mac.mm",
101 "base_paths_posix.cc",
102 "base_paths_posix.h",
103 "base_paths_win.cc",
104 "base_paths_win.h",
105 "base_switches.h", 130 "base_switches.h",
106 "basictypes.h", 131 "basictypes.h",
107 "big_endian.cc", 132 "big_endian.cc",
108 "big_endian.h", 133 "big_endian.h",
109 "bind.h", 134 "bind.h",
110 "bind_helpers.cc", 135 "bind_helpers.cc",
111 "bind_helpers.h", 136 "bind_helpers.h",
112 "bind_internal.h", 137 "bind_internal.h",
113 "bind_internal_win.h", 138 "bind_internal_win.h",
114 "bits.h", 139 "bits.h",
(...skipping 13 matching lines...) Expand all
128 "containers/adapters.h", 153 "containers/adapters.h",
129 "containers/hash_tables.h", 154 "containers/hash_tables.h",
130 "containers/linked_list.h", 155 "containers/linked_list.h",
131 "containers/mru_cache.h", 156 "containers/mru_cache.h",
132 "containers/small_map.h", 157 "containers/small_map.h",
133 "containers/stack_container.h", 158 "containers/stack_container.h",
134 "cpu.cc", 159 "cpu.cc",
135 "cpu.h", 160 "cpu.h",
136 "critical_closure.h", 161 "critical_closure.h",
137 "critical_closure_internal_ios.mm", 162 "critical_closure_internal_ios.mm",
138 "debug/alias.cc",
139 "debug/alias.h",
140 "debug/asan_invalid_access.cc",
141 "debug/asan_invalid_access.h",
142 "debug/crash_logging.cc",
143 "debug/crash_logging.h",
144 "debug/debugger.cc",
145 "debug/debugger.h",
146 "debug/debugger_posix.cc",
147 "debug/debugger_win.cc",
148 "debug/dump_without_crashing.cc",
149 "debug/dump_without_crashing.h",
150 "debug/gdi_debug_util_win.cc",
151 "debug/gdi_debug_util_win.h",
152 "third_party/dmg_fp/dmg_fp.h",
153 "third_party/dmg_fp/dtoa_wrapper.cc",
154 "third_party/dmg_fp/g_fmt.cc",
155 "third_party/icu/icu_utf.cc",
156 "third_party/icu/icu_utf.h",
157 "third_party/superfasthash/superfasthash.c",
158
159 # This file depends on files from the "allocator" target,
160 # but this target does not depend on "allocator" (see
161 # allocator.gyp for details).
162 "debug/leak_annotations.h",
163 "debug/leak_tracker.h",
164 "debug/proc_maps_linux.cc",
165 "debug/proc_maps_linux.h",
166 "debug/profiler.cc",
167 "debug/profiler.h",
168 "debug/stack_trace.cc",
169 "debug/stack_trace.h",
170 "debug/stack_trace_android.cc",
171 "debug/stack_trace_posix.cc",
172 "debug/stack_trace_win.cc",
173 "debug/task_annotator.cc",
174 "debug/task_annotator.h",
175 "deferred_sequenced_task_runner.cc", 163 "deferred_sequenced_task_runner.cc",
176 "deferred_sequenced_task_runner.h", 164 "deferred_sequenced_task_runner.h",
177 "environment.cc", 165 "environment.cc",
178 "environment.h", 166 "environment.h",
179 "file_descriptor_posix.h", 167 "file_descriptor_posix.h",
180 "file_version_info.h", 168 "file_version_info.h",
181 "file_version_info_mac.h", 169 "file_version_info_mac.h",
182 "file_version_info_mac.mm", 170 "file_version_info_mac.mm",
183 "file_version_info_win.cc", 171 "file_version_info_win.cc",
184 "file_version_info_win.h", 172 "file_version_info_win.h",
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 "hash.h", 224 "hash.h",
237 "id_map.h", 225 "id_map.h",
238 "ios/device_util.h", 226 "ios/device_util.h",
239 "ios/device_util.mm", 227 "ios/device_util.mm",
240 "ios/ios_util.h", 228 "ios/ios_util.h",
241 "ios/ios_util.mm", 229 "ios/ios_util.mm",
242 "ios/scoped_critical_action.h", 230 "ios/scoped_critical_action.h",
243 "ios/scoped_critical_action.mm", 231 "ios/scoped_critical_action.mm",
244 "ios/weak_nsobject.h", 232 "ios/weak_nsobject.h",
245 "ios/weak_nsobject.mm", 233 "ios/weak_nsobject.mm",
246 "json/json_file_value_serializer.cc",
247 "json/json_file_value_serializer.h",
248 "json/json_parser.cc",
249 "json/json_parser.h",
250 "json/json_reader.cc",
251 "json/json_reader.h",
252 "json/json_string_value_serializer.cc",
253 "json/json_string_value_serializer.h",
254 "json/json_value_converter.cc",
255 "json/json_value_converter.h",
256 "json/json_writer.cc",
257 "json/json_writer.h",
258 "json/string_escape.cc",
259 "json/string_escape.h",
260 "lazy_instance.cc", 234 "lazy_instance.cc",
261 "lazy_instance.h", 235 "lazy_instance.h",
262 "linux_util.cc", 236 "linux_util.cc",
263 "linux_util.h", 237 "linux_util.h",
264 "location.cc", 238 "location.cc",
265 "location.h", 239 "location.h",
266 "logging.cc", 240 "logging.cc",
267 "logging.h", 241 "logging.h",
268 "logging_win.cc", 242 "logging_win.cc",
269 "logging_win.h", 243 "logging_win.h",
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 "mac/scoped_nsobject.h", 283 "mac/scoped_nsobject.h",
310 "mac/scoped_objc_class_swizzler.h", 284 "mac/scoped_objc_class_swizzler.h",
311 "mac/scoped_objc_class_swizzler.mm", 285 "mac/scoped_objc_class_swizzler.mm",
312 "mac/scoped_sending_event.h", 286 "mac/scoped_sending_event.h",
313 "mac/scoped_sending_event.mm", 287 "mac/scoped_sending_event.mm",
314 "mac/sdk_forward_declarations.h", 288 "mac/sdk_forward_declarations.h",
315 "mac/sdk_forward_declarations.mm", 289 "mac/sdk_forward_declarations.mm",
316 "macros.h", 290 "macros.h",
317 "md5.cc", 291 "md5.cc",
318 "md5.h", 292 "md5.h",
319 "memory/aligned_memory.cc",
320 "memory/aligned_memory.h",
321 "memory/discardable_memory.cc",
322 "memory/discardable_memory.h",
323 "memory/discardable_memory_android.cc",
324 "memory/discardable_memory_emulated.cc",
325 "memory/discardable_memory_emulated.h",
326 "memory/discardable_memory_linux.cc",
327 "memory/discardable_memory_mac.cc",
328 "memory/discardable_memory_manager.cc",
329 "memory/discardable_memory_manager.h",
330 "memory/discardable_memory_shmem.cc",
331 "memory/discardable_memory_shmem.h",
332 "memory/discardable_memory_shmem_allocator.cc",
333 "memory/discardable_memory_shmem_allocator.h",
334 "memory/discardable_memory_win.cc",
335 "memory/discardable_shared_memory.cc",
336 "memory/discardable_shared_memory.h",
337 "memory/linked_ptr.h",
338 "memory/manual_constructor.h",
339 "memory/memory_pressure_listener.cc",
340 "memory/memory_pressure_listener.h",
341 "memory/raw_scoped_refptr_mismatch_checker.h",
342 "memory/ref_counted.cc",
343 "memory/ref_counted.h",
344 "memory/ref_counted_delete_on_message_loop.h",
345 "memory/ref_counted_memory.cc",
346 "memory/ref_counted_memory.h",
347 "memory/scoped_policy.h",
348 "memory/scoped_ptr.h",
349 "memory/scoped_vector.h",
350 "memory/shared_memory.h",
351 "memory/shared_memory_android.cc",
352 "memory/shared_memory_nacl.cc",
353 "memory/shared_memory_posix.cc",
354 "memory/shared_memory_win.cc",
355 "memory/singleton.cc",
356 "memory/singleton.h",
357 "memory/weak_ptr.cc",
358 "memory/weak_ptr.h",
359 "message_loop/incoming_task_queue.cc", 293 "message_loop/incoming_task_queue.cc",
360 "message_loop/incoming_task_queue.h", 294 "message_loop/incoming_task_queue.h",
361 "message_loop/message_loop.cc", 295 "message_loop/message_loop.cc",
362 "message_loop/message_loop.h", 296 "message_loop/message_loop.h",
363 "message_loop/message_loop_proxy.cc", 297 "message_loop/message_loop_proxy.cc",
364 "message_loop/message_loop_proxy.h", 298 "message_loop/message_loop_proxy.h",
365 "message_loop/message_loop_proxy_impl.cc", 299 "message_loop/message_loop_proxy_impl.cc",
366 "message_loop/message_loop_proxy_impl.h", 300 "message_loop/message_loop_proxy_impl.h",
367 "message_loop/message_pump.cc", 301 "message_loop/message_pump.cc",
368 "message_loop/message_pump.h", 302 "message_loop/message_pump.h",
369 "message_loop/message_pump_android.cc", 303 "message_loop/message_pump_android.cc",
370 "message_loop/message_pump_android.h", 304 "message_loop/message_pump_android.h",
371 "message_loop/message_pump_default.cc", 305 "message_loop/message_pump_default.cc",
372 "message_loop/message_pump_default.h", 306 "message_loop/message_pump_default.h",
373 "message_loop/message_pump_glib.cc", 307 "message_loop/message_pump_glib.cc",
374 "message_loop/message_pump_glib.h", 308 "message_loop/message_pump_glib.h",
375 "message_loop/message_pump_io_ios.cc", 309 "message_loop/message_pump_io_ios.cc",
376 "message_loop/message_pump_io_ios.h", 310 "message_loop/message_pump_io_ios.h",
377 "message_loop/message_pump_libevent.cc", 311 "message_loop/message_pump_libevent.cc",
378 "message_loop/message_pump_libevent.h", 312 "message_loop/message_pump_libevent.h",
379 "message_loop/message_pump_mac.h", 313 "message_loop/message_pump_mac.h",
380 "message_loop/message_pump_mac.mm", 314 "message_loop/message_pump_mac.mm",
381 "message_loop/message_pump_win.cc", 315 "message_loop/message_pump_win.cc",
382 "message_loop/message_pump_win.h", 316 "message_loop/message_pump_win.h",
383 "metrics/bucket_ranges.cc",
384 "metrics/bucket_ranges.h",
385 "metrics/field_trial.cc",
386 "metrics/field_trial.h",
387 "metrics/histogram.cc",
388 "metrics/histogram.h",
389 "metrics/histogram_base.cc",
390 "metrics/histogram_base.h",
391 "metrics/histogram_delta_serialization.",
392 "metrics/histogram_delta_serialization.cc",
393 "metrics/histogram_flattener.h",
394 "metrics/histogram_macros.h",
395 "metrics/histogram_samples.cc",
396 "metrics/histogram_samples.h",
397 "metrics/histogram_snapshot_manager.cc",
398 "metrics/histogram_snapshot_manager.h",
399 "metrics/sample_map.cc",
400 "metrics/sample_map.h",
401 "metrics/sample_vector.cc",
402 "metrics/sample_vector.h",
403 "metrics/sparse_histogram.cc",
404 "metrics/sparse_histogram.h",
405 "metrics/statistics_recorder.cc",
406 "metrics/statistics_recorder.h",
407 "metrics/user_metrics.cc",
408 "metrics/user_metrics.h",
409 "metrics/user_metrics_action.h",
410 "move.h", 317 "move.h",
411 "native_library.h", 318 "native_library.h",
412 "native_library_mac.mm", 319 "native_library_mac.mm",
413 "native_library_posix.cc", 320 "native_library_posix.cc",
414 "native_library_win.cc", 321 "native_library_win.cc",
415 "nix/mime_util_xdg.cc", 322 "nix/mime_util_xdg.cc",
416 "nix/mime_util_xdg.h", 323 "nix/mime_util_xdg.h",
417 "nix/xdg_util.cc", 324 "nix/xdg_util.cc",
418 "nix/xdg_util.h", 325 "nix/xdg_util.h",
419 "numerics/safe_conversions.h", 326 "numerics/safe_conversions.h",
(...skipping 26 matching lines...) Expand all
446 "power_monitor/power_monitor_device_source_android.cc", 353 "power_monitor/power_monitor_device_source_android.cc",
447 "power_monitor/power_monitor_device_source_android.h", 354 "power_monitor/power_monitor_device_source_android.h",
448 "power_monitor/power_monitor_device_source_chromeos.cc", 355 "power_monitor/power_monitor_device_source_chromeos.cc",
449 "power_monitor/power_monitor_device_source_ios.mm", 356 "power_monitor/power_monitor_device_source_ios.mm",
450 "power_monitor/power_monitor_device_source_mac.mm", 357 "power_monitor/power_monitor_device_source_mac.mm",
451 "power_monitor/power_monitor_device_source_posix.cc", 358 "power_monitor/power_monitor_device_source_posix.cc",
452 "power_monitor/power_monitor_device_source_win.cc", 359 "power_monitor/power_monitor_device_source_win.cc",
453 "power_monitor/power_monitor_source.cc", 360 "power_monitor/power_monitor_source.cc",
454 "power_monitor/power_monitor_source.h", 361 "power_monitor/power_monitor_source.h",
455 "power_monitor/power_observer.h", 362 "power_monitor/power_observer.h",
456 "process/internal_linux.cc",
457 "process/internal_linux.h",
458 "process/kill.cc",
459 "process/kill.h",
460 "process/kill_mac.cc",
461 "process/kill_posix.cc",
462 "process/kill_win.cc",
463 "process/launch.cc",
464 "process/launch.h",
465 "process/launch_ios.cc",
466 "process/launch_mac.cc",
467 "process/launch_posix.cc",
468 "process/launch_win.cc",
469 "process/memory.cc",
470 "process/memory.h",
471 "process/memory_linux.cc",
472 "process/memory_mac.mm",
473 "process/memory_win.cc",
474 "process/process.h",
475 "process/process_handle_freebsd.cc",
476 "process/process_handle_linux.cc",
477 "process/process_handle_mac.cc",
478 "process/process_handle_openbsd.cc",
479 "process/process_handle_posix.cc",
480 "process/process_handle_win.cc",
481 "process/process_info.h",
482 "process/process_info_linux.cc",
483 "process/process_info_mac.cc",
484 "process/process_info_win.cc",
485 "process/process_iterator.cc",
486 "process/process_iterator.h",
487 "process/process_iterator_freebsd.cc",
488 "process/process_iterator_linux.cc",
489 "process/process_iterator_mac.cc",
490 "process/process_iterator_openbsd.cc",
491 "process/process_iterator_win.cc",
492 "process/process_linux.cc",
493 "process/process_metrics.cc",
494 "process/process_metrics.h",
495 "process/process_metrics_freebsd.cc",
496 "process/process_metrics_ios.cc",
497 "process/process_metrics_linux.cc",
498 "process/process_metrics_mac.cc",
499 "process/process_metrics_openbsd.cc",
500 "process/process_metrics_posix.cc",
501 "process/process_metrics_win.cc",
502 "process/process_posix.cc",
503 "process/process_win.cc",
504 "profiler/alternate_timer.cc", 363 "profiler/alternate_timer.cc",
505 "profiler/alternate_timer.h", 364 "profiler/alternate_timer.h",
506 "profiler/scoped_profile.cc", 365 "profiler/scoped_profile.cc",
507 "profiler/scoped_profile.h", 366 "profiler/scoped_profile.h",
508 "profiler/scoped_tracker.cc", 367 "profiler/scoped_tracker.cc",
509 "profiler/scoped_tracker.h", 368 "profiler/scoped_tracker.h",
510 "profiler/tracked_time.cc", 369 "profiler/tracked_time.cc",
511 "profiler/tracked_time.h", 370 "profiler/tracked_time.h",
512 "rand_util.cc", 371 "rand_util.cc",
513 "rand_util.h", 372 "rand_util.h",
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 "sys_info_posix.cc", 460 "sys_info_posix.cc",
602 "sys_info_win.cc", 461 "sys_info_win.cc",
603 "system_monitor/system_monitor.cc", 462 "system_monitor/system_monitor.cc",
604 "system_monitor/system_monitor.h", 463 "system_monitor/system_monitor.h",
605 "task/cancelable_task_tracker.cc", 464 "task/cancelable_task_tracker.cc",
606 "task/cancelable_task_tracker.h", 465 "task/cancelable_task_tracker.h",
607 "task_runner.cc", 466 "task_runner.cc",
608 "task_runner.h", 467 "task_runner.h",
609 "task_runner_util.h", 468 "task_runner_util.h",
610 "template_util.h", 469 "template_util.h",
470 "third_party/dmg_fp/dmg_fp.h",
471 "third_party/dmg_fp/dtoa_wrapper.cc",
472 "third_party/dmg_fp/g_fmt.cc",
473 "third_party/icu/icu_utf.cc",
474 "third_party/icu/icu_utf.h",
475 "third_party/superfasthash/superfasthash.c",
611 "thread_task_runner_handle.cc", 476 "thread_task_runner_handle.cc",
612 "thread_task_runner_handle.h", 477 "thread_task_runner_handle.h",
613 "threading/non_thread_safe.h", 478 "threading/non_thread_safe.h",
614 "threading/non_thread_safe_impl.cc", 479 "threading/non_thread_safe_impl.cc",
615 "threading/non_thread_safe_impl.h", 480 "threading/non_thread_safe_impl.h",
616 "threading/platform_thread.h", 481 "threading/platform_thread.h",
617 "threading/platform_thread_android.cc", 482 "threading/platform_thread_android.cc",
618 "threading/platform_thread_linux.cc", 483 "threading/platform_thread_linux.cc",
619 "threading/platform_thread_mac.mm", 484 "threading/platform_thread_mac.mm",
620 "threading/platform_thread_posix.cc", 485 "threading/platform_thread_posix.cc",
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 "time/time_win.cc", 531 "time/time_win.cc",
667 "timer/elapsed_timer.cc", 532 "timer/elapsed_timer.cc",
668 "timer/elapsed_timer.h", 533 "timer/elapsed_timer.h",
669 "timer/hi_res_timer_manager.h", 534 "timer/hi_res_timer_manager.h",
670 "timer/hi_res_timer_manager_posix.cc", 535 "timer/hi_res_timer_manager_posix.cc",
671 "timer/hi_res_timer_manager_win.cc", 536 "timer/hi_res_timer_manager_win.cc",
672 "timer/mock_timer.cc", 537 "timer/mock_timer.cc",
673 "timer/mock_timer.h", 538 "timer/mock_timer.h",
674 "timer/timer.cc", 539 "timer/timer.cc",
675 "timer/timer.h", 540 "timer/timer.h",
676 "trace_event/memory_dump_manager.cc",
677 "trace_event/memory_dump_manager.h",
678 "trace_event/memory_dump_provider.h",
679 "trace_event/process_memory_dump.cc",
680 "trace_event/process_memory_dump.h",
681 "trace_event/process_memory_maps.cc",
682 "trace_event/process_memory_maps.h",
683 "trace_event/process_memory_maps_dump_provider.cc",
684 "trace_event/process_memory_maps_dump_provider.h",
685 "trace_event/process_memory_totals.cc",
686 "trace_event/process_memory_totals.h",
687 "trace_event/process_memory_totals_dump_provider.cc",
688 "trace_event/process_memory_totals_dump_provider.h",
689 "trace_event/trace_event.h",
690 "trace_event/trace_event_android.cc",
691 "trace_event/trace_event_argument.cc",
692 "trace_event/trace_event_argument.h",
693 "trace_event/trace_event_impl.cc",
694 "trace_event/trace_event_impl.h",
695 "trace_event/trace_event_impl_constants.cc",
696 "trace_event/trace_event_memory.cc",
697 "trace_event/trace_event_memory.h",
698 "trace_event/trace_event_synthetic_delay.cc",
699 "trace_event/trace_event_synthetic_delay.h",
700 "trace_event/trace_event_system_stats_monitor.cc",
701 "trace_event/trace_event_system_stats_monitor.h",
702 "trace_event/trace_event_win.cc",
703 "trace_event/trace_event_win.h",
704 "tracked_objects.cc", 541 "tracked_objects.cc",
705 "tracked_objects.h", 542 "tracked_objects.h",
706 "tracking_info.cc", 543 "tracking_info.cc",
707 "tracking_info.h", 544 "tracking_info.h",
708 "tuple.h", 545 "tuple.h",
709 "value_conversions.cc", 546 "value_conversions.cc",
710 "value_conversions.h", 547 "value_conversions.h",
711 "values.cc", 548 "values.cc",
712 "values.h", 549 "values.h",
713 "version.cc", 550 "version.cc",
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 "win/startup_information.cc", 595 "win/startup_information.cc",
759 "win/startup_information.h", 596 "win/startup_information.h",
760 "win/win_util.cc", 597 "win/win_util.cc",
761 "win/win_util.h", 598 "win/win_util.h",
762 "win/windows_version.cc", 599 "win/windows_version.cc",
763 "win/windows_version.h", 600 "win/windows_version.h",
764 "win/wrapped_window_proc.cc", 601 "win/wrapped_window_proc.cc",
765 "win/wrapped_window_proc.h", 602 "win/wrapped_window_proc.h",
766 ] 603 ]
767 604
768 if (is_nacl) {
769 # We reset sources_assignment_filter in order to explicitly include
770 # the linux file (which would otherwise be filtered out).
771 set_sources_assignment_filter([])
772 sources += [
773 "files/file_path_watcher_stub.cc",
774 "sync_socket_nacl.cc",
775 "threading/platform_thread_linux.cc",
776 ]
777 set_sources_assignment_filter(sources_assignment_filter)
778
779 sources -= [
780 "allocator/type_profiler_control.cc",
781 "allocator/type_profiler_control.h",
782 "async_socket_io_handler_posix.cc",
783 "base_paths.cc",
784 "cpu.cc",
785 "files/file_proxy.cc",
786 "files/file_util.cc",
787 "files/file_util_proxy.cc",
788 "files/scoped_temp_dir.cc",
789 "path_service.cc",
790 "scoped_native_library.cc",
791 ]
792 }
793
794 sources -= [ 605 sources -= [
795 "process/process_handle_freebsd.cc",
796 "process/process_handle_openbsd.cc",
797 "process/process_iterator_freebsd.cc",
798 "process/process_iterator_openbsd.cc",
799 "process/process_metrics_freebsd.cc",
800 "process/process_metrics_openbsd.cc",
801 "sys_info_freebsd.cc", 606 "sys_info_freebsd.cc",
802 "sys_info_openbsd.cc", 607 "sys_info_openbsd.cc",
803 ] 608 ]
804 609
805 defines = [ "BASE_IMPLEMENTATION" ] 610 defines = [ "BASE_IMPLEMENTATION" ]
806 611
807 deps = [ 612 deps = [
808 ":base_static", 613 ":base_static",
809 "//base/allocator:allocator_extension_thunks", 614 "//base/allocator:allocator_extension_thunks",
810 "//base/third_party/dynamic_annotations", 615 "//base/third_party/dynamic_annotations",
811 "//base/third_party/nspr", 616 "//base/third_party/nspr",
812 "//third_party/modp_b64", 617 "//third_party/modp_b64",
813 ] 618 ]
814 619
620 public_deps = [
621 ":base_paths",
622 "//base/debug",
623 "//base/json",
624 "//base/memory",
625 "//base/metrics",
626 "//base/process",
627 "//base/trace_event",
628 ]
629
815 # Allow more direct string conversions on platforms with native utf8 630 # Allow more direct string conversions on platforms with native utf8
816 # strings 631 # strings
817 if (is_mac || is_ios || is_chromeos) { 632 if (is_mac || is_ios || is_chromeos) {
818 defines += [ "SYSTEM_NATIVE_UTF8" ] 633 defines += [ "SYSTEM_NATIVE_UTF8" ]
819 } 634 }
820 635
821 if (is_android) { 636 if (is_android) {
822 sources += [ 637 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ]
823 "memory/discardable_memory_ashmem.cc",
824 "memory/discardable_memory_ashmem.h",
825 "memory/discardable_memory_ashmem_allocator.cc",
826 "memory/discardable_memory_ashmem_allocator.h",
827 ]
828 sources -= [
829 "base_paths_posix.cc",
830 "power_monitor/power_monitor_device_source_posix.cc",
831 ]
832 638
833 # Android uses some Linux sources, put those back. 639 # Android uses some Linux sources, put those back.
834 set_sources_assignment_filter([]) 640 set_sources_assignment_filter([])
835 sources += [ 641 sources += [
836 "debug/proc_maps_linux.cc",
837 "files/file_path_watcher_linux.cc", 642 "files/file_path_watcher_linux.cc",
838 "posix/unix_domain_socket_linux.cc", 643 "posix/unix_domain_socket_linux.cc",
839 "process/internal_linux.cc",
840 "process/memory_linux.cc",
841 "process/process_handle_linux.cc",
842 "process/process_iterator_linux.cc",
843 "process/process_metrics_linux.cc",
844 "sys_info_linux.cc", 644 "sys_info_linux.cc",
845 ] 645 ]
846 set_sources_assignment_filter(sources_assignment_filter) 646 set_sources_assignment_filter(sources_assignment_filter)
847 647
848 deps += [ 648 deps += [
849 ":base_jni_headers", 649 ":base_jni_headers",
850 "//third_party/ashmem", 650 "//third_party/ashmem",
851 "//third_party/android_tools:cpu_features", 651 "//third_party/android_tools:cpu_features",
852 ] 652 ]
853 653
854 # logging.cc uses the Android logging library. 654 # logging.cc uses the Android logging library.
855 libs = [ "log" ] 655 libs = [ "log" ]
856
857 sources -= [ "debug/stack_trace_posix.cc" ]
858 } 656 }
859 657
860 if (is_chromeos) { 658 if (is_chromeos) {
861 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] 659 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ]
862 } 660 }
863 661
864 if (is_nacl) { 662 if (is_nacl) {
865 # These things would otherwise be built on a Posix build but aren't 663 # We reset sources_assignment_filter in order to explicitly include
866 # supported on NaCl. 664 # the linux file (which would otherwise be filtered out).
665 set_sources_assignment_filter([])
666 sources += [
667 "files/file_path_watcher_stub.cc",
668 "sync_socket_nacl.cc",
669 "threading/platform_thread_linux.cc",
670 ]
671 set_sources_assignment_filter(sources_assignment_filter)
672
867 sources -= [ 673 sources -= [
868 "debug/stack_trace_posix.cc", 674 "allocator/type_profiler_control.cc",
675 "allocator/type_profiler_control.h",
676 "async_socket_io_handler_posix.cc",
677 "cpu.cc",
869 "files/file_enumerator_posix.cc", 678 "files/file_enumerator_posix.cc",
679 "files/file_proxy.cc",
680 "files/file_util.cc",
870 "files/file_util_posix.cc", 681 "files/file_util_posix.cc",
871 "memory/shared_memory_posix.cc", 682 "files/file_util_proxy.cc",
683 "files/important_file_writer.cc",
684 "files/important_file_writer.h",
685 "files/scoped_temp_dir.cc",
872 "message_loop/message_pump_libevent.cc", 686 "message_loop/message_pump_libevent.cc",
873 "metrics/field_trial.cc",
874 "native_library_posix.cc", 687 "native_library_posix.cc",
875 "process/kill_posix.cc", 688 "path_service.cc",
876 "process/launch_posix.cc",
877 "process/process_metrics_posix.cc",
878 "process/process_posix.cc",
879 "rand_util_posix.cc", 689 "rand_util_posix.cc",
690 "scoped_native_library.cc",
880 "sync_socket_posix.cc", 691 "sync_socket_posix.cc",
692 "sys_info.cc",
881 "sys_info_posix.cc", 693 "sys_info_posix.cc",
882 ] 694 ]
883 } else { 695 } else {
884 # Remove NaCl stuff. 696 # Remove NaCl stuff.
885 sources -= [ 697 sources -= [
886 "memory/shared_memory_nacl.cc",
887 "os_compat_nacl.cc", 698 "os_compat_nacl.cc",
888 "os_compat_nacl.h", 699 "os_compat_nacl.h",
889 "rand_util_nacl.cc", 700 "rand_util_nacl.cc",
890 ] 701 ]
891 } 702 }
892 703
893 # Windows. 704 # Windows.
894 if (is_win) { 705 if (is_win) {
895 sources -= [ 706 sources -= [
896 "message_loop/message_pump_libevent.cc", 707 "message_loop/message_pump_libevent.cc",
(...skipping 23 matching lines...) Expand all
920 deps += [ "//third_party/libevent" ] 731 deps += [ "//third_party/libevent" ]
921 } 732 }
922 733
923 # Mac. 734 # Mac.
924 if (is_mac) { 735 if (is_mac) {
925 sources += [ 736 sources += [
926 "memory/discardable_memory_mach.cc", 737 "memory/discardable_memory_mach.cc",
927 "memory/discardable_memory_mach.h", 738 "memory/discardable_memory_mach.h",
928 ] 739 ]
929 sources -= [ 740 sources -= [
930 "base_paths_posix.cc",
931 "native_library_posix.cc", 741 "native_library_posix.cc",
932 "strings/sys_string_conversions_posix.cc", 742 "strings/sys_string_conversions_posix.cc",
933 ] 743 ]
934 } else { 744 } else {
935 # Non-Mac. 745 # Non-Mac.
936 sources -= [ 746 sources -= [
937 "files/file_path_watcher_fsevents.cc", 747 "files/file_path_watcher_fsevents.cc",
938 "files/file_path_watcher_fsevents.h", 748 "files/file_path_watcher_fsevents.h",
939 "files/file_path_watcher_kqueue.cc", 749 "files/file_path_watcher_kqueue.cc",
940 "files/file_path_watcher_kqueue.h", 750 "files/file_path_watcher_kqueue.h",
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 "message_loop/message_pump_glib.cc", 793 "message_loop/message_pump_glib.cc",
984 "message_loop/message_pump_glib.h", 794 "message_loop/message_pump_glib.h",
985 ] 795 ]
986 } 796 }
987 797
988 configs += [ "//build/config/compiler:wexit_time_destructors" ] 798 configs += [ "//build/config/compiler:wexit_time_destructors" ]
989 if (is_android && !is_debug) { 799 if (is_android && !is_debug) {
990 configs -= [ "//build/config/compiler:optimize" ] 800 configs -= [ "//build/config/compiler:optimize" ]
991 configs += [ "//build/config/compiler:optimize_max" ] 801 configs += [ "//build/config/compiler:optimize_max" ]
992 } 802 }
803
804 allow_circular_includes_from = public_deps
993 } 805 }
994 806
995 # This is the subset of files from base that should not be used with a dynamic 807 # This is the subset of files from base that should not be used with a dynamic
996 # library. Note that this library cannot depend on base because base depends on 808 # library. Note that this library cannot depend on base because base depends on
997 # base_static. 809 # base_static.
998 source_set("base_static") { 810 source_set("base_static") {
999 sources = [ 811 sources = [
1000 "base_switches.cc", 812 "base_switches.cc",
1001 "base_switches.h", 813 "base_switches.h",
1002 "win/pe_image.cc", 814 "win/pe_image.cc",
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1657 1469
1658 # GYP: //base.gyp:base_java_unittest_support 1470 # GYP: //base.gyp:base_java_unittest_support
1659 android_library("base_java_unittest_support") { 1471 android_library("base_java_unittest_support") {
1660 deps = [ 1472 deps = [
1661 ":base_java", 1473 ":base_java",
1662 ] 1474 ]
1663 java_files = 1475 java_files =
1664 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] 1476 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ]
1665 } 1477 }
1666 } 1478 }
OLDNEW
« no previous file with comments | « no previous file | base/debug/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698