| 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 21 matching lines...) Expand all Loading... |
| 32 "base_paths_android.cc", | 32 "base_paths_android.cc", |
| 33 "base_paths_android.h", | 33 "base_paths_android.h", |
| 34 "base_paths_mac.h", | 34 "base_paths_mac.h", |
| 35 "base_paths_mac.mm", | 35 "base_paths_mac.mm", |
| 36 "base_paths_posix.cc", | 36 "base_paths_posix.cc", |
| 37 "base_paths_posix.h", | 37 "base_paths_posix.h", |
| 38 "base_paths_win.cc", | 38 "base_paths_win.cc", |
| 39 "base_paths_win.h", | 39 "base_paths_win.h", |
| 40 ] | 40 ] |
| 41 | 41 |
| 42 if (is_android || is_mac) { | 42 if (is_android || is_mac || is_ios) { |
| 43 sources -= [ "base_paths_posix.cc" ] | 43 sources -= [ "base_paths_posix.cc" ] |
| 44 } | 44 } |
| 45 | 45 |
| 46 if (is_nacl) { | 46 if (is_nacl) { |
| 47 sources -= [ | 47 sources -= [ |
| 48 "base_paths.cc", | 48 "base_paths.cc", |
| 49 "base_paths_posix.cc", | 49 "base_paths_posix.cc", |
| 50 ] | 50 ] |
| 51 } | 51 } |
| 52 | 52 |
| (...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 "powrprof.lib", | 757 "powrprof.lib", |
| 758 "setupapi.lib", | 758 "setupapi.lib", |
| 759 ] | 759 ] |
| 760 all_dependent_configs = [ ":base_win_linker_flags" ] | 760 all_dependent_configs = [ ":base_win_linker_flags" ] |
| 761 } else if (!is_nacl) { | 761 } else if (!is_nacl) { |
| 762 # Non-Windows. | 762 # Non-Windows. |
| 763 deps += [ "//third_party/libevent" ] | 763 deps += [ "//third_party/libevent" ] |
| 764 } | 764 } |
| 765 | 765 |
| 766 # Mac. | 766 # Mac. |
| 767 if (is_mac) { | 767 if (is_mac || is_ios) { |
| 768 # Common Desktop / iOS excludes |
| 768 sources -= [ | 769 sources -= [ |
| 769 "native_library_posix.cc", | 770 "native_library_posix.cc", |
| 770 "strings/sys_string_conversions_posix.cc", | 771 "strings/sys_string_conversions_posix.cc", |
| 771 "threading/platform_thread_internal_posix.cc", | 772 "threading/platform_thread_internal_posix.cc", |
| 772 ] | 773 ] |
| 774 |
| 775 if (is_ios) { |
| 776 sources -= [ |
| 777 "files/file_path_watcher_fsevents.cc", |
| 778 "files/file_path_watcher_fsevents.h", |
| 779 ] |
| 780 } |
| 773 } else { | 781 } else { |
| 774 # Non-Mac. | 782 # Non-Mac. |
| 775 sources -= [ | 783 sources -= [ |
| 776 "files/file_path_watcher_fsevents.cc", | 784 "files/file_path_watcher_fsevents.cc", |
| 777 "files/file_path_watcher_fsevents.h", | 785 "files/file_path_watcher_fsevents.h", |
| 778 "files/file_path_watcher_kqueue.cc", | 786 "files/file_path_watcher_kqueue.cc", |
| 779 "files/file_path_watcher_kqueue.h", | 787 "files/file_path_watcher_kqueue.h", |
| 780 ] | 788 ] |
| 781 } | 789 } |
| 782 | 790 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 807 ] | 815 ] |
| 808 | 816 |
| 809 if (!is_android) { | 817 if (!is_android) { |
| 810 sources -= [ | 818 sources -= [ |
| 811 "linux_util.cc", | 819 "linux_util.cc", |
| 812 "linux_util.h", | 820 "linux_util.h", |
| 813 ] | 821 ] |
| 814 } | 822 } |
| 815 } | 823 } |
| 816 | 824 |
| 825 # iOS |
| 826 if (is_ios) { |
| 827 set_sources_assignment_filter([]) |
| 828 |
| 829 sources += [ |
| 830 "atomicops_internals_mac.h", |
| 831 "base_paths_mac.h", |
| 832 "base_paths_mac.mm", |
| 833 "file_version_info_mac.h", |
| 834 "file_version_info_mac.mm", |
| 835 "files/file_util_mac.mm", |
| 836 "mac/bundle_locations.h", |
| 837 "mac/bundle_locations.mm", |
| 838 "mac/foundation_util.h", |
| 839 "mac/foundation_util.mm", |
| 840 "mac/mac_logging.cc", |
| 841 "mac/mac_logging.h", |
| 842 "mac/mach_logging.cc", |
| 843 "mac/mach_logging.h", |
| 844 "mac/objc_property_releaser.h", |
| 845 "mac/objc_property_releaser.mm", |
| 846 "mac/scoped_mach_port.cc", |
| 847 "mac/scoped_mach_port.h", |
| 848 "mac/scoped_mach_vm.cc", |
| 849 "mac/scoped_mach_vm.h", |
| 850 "mac/scoped_nsautorelease_pool.h", |
| 851 "mac/scoped_nsautorelease_pool.mm", |
| 852 "mac/scoped_nsobject.h", |
| 853 "mac/scoped_objc_class_swizzler.h", |
| 854 "mac/scoped_objc_class_swizzler.mm", |
| 855 "message_loop/message_pump_mac.h", |
| 856 "message_loop/message_pump_mac.mm", |
| 857 "strings/sys_string_conversions_mac.mm", |
| 858 "threading/platform_thread_mac.mm", |
| 859 "time/time_mac.cc", |
| 860 ] |
| 861 |
| 862 set_sources_assignment_filter(sources_assignment_filter) |
| 863 } |
| 864 |
| 817 if (!use_glib) { | 865 if (!use_glib) { |
| 818 sources -= [ | 866 sources -= [ |
| 819 "message_loop/message_pump_glib.cc", | 867 "message_loop/message_pump_glib.cc", |
| 820 "message_loop/message_pump_glib.h", | 868 "message_loop/message_pump_glib.h", |
| 821 ] | 869 ] |
| 822 } | 870 } |
| 823 | 871 |
| 824 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 872 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 825 if (is_android && !is_debug) { | 873 if (is_android && !is_debug) { |
| 826 configs -= [ "//build/config/compiler:optimize" ] | 874 configs -= [ "//build/config/compiler:optimize" ] |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1333 apk_deps = [ | 1381 apk_deps = [ |
| 1334 ":base_java", | 1382 ":base_java", |
| 1335 ":base_java_unittest_support", | 1383 ":base_java_unittest_support", |
| 1336 ] | 1384 ] |
| 1337 isolate_file = "base_unittests.isolate" | 1385 isolate_file = "base_unittests.isolate" |
| 1338 } | 1386 } |
| 1339 | 1387 |
| 1340 if (is_ios) { | 1388 if (is_ios) { |
| 1341 sources -= [ | 1389 sources -= [ |
| 1342 "process/memory_unittest.cc", | 1390 "process/memory_unittest.cc", |
| 1343 "process/memory_unittest_mac.h", | |
| 1344 "process/memory_unittest_mac.mm", | |
| 1345 "process/process_unittest.cc", | 1391 "process/process_unittest.cc", |
| 1346 "process/process_util_unittest.cc", | 1392 "process/process_util_unittest.cc", |
| 1347 ] | 1393 ] |
| 1348 | 1394 |
| 1349 # Pull in specific Mac files for iOS (which have been filtered out by file | 1395 # Pull in specific Mac files for iOS (which have been filtered out by file |
| 1350 # name rules). | 1396 # name rules). |
| 1351 set_sources_assignment_filter([]) | 1397 set_sources_assignment_filter([]) |
| 1352 sources += [ | 1398 sources += [ |
| 1353 "mac/bind_objc_block_unittest.mm", | 1399 "mac/bind_objc_block_unittest.mm", |
| 1354 "mac/foundation_util_unittest.mm", | 1400 "mac/foundation_util_unittest.mm", |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1511 | 1557 |
| 1512 # GYP: //base.gyp:base_java_unittest_support | 1558 # GYP: //base.gyp:base_java_unittest_support |
| 1513 android_library("base_java_unittest_support") { | 1559 android_library("base_java_unittest_support") { |
| 1514 deps = [ | 1560 deps = [ |
| 1515 ":base_java", | 1561 ":base_java", |
| 1516 ] | 1562 ] |
| 1517 java_files = | 1563 java_files = |
| 1518 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1564 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
| 1519 } | 1565 } |
| 1520 } | 1566 } |
| OLD | NEW |