diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-03 02:11:40 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-03 02:11:40 +0000 |
commit | 2d48004e1f2c8cecd015144c179f993d883aba9c (patch) | |
tree | 84341f2ea01d192e463cde48d10c908bd7be365d /base | |
parent | e5df6ed1abd14c08539d94affe90cc5ea71758aa (diff) | |
download | chromium_src-2d48004e1f2c8cecd015144c179f993d883aba9c.zip chromium_src-2d48004e1f2c8cecd015144c179f993d883aba9c.tar.gz chromium_src-2d48004e1f2c8cecd015144c179f993d883aba9c.tar.bz2 |
linux: split xdg_mime into a separate target
This will allow for building it with different flags.
BUG=34160
Review URL: http://codereview.chromium.org/561032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37933 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/base.gypi | 44 |
1 files changed, 26 insertions, 18 deletions
diff --git a/base/base.gypi b/base/base.gypi index 9cd56dc..f463b73 100644 --- a/base/base.gypi +++ b/base/base.gypi @@ -279,7 +279,6 @@ 'conditions': [ [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd"', { 'sources/': [ - ['exclude', '/xdg_mime/'], ['exclude', '/xdg_user_dirs/'], ['exclude', '_nss\.cc$'], ], @@ -398,7 +397,8 @@ '../build/util/build_util.gyp:lastchange', '../build/linux/system.gyp:gtk', '../build/linux/system.gyp:nss', - 'symbolize' + 'symbolize', + 'xdg_mime', ], 'defines': [ 'USE_SYMBOLIZE', @@ -486,22 +486,6 @@ 'third_party/nss/sha512.cc', 'third_party/purify/pure.h', 'third_party/purify/pure_api.c', - 'third_party/xdg_mime/xdgmime.c', - 'third_party/xdg_mime/xdgmime.h', - 'third_party/xdg_mime/xdgmimealias.c', - 'third_party/xdg_mime/xdgmimealias.h', - 'third_party/xdg_mime/xdgmimecache.c', - 'third_party/xdg_mime/xdgmimecache.h', - 'third_party/xdg_mime/xdgmimeglob.c', - 'third_party/xdg_mime/xdgmimeglob.h', - 'third_party/xdg_mime/xdgmimeicon.c', - 'third_party/xdg_mime/xdgmimeicon.h', - 'third_party/xdg_mime/xdgmimeint.c', - 'third_party/xdg_mime/xdgmimeint.h', - 'third_party/xdg_mime/xdgmimemagic.c', - 'third_party/xdg_mime/xdgmimemagic.h', - 'third_party/xdg_mime/xdgmimeparent.c', - 'third_party/xdg_mime/xdgmimeparent.h', 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc', 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h', 'auto_reset.h', @@ -614,6 +598,8 @@ ], }], [ 'OS == "linux" or OS == "freebsd"', { + # TODO: these third-party targets should be in a separate .gyp file + # so it can set chromium_code=0 to turn off our aggressive warnings. 'targets': [ { 'target_name': 'symbolize', @@ -626,6 +612,28 @@ 'third_party/symbolize/demangle.cc', ], }, + { + 'target_name': 'xdg_mime', + 'type': '<(library)', + 'sources': [ + 'third_party/xdg_mime/xdgmime.c', + 'third_party/xdg_mime/xdgmime.h', + 'third_party/xdg_mime/xdgmimealias.c', + 'third_party/xdg_mime/xdgmimealias.h', + 'third_party/xdg_mime/xdgmimecache.c', + 'third_party/xdg_mime/xdgmimecache.h', + 'third_party/xdg_mime/xdgmimeglob.c', + 'third_party/xdg_mime/xdgmimeglob.h', + 'third_party/xdg_mime/xdgmimeicon.c', + 'third_party/xdg_mime/xdgmimeicon.h', + 'third_party/xdg_mime/xdgmimeint.c', + 'third_party/xdg_mime/xdgmimeint.h', + 'third_party/xdg_mime/xdgmimemagic.c', + 'third_party/xdg_mime/xdgmimemagic.h', + 'third_party/xdg_mime/xdgmimeparent.c', + 'third_party/xdg_mime/xdgmimeparent.h', + ], + }, ], }], ], |