bsd: refactor XDG bits of linux_util into a shared file.
This allows the shared code to build on the BSDs without
them needing to build _linux files.
Review URL: http://codereview.chromium.org/1701005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45380 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/base.gypi b/base/base.gypi
index d57e5874..9b5c41b 100644
--- a/base/base.gypi
+++ b/base/base.gypi
@@ -123,7 +123,7 @@
'message_pump_win.cc',
'message_pump_win.h',
'mime_util.h',
- 'mime_util_linux.cc',
+ 'mime_util_xdg.cc',
'move.h',
'native_library.h',
'native_library_linux.cc',
@@ -279,6 +279,8 @@
'worker_pool_mac.h',
'worker_pool_mac.mm',
'worker_pool_win.cc',
+ 'xdg_util.h',
+ 'xdg_util.cc',
],
'include_dirs': [
'..',
@@ -294,18 +296,20 @@
[ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"', {
'sources/': [
['exclude', '/xdg_user_dirs/'],
+ ['exclude', '/xdg_[^/]*\\.cc$'],
['exclude', '_nss\.cc$'],
],
'sources!': [
'atomicops_internals_x86_gcc.cc',
'base_paths_posix.cc',
- 'linux_util.cc',
'message_pump_glib.cc',
+ 'xdg_util.cc',
],
}],
[ 'OS != "linux"', {
'sources!': [
# Not automatically excluded by the *linux.cc rules.
+ 'linux_util.cc',
'setproctitle_linux.c',
'setproctitle_linux.h',
],