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

Side by Side Diff: base/base.gypi

Issue 313083007: Use FSEvents for recursive file watch on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include fix for iOS Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « base/BUILD.gn ('k') | base/files/file_path_watcher.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 { 5 {
6 'target_defaults': { 6 'target_defaults': {
7 'variables': { 7 'variables': {
8 'base_target': 0, 8 'base_target': 0,
9 'base_i18n_target': 0, 9 'base_i18n_target': 0,
10 }, 10 },
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 'files/file.h', 187 'files/file.h',
188 'files/file_enumerator.cc', 188 'files/file_enumerator.cc',
189 'files/file_enumerator.h', 189 'files/file_enumerator.h',
190 'files/file_enumerator_posix.cc', 190 'files/file_enumerator_posix.cc',
191 'files/file_enumerator_win.cc', 191 'files/file_enumerator_win.cc',
192 'files/file_path.cc', 192 'files/file_path.cc',
193 'files/file_path.h', 193 'files/file_path.h',
194 'files/file_path_constants.cc', 194 'files/file_path_constants.cc',
195 'files/file_path_watcher.cc', 195 'files/file_path_watcher.cc',
196 'files/file_path_watcher.h', 196 'files/file_path_watcher.h',
197 'files/file_path_watcher_fsevents.cc',
198 'files/file_path_watcher_fsevents.h',
197 'files/file_path_watcher_kqueue.cc', 199 'files/file_path_watcher_kqueue.cc',
200 'files/file_path_watcher_kqueue.h',
198 'files/file_path_watcher_linux.cc', 201 'files/file_path_watcher_linux.cc',
202 'files/file_path_watcher_mac.cc',
199 'files/file_path_watcher_stub.cc', 203 'files/file_path_watcher_stub.cc',
200 'files/file_path_watcher_win.cc', 204 'files/file_path_watcher_win.cc',
201 'files/file_posix.cc', 205 'files/file_posix.cc',
202 'files/file_proxy.cc', 206 'files/file_proxy.cc',
203 'files/file_proxy.h', 207 'files/file_proxy.h',
204 'files/file_util_proxy.cc', 208 'files/file_util_proxy.cc',
205 'files/file_util_proxy.h', 209 'files/file_util_proxy.h',
206 'files/file_win.cc', 210 'files/file_win.cc',
207 'files/important_file_writer.h', 211 'files/important_file_writer.h',
208 'files/important_file_writer.cc', 212 'files/important_file_writer.cc',
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 ['>(nacl_untrusted_build)==1', { 749 ['>(nacl_untrusted_build)==1', {
746 'sources!': [ 750 'sources!': [
747 'allocator/type_profiler_control.cc', 751 'allocator/type_profiler_control.cc',
748 'allocator/type_profiler_control.h', 752 'allocator/type_profiler_control.h',
749 'base_paths.cc', 753 'base_paths.cc',
750 'cpu.cc', 754 'cpu.cc',
751 'debug/stack_trace_posix.cc', 755 'debug/stack_trace_posix.cc',
752 'file_util.cc', 756 'file_util.cc',
753 'file_util_posix.cc', 757 'file_util_posix.cc',
754 'files/file_enumerator_posix.cc', 758 'files/file_enumerator_posix.cc',
759 'files/file_path_watcher_fsevents.cc',
760 'files/file_path_watcher_fsevents.h',
755 'files/file_path_watcher_kqueue.cc', 761 'files/file_path_watcher_kqueue.cc',
762 'files/file_path_watcher_kqueue.h',
756 'files/file_proxy.cc', 763 'files/file_proxy.cc',
757 'files/file_util_proxy.cc', 764 'files/file_util_proxy.cc',
758 'memory/shared_memory_posix.cc', 765 'memory/shared_memory_posix.cc',
759 'native_library_posix.cc', 766 'native_library_posix.cc',
760 'path_service.cc', 767 'path_service.cc',
761 'posix/unix_domain_socket_linux.cc', 768 'posix/unix_domain_socket_linux.cc',
762 'process/kill_posix.cc', 769 'process/kill_posix.cc',
763 'process/launch_posix.cc', 770 'process/launch_posix.cc',
764 'process/process_metrics_posix.cc', 771 'process/process_metrics_posix.cc',
765 'process/process_posix.cc', 772 'process/process_posix.cc',
(...skipping 11 matching lines...) Expand all
777 'sources': [ 784 'sources': [
778 'memory/discardable_memory_ashmem_allocator.cc', 785 'memory/discardable_memory_ashmem_allocator.cc',
779 'memory/discardable_memory_ashmem_allocator.h', 786 'memory/discardable_memory_ashmem_allocator.h',
780 'memory/discardable_memory_ashmem.cc', 787 'memory/discardable_memory_ashmem.cc',
781 'memory/discardable_memory_ashmem.h', 788 'memory/discardable_memory_ashmem.h',
782 ], 789 ],
783 }], 790 }],
784 ['OS == "android" and >(nacl_untrusted_build)==0', { 791 ['OS == "android" and >(nacl_untrusted_build)==0', {
785 'sources!': [ 792 'sources!': [
786 'base_paths_posix.cc', 793 'base_paths_posix.cc',
794 'files/file_path_watcher_fsevents.cc',
795 'files/file_path_watcher_fsevents.h',
787 'files/file_path_watcher_kqueue.cc', 796 'files/file_path_watcher_kqueue.cc',
797 'files/file_path_watcher_kqueue.h',
788 'files/file_path_watcher_stub.cc', 798 'files/file_path_watcher_stub.cc',
789 'power_monitor/power_monitor_device_source_posix.cc', 799 'power_monitor/power_monitor_device_source_posix.cc',
790 ], 800 ],
791 'sources/': [ 801 'sources/': [
792 ['include', '^debug/proc_maps_linux\\.cc$'], 802 ['include', '^debug/proc_maps_linux\\.cc$'],
793 ['include', '^files/file_path_watcher_linux\\.cc$'], 803 ['include', '^files/file_path_watcher_linux\\.cc$'],
794 ['include', '^process/memory_linux\\.cc$'], 804 ['include', '^process/memory_linux\\.cc$'],
795 ['include', '^process/internal_linux\\.cc$'], 805 ['include', '^process/internal_linux\\.cc$'],
796 ['include', '^process/process_handle_linux\\.cc$'], 806 ['include', '^process/process_handle_linux\\.cc$'],
797 ['include', '^process/process_iterator\\.cc$'], 807 ['include', '^process/process_iterator\\.cc$'],
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 ['include', '^strings/sys_string_conversions_mac\\.'], 852 ['include', '^strings/sys_string_conversions_mac\\.'],
843 ['include', '^threading/platform_thread_mac\\.'], 853 ['include', '^threading/platform_thread_mac\\.'],
844 ['include', '^time/time_mac\\.'], 854 ['include', '^time/time_mac\\.'],
845 ['include', '^worker_pool_mac\\.'], 855 ['include', '^worker_pool_mac\\.'],
846 # Exclude all process/ except the minimal implementation 856 # Exclude all process/ except the minimal implementation
847 # needed on iOS (mostly for unit tests). 857 # needed on iOS (mostly for unit tests).
848 ['exclude', '^process/.*'], 858 ['exclude', '^process/.*'],
849 ['include', '^process/.*_ios\.(cc|mm)$'], 859 ['include', '^process/.*_ios\.(cc|mm)$'],
850 ['include', '^process/memory_stubs\.cc$'], 860 ['include', '^process/memory_stubs\.cc$'],
851 ['include', '^process/process_handle_posix\.cc$'], 861 ['include', '^process/process_handle_posix\.cc$'],
862 ['exclude', 'files/file_path_watcher_fsevents.cc'],
863 ['exclude', 'files/file_path_watcher_fsevents.h'],
864 ['include', 'files/file_path_watcher_mac.cc'],
852 ], 865 ],
853 'sources': [ 866 'sources': [
854 'process/memory_stubs.cc', 867 'process/memory_stubs.cc',
855 ], 868 ],
856 'sources!': [ 869 'sources!': [
857 'message_loop/message_pump_libevent.cc' 870 'message_loop/message_pump_libevent.cc'
858 ], 871 ],
859 }], 872 }],
860 ['OS == "ios" and _toolset == "host"', { 873 ['OS == "ios" and _toolset == "host"', {
861 'sources/': [ 874 'sources/': [
862 # Copied filename_rules to switch from iOS to Mac inclusions. 875 # Copied filename_rules to switch from iOS to Mac inclusions.
863 ['include', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'], 876 ['include', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'],
864 ['include', '(^|/)(cocoa|mac)/'], 877 ['include', '(^|/)(cocoa|mac)/'],
865 ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'], 878 ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'],
866 ['exclude', '(^|/)ios/'], 879 ['exclude', '(^|/)ios/'],
880 ['exclude', 'files/file_path_watcher_fsevents.cc'],
881 ['exclude', 'files/file_path_watcher_fsevents.h'],
882 ['include', 'files/file_path_watcher_mac.cc'],
867 ] 883 ]
868 }], 884 }],
869 # For now, just test the *BSD platforms enough to exclude them. 885 # For now, just test the *BSD platforms enough to exclude them.
870 # Subsequent changes will include them further. 886 # Subsequent changes will include them further.
871 ['OS != "freebsd" or >(nacl_untrusted_build)==1', { 887 ['OS != "freebsd" or >(nacl_untrusted_build)==1', {
872 'sources/': [ ['exclude', '_freebsd\\.cc$'] ], 888 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
873 }, 889 },
874 ], 890 ],
875 ['OS != "openbsd" or >(nacl_untrusted_build)==1', { 891 ['OS != "openbsd" or >(nacl_untrusted_build)==1', {
876 'sources/': [ ['exclude', '_openbsd\\.cc$'] ], 892 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
877 }, 893 },
878 ], 894 ],
879 ['OS == "win" and >(nacl_untrusted_build)==0', { 895 ['OS == "win" and >(nacl_untrusted_build)==0', {
880 'include_dirs': [ 896 'include_dirs': [
881 '<(DEPTH)/third_party/wtl/include', 897 '<(DEPTH)/third_party/wtl/include',
882 ], 898 ],
883 'sources!': [ 899 'sources!': [
884 'event_recorder_stubs.cc', 900 'event_recorder_stubs.cc',
901 'files/file_path_watcher_fsevents.cc',
902 'files/file_path_watcher_fsevents.h',
885 'files/file_path_watcher_kqueue.cc', 903 'files/file_path_watcher_kqueue.cc',
904 'files/file_path_watcher_kqueue.h',
886 'files/file_path_watcher_stub.cc', 905 'files/file_path_watcher_stub.cc',
887 'message_loop/message_pump_libevent.cc', 906 'message_loop/message_pump_libevent.cc',
888 'posix/file_descriptor_shuffle.cc', 907 'posix/file_descriptor_shuffle.cc',
889 # Not using sha1_win.cc because it may have caused a 908 # Not using sha1_win.cc because it may have caused a
890 # regression to page cycler moz. 909 # regression to page cycler moz.
891 'sha1_win.cc', 910 'sha1_win.cc',
892 'strings/string16.cc', 911 'strings/string16.cc',
893 ], 912 ],
894 },], 913 },],
895 ['<(use_ozone) == 1', { 914 ['<(use_ozone) == 1', {
896 'sources!': [ 915 'sources!': [
897 'message_loop/message_pump_glib.cc', 916 'message_loop/message_pump_glib.cc',
898 ] 917 ]
899 }], 918 }],
900 ['OS == "linux" and >(nacl_untrusted_build)==0', { 919 ['OS == "linux" and >(nacl_untrusted_build)==0', {
901 'sources!': [ 920 'sources!': [
921 'files/file_path_watcher_fsevents.cc',
922 'files/file_path_watcher_fsevents.h',
902 'files/file_path_watcher_kqueue.cc', 923 'files/file_path_watcher_kqueue.cc',
924 'files/file_path_watcher_kqueue.h',
903 'files/file_path_watcher_stub.cc', 925 'files/file_path_watcher_stub.cc',
904 ], 926 ],
905 }], 927 }],
906 ['(OS == "mac" or OS == "ios") and >(nacl_untrusted_build)==0', { 928 ['(OS == "mac" or OS == "ios") and >(nacl_untrusted_build)==0', {
907 'sources/': [ 929 'sources/': [
908 ['exclude', '^files/file_path_watcher_stub\\.cc$'], 930 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
909 ['exclude', '^base_paths_posix\\.cc$'], 931 ['exclude', '^base_paths_posix\\.cc$'],
910 ['exclude', '^native_library_posix\\.cc$'], 932 ['exclude', '^native_library_posix\\.cc$'],
911 ['exclude', '^strings/sys_string_conversions_posix\\.cc$'], 933 ['exclude', '^strings/sys_string_conversions_posix\\.cc$'],
912 ], 934 ],
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 'i18n/time_formatting.h', 990 'i18n/time_formatting.h',
969 'i18n/timezone.cc', 991 'i18n/timezone.cc',
970 'i18n/timezone.h', 992 'i18n/timezone.h',
971 'i18n/utf8_validator_tables.cc', 993 'i18n/utf8_validator_tables.cc',
972 'i18n/utf8_validator_tables.h', 994 'i18n/utf8_validator_tables.h',
973 ], 995 ],
974 }] 996 }]
975 ], 997 ],
976 }, 998 },
977 } 999 }
OLDNEW
« no previous file with comments | « base/BUILD.gn ('k') | base/files/file_path_watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698