summaryrefslogtreecommitdiffstats
path: root/extensions/shell
diff options
context:
space:
mode:
authorderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-12 01:53:40 +0000
committerderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-12 01:55:39 +0000
commitfd3980cf0c87e5e0b0aa2612c11af193f519daa8 (patch)
tree7184b323857db90bb746725f645dd2950975d533 /extensions/shell
parent5ed08fa735bd74282bea3f0b38e9bafad8d90d69 (diff)
downloadchromium_src-fd3980cf0c87e5e0b0aa2612c11af193f519daa8.zip
chromium_src-fd3980cf0c87e5e0b0aa2612c11af193f519daa8.tar.gz
chromium_src-fd3980cf0c87e5e0b0aa2612c11af193f519daa8.tar.bz2
extensions: Generate version header for app_shell.
Generate a extensions/shell/common/version.h header that defines a PRODUCT_VERSION string for use by app_shell. BUG=402612 Review URL: https://codereview.chromium.org/462823003 Cr-Commit-Position: refs/heads/master@{#288870} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288870 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/shell')
-rw-r--r--extensions/shell/app_shell.gyp33
-rw-r--r--extensions/shell/common/version.h.in12
2 files changed, 45 insertions, 0 deletions
diff --git a/extensions/shell/app_shell.gyp b/extensions/shell/app_shell.gyp
index 67d1af8..d22c1cb 100644
--- a/extensions/shell/app_shell.gyp
+++ b/extensions/shell/app_shell.gyp
@@ -12,6 +12,7 @@
'type': 'static_library',
'defines!': ['CONTENT_IMPLEMENTATION'],
'dependencies': [
+ 'app_shell_version_header',
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/base/base.gyp:base_prefs_test_support',
'<(DEPTH)/components/components.gyp:omaha_query_params',
@@ -166,5 +167,37 @@
'test/shell_tests_main.cc',
],
},
+ {
+ 'target_name': 'app_shell_version_header',
+ 'type': 'none',
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '<(SHARED_INTERMEDIATE_DIR)',
+ ],
+ },
+ 'actions': [
+ {
+ 'action_name': 'version_header',
+ 'message': 'Generating version header file: <@(_outputs)',
+ 'inputs': [
+ '<(version_path)',
+ 'common/version.h.in',
+ ],
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/extensions/shell/common/version.h',
+ ],
+ 'action': [
+ 'python',
+ '<(version_py_path)',
+ '-e', 'VERSION_FULL="<(version_full)"',
+ 'common/version.h.in',
+ '<@(_outputs)',
+ ],
+ 'includes': [
+ '../../build/util/version.gypi',
+ ],
+ },
+ ],
+ },
], # targets
}
diff --git a/extensions/shell/common/version.h.in b/extensions/shell/common/version.h.in
new file mode 100644
index 0000000..d8abff1
--- /dev/null
+++ b/extensions/shell/common/version.h.in
@@ -0,0 +1,12 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// version.h is generated from version.h.in. Edit the source!
+
+#ifndef EXTENSIONS_SHELL_COMMON_VERSION_INFO_H_
+#define EXTENSIONS_SHELL_COMMON_VERSION_INFO_H_
+
+#define PRODUCT_VERSION "@VERSION_FULL@"
+
+#endif // EXTENSIONS_SHELL_COMMON_VERSION_INFO_H_