summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webkit_glue.gypi
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-27 19:28:25 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-27 19:28:25 +0000
commit420286748888437c755272ffe98fd27a16099194 (patch)
tree45431e2ca0d52bf46c57f305d1d69660db29e9a1 /webkit/glue/webkit_glue.gypi
parent8ec81aa69cbd7595508448afe9a0b2cee6e0d321 (diff)
downloadchromium_src-420286748888437c755272ffe98fd27a16099194.zip
chromium_src-420286748888437c755272ffe98fd27a16099194.tar.gz
chromium_src-420286748888437c755272ffe98fd27a16099194.tar.bz2
Second attempt at landing http://codereview.chromium.org/3214005
Factoring BuildUserAgent out to a separate lib for GCF can use it. TEST=There should be no functional change. If anything breaks it should be the build. BUG=50788 Review URL: http://codereview.chromium.org/3225003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57717 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webkit_glue.gypi')
-rw-r--r--webkit/glue/webkit_glue.gypi46
1 files changed, 35 insertions, 11 deletions
diff --git a/webkit/glue/webkit_glue.gypi b/webkit/glue/webkit_glue.gypi
index 450a870..9f29672 100644
--- a/webkit/glue/webkit_glue.gypi
+++ b/webkit/glue/webkit_glue.gypi
@@ -105,6 +105,40 @@
],
},
{
+ 'target_name': 'webkit_user_agent',
+ 'type': '<(library)',
+ 'msvs_guid': 'DB162DE1-7D56-4C4A-8A9F-80D396CD7AA8',
+ 'dependencies': [
+ '<(DEPTH)/app/app.gyp:app_base',
+ '<(DEPTH)/base/base.gyp:base_i18n',
+ ],
+ 'actions': [
+ {
+ 'action_name': 'webkit_version',
+ 'inputs': [
+ '../build/webkit_version.py',
+ '<(webkit_src_dir)/WebCore/Configurations/Version.xcconfig',
+ ],
+ 'outputs': [
+ '<(INTERMEDIATE_DIR)/webkit_version.h',
+ ],
+ 'action': ['python', '<@(_inputs)', '<(INTERMEDIATE_DIR)'],
+ },
+ ],
+ 'include_dirs': [
+ '<(INTERMEDIATE_DIR)',
+ ],
+ 'sources': [
+ 'user_agent.cc',
+ 'user_agent.h',
+ ],
+ # Dependents may rely on files generated by this target or one of its
+ # own hard dependencies.
+ 'hard_dependency': 1,
+ 'conditions': [
+ ],
+ },
+ {
'target_name': 'glue',
'type': '<(library)',
'msvs_guid': 'C66B126D-0ECE-4CA2-B6DC-FA780AFBBF09',
@@ -121,19 +155,9 @@
'<(DEPTH)/third_party/ppapi/ppapi.gyp:ppapi_c',
'webkit_resources',
'webkit_strings',
+ 'webkit_user_agent',
],
'actions': [
- {
- 'action_name': 'webkit_version',
- 'inputs': [
- '../build/webkit_version.py',
- '<(webkit_src_dir)/WebCore/Configurations/Version.xcconfig',
- ],
- 'outputs': [
- '<(INTERMEDIATE_DIR)/webkit_version.h',
- ],
- 'action': ['python', '<@(_inputs)', '<(INTERMEDIATE_DIR)'],
- },
],
'include_dirs': [
'<(INTERMEDIATE_DIR)',