summaryrefslogtreecommitdiffstats
path: root/base/base.gypi
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-09 01:12:33 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-09 01:12:33 +0000
commitb0a5bf2c9aa8a248c0ca44eec4d0c6ed92ca563b (patch)
treec5a83696b18d1e42f07c5dea122d0f72f39948b1 /base/base.gypi
parent32d8383bc71b0f2652287081c54b9acee911bd57 (diff)
downloadchromium_src-b0a5bf2c9aa8a248c0ca44eec4d0c6ed92ca563b.zip
chromium_src-b0a5bf2c9aa8a248c0ca44eec4d0c6ed92ca563b.tar.gz
chromium_src-b0a5bf2c9aa8a248c0ca44eec4d0c6ed92ca563b.tar.bz2
Add a FileWatcher to base/.
This is like Directory Watcher, but only for a single file. Review URL: http://codereview.chromium.org/661359 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40980 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base.gypi')
-rw-r--r--base/base.gypi22
1 files changed, 22 insertions, 0 deletions
diff --git a/base/base.gypi b/base/base.gypi
index 3948fe4..2bea645 100644
--- a/base/base.gypi
+++ b/base/base.gypi
@@ -290,6 +290,7 @@
'sources!': [
'atomicops_internals_x86_gcc.cc',
'base_paths_posix.cc',
+ 'file_watcher_inotify.cc',
'linux_util.cc',
'message_pump_glib.cc',
],
@@ -312,6 +313,17 @@
'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
},
],
+ [ 'GENERATOR == "quentin"', {
+ # Quentin builds don't have a recent enough glibc to include the
+ # inotify headers
+ 'sources!': [
+ 'file_watcher_inotify.cc',
+ ],
+ 'sources': [
+ 'file_watcher_stub.cc',
+ ],
+ },
+ ],
[ 'OS == "mac"', {
'sources!': [
# TODO(wtc): Remove nss_util.{cc,h} when http://crbug.com/30689
@@ -406,6 +418,12 @@
],
},],
[ 'OS == "freebsd"', {
+ 'sources!': [
+ 'file_watcher_inotify.cc',
+ ],
+ 'sources': [
+ 'file_watcher_stub.cc',
+ ],
'link_settings': {
'libraries': [
'-L/usr/local/lib -lexecinfo',
@@ -485,6 +503,10 @@
'base_drop_target.cc',
'base_drop_target.h',
'data_pack.cc',
+ 'file_watcher.h',
+ 'file_watcher_inotify.cc',
+ 'file_watcher_mac.cc',
+ 'file_watcher_win.cc',
'dynamic_annotations.h',
'dynamic_annotations.cc',
'event_recorder.cc',