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

Side by Side Diff: base/BUILD.gn

Issue 2692273008: Hacky slashy (Closed)
Patch Set: wip Created 3 years, 10 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
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 917 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 "time/clock.cc", 928 "time/clock.cc",
929 "time/clock.h", 929 "time/clock.h",
930 "time/default_clock.cc", 930 "time/default_clock.cc",
931 "time/default_clock.h", 931 "time/default_clock.h",
932 "time/default_tick_clock.cc", 932 "time/default_tick_clock.cc",
933 "time/default_tick_clock.h", 933 "time/default_tick_clock.h",
934 "time/tick_clock.cc", 934 "time/tick_clock.cc",
935 "time/tick_clock.h", 935 "time/tick_clock.h",
936 "time/time.cc", 936 "time/time.cc",
937 "time/time.h", 937 "time/time.h",
938 "time/time_fuchsia.cc",
938 "time/time_mac.cc", 939 "time/time_mac.cc",
939 "time/time_posix.cc", 940 "time/time_posix.cc",
940 "time/time_win.cc", 941 "time/time_win.cc",
941 "timer/elapsed_timer.cc", 942 "timer/elapsed_timer.cc",
942 "timer/elapsed_timer.h", 943 "timer/elapsed_timer.h",
943 "timer/hi_res_timer_manager.h", 944 "timer/hi_res_timer_manager.h",
944 "timer/hi_res_timer_manager_posix.cc", 945 "timer/hi_res_timer_manager_posix.cc",
945 "timer/hi_res_timer_manager_win.cc", 946 "timer/hi_res_timer_manager_win.cc",
946 "timer/mock_timer.cc", 947 "timer/mock_timer.cc",
947 "timer/mock_timer.h", 948 "timer/mock_timer.h",
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
1414 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 1415 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1415 1416
1416 libs = [ 1417 libs = [
1417 "cfgmgr32.lib", 1418 "cfgmgr32.lib",
1418 "powrprof.lib", 1419 "powrprof.lib",
1419 "setupapi.lib", 1420 "setupapi.lib",
1420 "userenv.lib", 1421 "userenv.lib",
1421 "winmm.lib", 1422 "winmm.lib",
1422 ] 1423 ]
1423 all_dependent_configs += [ ":base_win_linker_flags" ] 1424 all_dependent_configs += [ ":base_win_linker_flags" ]
1424 } else if (!is_nacl || is_nacl_nonsfi) { 1425 } else if ((!is_nacl || is_nacl_nonsfi) && current_os != "fuchsia") {
1425 # Non-Windows. 1426 # Non-Windows.
1426 deps += [ "//base/third_party/libevent" ] 1427 deps += [ "//base/third_party/libevent" ]
1427 } 1428 }
1428 1429
1429 # Desktop Mac. 1430 # Desktop Mac.
1430 if (is_mac) { 1431 if (is_mac) {
1431 sources += [ 1432 sources += [
1432 "mac/scoped_typeref.h", 1433 "mac/scoped_typeref.h",
1433 "power_monitor/power_monitor_device_source_mac.mm", 1434 "power_monitor/power_monitor_device_source_mac.mm",
1434 ] 1435 ]
1435 1436
1436 libs = [ 1437 libs = [
1437 "ApplicationServices.framework", 1438 "ApplicationServices.framework",
1438 "AppKit.framework", 1439 "AppKit.framework",
1439 "bsm", 1440 "bsm",
1440 "CoreFoundation.framework", 1441 "CoreFoundation.framework",
1441 "IOKit.framework", 1442 "IOKit.framework",
1442 "Security.framework", 1443 "Security.framework",
1443 ] 1444 ]
1444 } 1445 }
1445 1446
1446 # Mac or iOS. 1447 # Mac or iOS.
1447 if (is_mac || is_ios) { 1448 if (is_mac || is_ios) {
1448 sources -= [ 1449 sources -= [
1449 "memory/shared_memory_posix.cc", 1450 "memory/shared_memory_posix.cc",
1450 "native_library_posix.cc", 1451 "native_library_posix.cc",
1451 "strings/sys_string_conversions_posix.cc", 1452 "strings/sys_string_conversions_posix.cc",
1452 "threading/platform_thread_internal_posix.cc", 1453 "threading/platform_thread_internal_posix.cc",
1453 ] 1454 ]
1454 } else { 1455 } else if (current_os != "fuchsia") {
1455 # Non-Mac/ios. 1456 # Non-Mac/ios.
1456 sources -= [ 1457 sources -= [
1457 "files/file_path_watcher_fsevents.cc", 1458 "files/file_path_watcher_fsevents.cc",
1458 "files/file_path_watcher_fsevents.h", 1459 "files/file_path_watcher_fsevents.h",
1459 "files/file_path_watcher_kqueue.cc", 1460 "files/file_path_watcher_kqueue.cc",
1460 "files/file_path_watcher_kqueue.h", 1461 "files/file_path_watcher_kqueue.h",
1461 ] 1462 ]
1462 } 1463 }
1463 1464
1464 # Linux. 1465 # Linux.
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1571 "power_monitor/power_monitor_device_source_ios.mm", 1572 "power_monitor/power_monitor_device_source_ios.mm",
1572 "process/memory_stubs.cc", 1573 "process/memory_stubs.cc",
1573 "strings/sys_string_conversions_mac.mm", 1574 "strings/sys_string_conversions_mac.mm",
1574 "threading/platform_thread_mac.mm", 1575 "threading/platform_thread_mac.mm",
1575 "time/time_mac.cc", 1576 "time/time_mac.cc",
1576 ] 1577 ]
1577 1578
1578 set_sources_assignment_filter(sources_assignment_filter) 1579 set_sources_assignment_filter(sources_assignment_filter)
1579 } 1580 }
1580 1581
1582 if (current_os == "fuchsia") {
1583 set_sources_assignment_filter([])
1584
1585 sources -= [
1586 "files/file_path_watcher.cc",
1587 "files/file_path_watcher.h",
1588 "files/file_path_watcher_fsevents.cc",
1589 "files/file_path_watcher_fsevents.h",
1590 "files/file_path_watcher_kqueue.cc",
1591 "files/file_path_watcher_kqueue.h",
1592 "memory/discardable_shared_memory.cc",
1593 "memory/discardable_shared_memory.h",
1594 "process/kill.cc",
1595 "process/kill.h",
1596 "process/launch.cc",
1597 "process/launch.h",
1598 "process/memory.cc",
1599 "process/memory.h",
1600 "process/process_iterator.cc",
1601 "process/process_iterator.h",
1602 ]
1603
1604 set_sources_assignment_filter(sources_assignment_filter)
1605 }
1606
1581 if (is_posix && !is_mac && !is_ios && !is_android && !is_chromeos) { 1607 if (is_posix && !is_mac && !is_ios && !is_android && !is_chromeos) {
1582 sources += [ "power_monitor/power_monitor_device_source_posix.cc" ] 1608 sources += [ "power_monitor/power_monitor_device_source_posix.cc" ]
1583 } 1609 }
1584 1610
1585 if (!use_glib) { 1611 if (!use_glib) {
1586 sources -= [ 1612 sources -= [
1587 "message_loop/message_pump_glib.cc", 1613 "message_loop/message_pump_glib.cc",
1588 "message_loop/message_pump_glib.h", 1614 "message_loop/message_pump_glib.h",
1589 ] 1615 ]
1590 } 1616 }
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
2646 } 2672 }
2647 2673
2648 fuzzer_test("base_json_correctness_fuzzer") { 2674 fuzzer_test("base_json_correctness_fuzzer") {
2649 sources = [ 2675 sources = [
2650 "json/correctness_fuzzer.cc", 2676 "json/correctness_fuzzer.cc",
2651 ] 2677 ]
2652 deps = [ 2678 deps = [
2653 ":base", 2679 ":base",
2654 ] 2680 ]
2655 } 2681 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698