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

Side by Side Diff: base/BUILD.gn

Issue 2891583002: Fuchsia port of base/time, with some refactoring of POSIX time modules. (Closed)
Patch Set: Created 3 years, 7 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/time/time.h » ('j') | base/time/time_conversion_posix.cc » ('J')
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 # HOW TO WRITE CONDITIONALS IN THIS FILE 5 # HOW TO WRITE CONDITIONALS IN THIS FILE
6 # ====================================== 6 # ======================================
7 # 7 #
8 # In many other places, one would write a conditional that expresses all the 8 # In many other places, one would write a conditional that expresses all the
9 # cases when a source file is used or unused, and then either add or subtract 9 # cases when a source file is used or unused, and then either add or subtract
10 # it from the sources list in that case 10 # it from the sources list in that case
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 "time/clock.cc", 917 "time/clock.cc",
918 "time/clock.h", 918 "time/clock.h",
919 "time/default_clock.cc", 919 "time/default_clock.cc",
920 "time/default_clock.h", 920 "time/default_clock.h",
921 "time/default_tick_clock.cc", 921 "time/default_tick_clock.cc",
922 "time/default_tick_clock.h", 922 "time/default_tick_clock.h",
923 "time/tick_clock.cc", 923 "time/tick_clock.cc",
924 "time/tick_clock.h", 924 "time/tick_clock.h",
925 "time/time.cc", 925 "time/time.cc",
926 "time/time.h", 926 "time/time.h",
927 "time/time_mac.cc",
Lei Zhang 2017/05/17 08:34:16 This has the advantage of the files are mostly lis
miu 2017/05/18 02:52:38 I was discussing this with thakis@ at on the code
Lei Zhang 2017/05/18 19:06:12 I've always found the sources_assignment_filter to
928 "time/time_posix.cc",
929 "time/time_win.cc",
930 "timer/elapsed_timer.cc", 927 "timer/elapsed_timer.cc",
931 "timer/elapsed_timer.h", 928 "timer/elapsed_timer.h",
932 "timer/hi_res_timer_manager.h", 929 "timer/hi_res_timer_manager.h",
933 "timer/hi_res_timer_manager_posix.cc", 930 "timer/hi_res_timer_manager_posix.cc",
934 "timer/hi_res_timer_manager_win.cc", 931 "timer/hi_res_timer_manager_win.cc",
935 "timer/mock_timer.cc", 932 "timer/mock_timer.cc",
936 "timer/mock_timer.h", 933 "timer/mock_timer.h",
937 "timer/timer.cc", 934 "timer/timer.cc",
938 "timer/timer.h", 935 "timer/timer.h",
939 "trace_event/auto_open_close_event.cc", 936 "trace_event/auto_open_close_event.cc",
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
1338 ] 1335 ]
1339 } 1336 }
1340 } 1337 }
1341 1338
1342 # Windows. 1339 # Windows.
1343 if (is_win) { 1340 if (is_win) {
1344 sources += [ 1341 sources += [
1345 "power_monitor/power_monitor_device_source_win.cc", 1342 "power_monitor/power_monitor_device_source_win.cc",
1346 "profiler/win32_stack_frame_unwinder.cc", 1343 "profiler/win32_stack_frame_unwinder.cc",
1347 "profiler/win32_stack_frame_unwinder.h", 1344 "profiler/win32_stack_frame_unwinder.h",
1345 "time/time_win.cc",
1348 ] 1346 ]
1349 1347
1350 sources -= [ 1348 sources -= [
1351 "file_descriptor_store.cc", 1349 "file_descriptor_store.cc",
1352 "file_descriptor_store.h", 1350 "file_descriptor_store.h",
1353 "memory/shared_memory_helper.cc", 1351 "memory/shared_memory_helper.cc",
1354 "memory/shared_memory_helper.h", 1352 "memory/shared_memory_helper.h",
1355 "message_loop/message_pump_libevent.cc", 1353 "message_loop/message_pump_libevent.cc",
1356 "strings/string16.cc", 1354 "strings/string16.cc",
1357 ] 1355 ]
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 } else if (!is_nacl || is_nacl_nonsfi) { 1443 } else if (!is_nacl || is_nacl_nonsfi) {
1446 # Non-Windows. 1444 # Non-Windows.
1447 deps += [ "//base/third_party/libevent" ] 1445 deps += [ "//base/third_party/libevent" ]
1448 } 1446 }
1449 1447
1450 # Desktop Mac. 1448 # Desktop Mac.
1451 if (is_mac) { 1449 if (is_mac) {
1452 sources += [ 1450 sources += [
1453 "mac/scoped_typeref.h", 1451 "mac/scoped_typeref.h",
1454 "power_monitor/power_monitor_device_source_mac.mm", 1452 "power_monitor/power_monitor_device_source_mac.mm",
1453 "time/time_conversion_posix.cc",
1454 "time/time_mac.cc",
1455 ] 1455 ]
1456 1456
1457 libs = [ 1457 libs = [
1458 "ApplicationServices.framework", 1458 "ApplicationServices.framework",
1459 "AppKit.framework", 1459 "AppKit.framework",
1460 "bsm", 1460 "bsm",
1461 "CoreFoundation.framework", 1461 "CoreFoundation.framework",
1462 "IOKit.framework", 1462 "IOKit.framework",
1463 "Security.framework", 1463 "Security.framework",
1464 ] 1464 ]
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
1590 "mac/scoped_objc_class_swizzler.h", 1590 "mac/scoped_objc_class_swizzler.h",
1591 "mac/scoped_objc_class_swizzler.mm", 1591 "mac/scoped_objc_class_swizzler.mm",
1592 "mac/scoped_typeref.h", 1592 "mac/scoped_typeref.h",
1593 "memory/shared_memory_posix.cc", 1593 "memory/shared_memory_posix.cc",
1594 "message_loop/message_pump_mac.h", 1594 "message_loop/message_pump_mac.h",
1595 "message_loop/message_pump_mac.mm", 1595 "message_loop/message_pump_mac.mm",
1596 "power_monitor/power_monitor_device_source_ios.mm", 1596 "power_monitor/power_monitor_device_source_ios.mm",
1597 "process/memory_stubs.cc", 1597 "process/memory_stubs.cc",
1598 "strings/sys_string_conversions_mac.mm", 1598 "strings/sys_string_conversions_mac.mm",
1599 "threading/platform_thread_mac.mm", 1599 "threading/platform_thread_mac.mm",
1600 "time/time_conversion_posix.cc",
1600 "time/time_mac.cc", 1601 "time/time_mac.cc",
1601 ] 1602 ]
1602 1603
1603 set_sources_assignment_filter(sources_assignment_filter) 1604 set_sources_assignment_filter(sources_assignment_filter)
1604 } 1605 }
1605 1606
1607 # Fuchsia.
1608 if (is_fuchsia) {
1609 sources += [
1610 "time/time_conversion_posix.cc",
1611 "time/time_exploded_posix.cc",
1612 "time/time_fuchsia.cc",
1613 ]
1614 }
1615
1616 if (is_posix && !is_fuchsia && !is_mac && !is_ios) {
1617 sources += [
1618 "time/time_conversion_posix.cc",
1619 "time/time_exploded_posix.cc",
1620 "time/time_now_posix.cc",
1621 ]
1622 }
1623
1606 if (is_posix && !is_mac && !is_ios && !is_android && !is_chromeos) { 1624 if (is_posix && !is_mac && !is_ios && !is_android && !is_chromeos) {
1607 sources += [ "power_monitor/power_monitor_device_source_posix.cc" ] 1625 sources += [ "power_monitor/power_monitor_device_source_posix.cc" ]
1608 } 1626 }
1609 1627
1610 if (is_posix && !is_mac && !is_nacl) { 1628 if (is_posix && !is_mac && !is_nacl) {
1611 sources += [ 1629 sources += [
1612 "memory/shared_memory_tracker.cc", 1630 "memory/shared_memory_tracker.cc",
1613 "memory/shared_memory_tracker.h", 1631 "memory/shared_memory_tracker.h",
1614 ] 1632 ]
1615 } 1633 }
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
2724 } 2742 }
2725 2743
2726 fuzzer_test("base_json_correctness_fuzzer") { 2744 fuzzer_test("base_json_correctness_fuzzer") {
2727 sources = [ 2745 sources = [
2728 "json/correctness_fuzzer.cc", 2746 "json/correctness_fuzzer.cc",
2729 ] 2747 ]
2730 deps = [ 2748 deps = [
2731 ":base", 2749 ":base",
2732 ] 2750 ]
2733 } 2751 }
OLDNEW
« no previous file with comments | « no previous file | base/time/time.h » ('j') | base/time/time_conversion_posix.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698