| OLD | NEW |
| 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 } |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 "win/windows_version.h", | 638 "win/windows_version.h", |
| 639 "win/wrapped_window_proc.cc", | 639 "win/wrapped_window_proc.cc", |
| 640 "win/wrapped_window_proc.h", | 640 "win/wrapped_window_proc.h", |
| 641 ] | 641 ] |
| 642 | 642 |
| 643 sources -= [ | 643 sources -= [ |
| 644 "sys_info_freebsd.cc", | 644 "sys_info_freebsd.cc", |
| 645 "sys_info_openbsd.cc", | 645 "sys_info_openbsd.cc", |
| 646 ] | 646 ] |
| 647 | 647 |
| 648 data = [] |
| 649 |
| 648 configs += [ ":base_implementation" ] | 650 configs += [ ":base_implementation" ] |
| 649 | 651 |
| 650 deps = [ | 652 deps = [ |
| 651 ":base_static", | 653 ":base_static", |
| 652 "//base/allocator:allocator_extension_thunks", | 654 "//base/allocator:allocator_extension_thunks", |
| 653 "//base/third_party/dynamic_annotations", | 655 "//base/third_party/dynamic_annotations", |
| 654 "//third_party/modp_b64", | 656 "//third_party/modp_b64", |
| 655 ] | 657 ] |
| 656 | 658 |
| 657 public_deps = [ | 659 public_deps = [ |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 742 if (is_win) { | 744 if (is_win) { |
| 743 sources -= [ | 745 sources -= [ |
| 744 "message_loop/message_pump_libevent.cc", | 746 "message_loop/message_pump_libevent.cc", |
| 745 "strings/string16.cc", | 747 "strings/string16.cc", |
| 746 | 748 |
| 747 # Not using sha1_win.cc because it may have caused a | 749 # Not using sha1_win.cc because it may have caused a |
| 748 # regression to page cycler moz. | 750 # regression to page cycler moz. |
| 749 "sha1_win.cc", | 751 "sha1_win.cc", |
| 750 ] | 752 ] |
| 751 | 753 |
| 754 # Required for base/stack_trace_win.cc to symbolize correctly. |
| 755 data += [ "$root_build_dir/dbghelp.dll" ] |
| 756 |
| 757 if (is_component_build) { |
| 758 # Copy the VS runtime DLLs into the isolate so that they don't have to be |
| 759 # preinstalled on the target machine. The debug runtimes have a "d" at |
| 760 # the end. |
| 761 if (is_debug) { |
| 762 vcrt_suffix = "d" |
| 763 } else { |
| 764 vcrt_suffix = "" |
| 765 } |
| 766 |
| 767 # These runtime files are copied to the output directory by the |
| 768 # vs_toolchain script that runs as part of toolchain configuration. |
| 769 data += [ |
| 770 "$root_out_dir/msvcp120${vcrt_suffix}.dll", |
| 771 "$root_out_dir/msvcr120${vcrt_suffix}.dll", |
| 772 ] |
| 773 if (is_asan) { |
| 774 data += [ "//third_party/llvm-build/Release+Asserts/lib/clang/3.7.0/lib/
windows/clang_rt.asan_dynamic-i386.dll" ] |
| 775 } |
| 776 } |
| 777 |
| 752 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 778 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 753 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 779 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 754 | 780 |
| 755 libs = [ | 781 libs = [ |
| 756 "cfgmgr32.lib", | 782 "cfgmgr32.lib", |
| 757 "netapi32.lib", | 783 "netapi32.lib", |
| 758 "powrprof.lib", | 784 "powrprof.lib", |
| 759 "setupapi.lib", | 785 "setupapi.lib", |
| 760 ] | 786 ] |
| 761 all_dependent_configs = [ ":base_win_linker_flags" ] | 787 all_dependent_configs = [ ":base_win_linker_flags" ] |
| 762 } else if (!is_nacl) { | 788 } else if (!is_nacl) { |
| 763 # Non-Windows. | 789 # Non-Windows. |
| 764 deps += [ "//third_party/libevent" ] | 790 deps += [ "//third_party/libevent" ] |
| 765 } | 791 } |
| 766 | 792 |
| 767 # Mac. | 793 # Mac. |
| 768 if (is_mac || is_ios) { | 794 if (is_mac || is_ios) { |
| 769 # Common Desktop / iOS excludes | 795 # Common Desktop / iOS excludes |
| 770 sources -= [ | 796 sources -= [ |
| 771 "native_library_posix.cc", | 797 "native_library_posix.cc", |
| 772 "strings/sys_string_conversions_posix.cc", | 798 "strings/sys_string_conversions_posix.cc", |
| 773 "threading/platform_thread_internal_posix.cc", | 799 "threading/platform_thread_internal_posix.cc", |
| 774 ] | 800 ] |
| 775 | 801 |
| 802 if (is_asan) { |
| 803 # TODO(GYP) hook up asan on Mac. GYP has this extra dylib: |
| 804 #data += [ "$root_out_dir/libclang_rt.asan_osx_dynamic.dylib" ] |
| 805 } |
| 806 |
| 776 if (is_ios) { | 807 if (is_ios) { |
| 777 sources -= [ | 808 sources -= [ |
| 778 "files/file_path_watcher_fsevents.cc", | 809 "files/file_path_watcher_fsevents.cc", |
| 779 "files/file_path_watcher_fsevents.h", | 810 "files/file_path_watcher_fsevents.h", |
| 780 ] | 811 ] |
| 781 } | 812 } |
| 782 } else { | 813 } else { |
| 783 # Non-Mac. | 814 # Non-Mac. |
| 784 sources -= [ | 815 sources -= [ |
| 785 "files/file_path_watcher_fsevents.cc", | 816 "files/file_path_watcher_fsevents.cc", |
| 786 "files/file_path_watcher_fsevents.h", | 817 "files/file_path_watcher_fsevents.h", |
| 787 "files/file_path_watcher_kqueue.cc", | 818 "files/file_path_watcher_kqueue.cc", |
| 788 "files/file_path_watcher_kqueue.h", | 819 "files/file_path_watcher_kqueue.h", |
| 789 ] | 820 ] |
| 790 } | 821 } |
| 791 | 822 |
| 792 # Linux. | 823 # Linux. |
| 793 if (is_linux) { | 824 if (is_linux) { |
| 825 if (is_asan || is_lsan || is_msan || is_tsan) { |
| 826 # For llvm-sanitizer. |
| 827 data += [ "//third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6" ] |
| 828 } |
| 829 |
| 794 # TODO(brettw) this will need to be parameterized at some point. | 830 # TODO(brettw) this will need to be parameterized at some point. |
| 795 linux_configs = [] | 831 linux_configs = [] |
| 796 if (use_glib) { | 832 if (use_glib) { |
| 797 linux_configs += [ "//build/config/linux:glib" ] | 833 linux_configs += [ "//build/config/linux:glib" ] |
| 798 } | 834 } |
| 799 | 835 |
| 800 configs += linux_configs | 836 configs += linux_configs |
| 801 all_dependent_configs = linux_configs | 837 all_dependent_configs = linux_configs |
| 802 | 838 |
| 803 # These dependencies are not required on Android, and in the case | 839 # These dependencies are not required on Android, and in the case |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 865 set_sources_assignment_filter(sources_assignment_filter) | 901 set_sources_assignment_filter(sources_assignment_filter) |
| 866 } | 902 } |
| 867 | 903 |
| 868 if (!use_glib) { | 904 if (!use_glib) { |
| 869 sources -= [ | 905 sources -= [ |
| 870 "message_loop/message_pump_glib.cc", | 906 "message_loop/message_pump_glib.cc", |
| 871 "message_loop/message_pump_glib.h", | 907 "message_loop/message_pump_glib.h", |
| 872 ] | 908 ] |
| 873 } | 909 } |
| 874 | 910 |
| 911 if (is_asan || is_lsan || is_msan || is_tsan) { |
| 912 data += [ "//tools/valgrind/asan/" ] |
| 913 if (is_win) { |
| 914 data += |
| 915 [ "//third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer.exe" ] |
| 916 } else { |
| 917 data += [ "//third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer" ] |
| 918 } |
| 919 } |
| 920 |
| 875 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 921 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 876 if (!is_debug) { | 922 if (!is_debug) { |
| 877 configs -= [ "//build/config/compiler:optimize" ] | 923 configs -= [ "//build/config/compiler:optimize" ] |
| 878 configs += [ "//build/config/compiler:optimize_max" ] | 924 configs += [ "//build/config/compiler:optimize_max" ] |
| 879 } | 925 } |
| 880 | 926 |
| 881 allow_circular_includes_from = public_deps | 927 allow_circular_includes_from = public_deps |
| 882 } | 928 } |
| 883 | 929 |
| 884 # This is the subset of files from base that should not be used with a dynamic | 930 # This is the subset of files from base that should not be used with a dynamic |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1373 "//base/test:test_support", | 1419 "//base/test:test_support", |
| 1374 "//base/third_party/dynamic_annotations", | 1420 "//base/third_party/dynamic_annotations", |
| 1375 "//base/trace_event:trace_event_unittests", | 1421 "//base/trace_event:trace_event_unittests", |
| 1376 "//testing/gmock", | 1422 "//testing/gmock", |
| 1377 "//testing/gtest", | 1423 "//testing/gtest", |
| 1378 "//third_party/icu", | 1424 "//third_party/icu", |
| 1379 ] | 1425 ] |
| 1380 | 1426 |
| 1381 data = [ | 1427 data = [ |
| 1382 "test/data/", | 1428 "test/data/", |
| 1383 | |
| 1384 # TODO(dpranke): Remove when icu declares this directly. | |
| 1385 "$root_out_dir/icudtl.dat", | |
| 1386 ] | 1429 ] |
| 1387 | 1430 |
| 1388 # Allow more direct string conversions on platforms with native utf8 | 1431 # Allow more direct string conversions on platforms with native utf8 |
| 1389 # strings | 1432 # strings |
| 1390 if (is_mac || is_ios || is_chromeos) { | 1433 if (is_mac || is_ios || is_chromeos) { |
| 1391 defines = [ "SYSTEM_NATIVE_UTF8" ] | 1434 defines = [ "SYSTEM_NATIVE_UTF8" ] |
| 1392 } | 1435 } |
| 1393 | 1436 |
| 1394 if (is_android) { | 1437 if (is_android) { |
| 1395 apk_deps = [ | 1438 apk_deps = [ |
| 1396 ":base_java", | 1439 ":base_java", |
| 1397 ":base_java_unittest_support", | 1440 ":base_java_unittest_support", |
| 1398 ] | 1441 ] |
| 1442 |
| 1443 # TODO(brettw) I think this should not be here, we should not be using |
| 1444 # isolate files. |
| 1399 isolate_file = "base_unittests.isolate" | 1445 isolate_file = "base_unittests.isolate" |
| 1400 } | 1446 } |
| 1401 | 1447 |
| 1402 if (is_ios) { | 1448 if (is_ios) { |
| 1403 sources -= [ | 1449 sources -= [ |
| 1404 "process/memory_unittest.cc", | 1450 "process/memory_unittest.cc", |
| 1405 "process/process_unittest.cc", | 1451 "process/process_unittest.cc", |
| 1406 "process/process_util_unittest.cc", | 1452 "process/process_util_unittest.cc", |
| 1407 ] | 1453 ] |
| 1408 | 1454 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1442 | 1488 |
| 1443 if (is_android) { | 1489 if (is_android) { |
| 1444 deps += [ "//testing/android/native_test:native_test_native_code" ] | 1490 deps += [ "//testing/android/native_test:native_test_native_code" ] |
| 1445 set_sources_assignment_filter([]) | 1491 set_sources_assignment_filter([]) |
| 1446 sources += [ "debug/proc_maps_linux_unittest.cc" ] | 1492 sources += [ "debug/proc_maps_linux_unittest.cc" ] |
| 1447 set_sources_assignment_filter(sources_assignment_filter) | 1493 set_sources_assignment_filter(sources_assignment_filter) |
| 1448 } | 1494 } |
| 1449 | 1495 |
| 1450 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1496 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1451 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 1497 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 1498 |
| 1499 # Symbols for crashes when running tests on swarming. |
| 1500 if (symbol_level > 0) { |
| 1501 if (is_win) { |
| 1502 data += [ "$root_out_dir/base_unittests.exe.pdb" ] |
| 1503 } else if (is_mac) { |
| 1504 data += [ "$root_out_dir/base_unittests.dSYM/" ] |
| 1505 } |
| 1506 } |
| 1452 } | 1507 } |
| 1453 | 1508 |
| 1454 if (is_android) { | 1509 if (is_android) { |
| 1455 # GYP: //base.gyp:base_jni_headers | 1510 # GYP: //base.gyp:base_jni_headers |
| 1456 generate_jni("base_jni_headers") { | 1511 generate_jni("base_jni_headers") { |
| 1457 sources = [ | 1512 sources = [ |
| 1458 "android/java/src/org/chromium/base/AnimationFrameTimeHistogram.java", | 1513 "android/java/src/org/chromium/base/AnimationFrameTimeHistogram.java", |
| 1459 "android/java/src/org/chromium/base/ApkAssets.java", | 1514 "android/java/src/org/chromium/base/ApkAssets.java", |
| 1460 "android/java/src/org/chromium/base/ApplicationStatus.java", | 1515 "android/java/src/org/chromium/base/ApplicationStatus.java", |
| 1461 "android/java/src/org/chromium/base/BuildInfo.java", | 1516 "android/java/src/org/chromium/base/BuildInfo.java", |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1571 | 1626 |
| 1572 # GYP: //base.gyp:base_java_unittest_support | 1627 # GYP: //base.gyp:base_java_unittest_support |
| 1573 android_library("base_java_unittest_support") { | 1628 android_library("base_java_unittest_support") { |
| 1574 deps = [ | 1629 deps = [ |
| 1575 ":base_java", | 1630 ":base_java", |
| 1576 ] | 1631 ] |
| 1577 java_files = | 1632 java_files = |
| 1578 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1633 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
| 1579 } | 1634 } |
| 1580 } | 1635 } |
| OLD | NEW |