summaryrefslogtreecommitdiffstats
path: root/base/base.gypi
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-22 23:28:05 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-22 23:28:05 +0000
commit1c657854c20ee288f8812c707d4bf4fcfecb7495 (patch)
tree2d157e936beea91a3f9ad2385999ad27804ec5d4 /base/base.gypi
parenta1170ed12a730f79d4224779b90e35923c7bb729 (diff)
downloadchromium_src-1c657854c20ee288f8812c707d4bf4fcfecb7495.zip
chromium_src-1c657854c20ee288f8812c707d4bf4fcfecb7495.tar.gz
chromium_src-1c657854c20ee288f8812c707d4bf4fcfecb7495.tar.bz2
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
Diffstat (limited to 'base/base.gypi')
-rw-r--r--base/base.gypi8
1 files changed, 6 insertions, 2 deletions
diff --git a/base/base.gypi b/base/base.gypi
index d57e587..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',
],