Index: components/data_reduction_proxy.gypi |
diff --git a/components/data_reduction_proxy.gypi b/components/data_reduction_proxy.gypi |
index 0bfea49c860492f62263dacb030710bac7d535d9..bc0f00c02dcd7ec744165b1b795341515ab4c280 100644 |
--- a/components/data_reduction_proxy.gypi |
+++ b/components/data_reduction_proxy.gypi |
@@ -10,6 +10,7 @@ |
'target_name': 'data_reduction_proxy_browser', |
'type': 'static_library', |
'dependencies': [ |
+ 'data_reduction_proxy_version_header', |
'../base/base.gyp:base', |
'../crypto/crypto.gyp:crypto', |
'../net/net.gyp:net', |
@@ -90,6 +91,39 @@ |
'data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.h', |
], |
}, |
+ { |
+ 'target_name': 'data_reduction_proxy_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)', |
+ 'data_reduction_proxy/common/version.h.in', |
+ ], |
+ 'outputs': [ |
+ '<(SHARED_INTERMEDIATE_DIR)/components/data_reduction_proxy/common/version.h', |
+ ], |
+ 'action': [ |
+ 'python', |
+ '<(version_py_path)', |
+ '-e', 'VERSION_FULL="<(version_full)"', |
+ 'data_reduction_proxy/common/version.h.in', |
+ '<@(_outputs)', |
+ ], |
+ 'includes': [ |
+ '../build/util/version.gypi', |
+ ], |
+ }, |
+ ], |
+ }, |
+ |
], |
} |