summaryrefslogtreecommitdiffstats
path: root/src/core/qtwebengine.gypi
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@digia.com>2014-04-01 16:39:33 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-02 00:08:04 +0200
commit770b2f68e72ce2b78ddb7dc272b9d455e5ba59b9 (patch)
tree4c78b6c258f0f6dc9694abc46f5b9a0b90fa60f1 /src/core/qtwebengine.gypi
parentc5431da0b11b2b73abee62751565a7d20757040f (diff)
Add Chrome version to our user agent string
Some websites still rely on user agent strings to detect available features in 2014 apparently. Change-Id: If7240be15d6bfb24618bea0d45ed8dc0d7392af4 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'src/core/qtwebengine.gypi')
-rw-r--r--src/core/qtwebengine.gypi4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/qtwebengine.gypi b/src/core/qtwebengine.gypi
index a64760fc3..fee9d37dd 100644
--- a/src/core/qtwebengine.gypi
+++ b/src/core/qtwebengine.gypi
@@ -2,6 +2,9 @@
# This asks gyp to generate a .pri file with linking
# information so that qmake can take care of the deployment.
'let_qmake_do_the_linking': 1,
+ 'variables': {
+ 'version_script_location%': '<(chromium_src_dir)/chrome/tools/build/version.py',
+ },
'dependencies': [
'<(chromium_src_dir)/content/content.gyp:content',
'<(chromium_src_dir)/content/content.gyp:content_app_browser',
@@ -34,6 +37,7 @@
'defines': [
'__STDC_CONSTANT_MACROS',
'__STDC_FORMAT_MACROS',
+ 'CHROMIUM_VERSION=\"<!(python <(version_script_location) -f <(chromium_src_dir)/chrome/VERSION -t "@MAJOR@.@MINOR@.@BUILD@.@PATCH@")\"',
],
'msvs_settings': {
'VCLinkerTool': {