summaryrefslogtreecommitdiffstats
path: root/components/cronet.gypi
diff options
context:
space:
mode:
authorxunjieli <xunjieli@chromium.org>2015-06-04 13:53:23 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-04 20:54:05 +0000
commit6f35690cc4b5e69734bc469f11218ea92ac24c08 (patch)
tree6f14f825a18e14d207c94599e72fbe06308a8130 /components/cronet.gypi
parent2ce2e8aabd8c59b006c24ea4cda5aa92398a9e2b (diff)
downloadchromium_src-6f35690cc4b5e69734bc469f11218ea92ac24c08.zip
chromium_src-6f35690cc4b5e69734bc469f11218ea92ac24c08.tar.gz
chromium_src-6f35690cc4b5e69734bc469f11218ea92ac24c08.tar.bz2
[Cronet] Check native library version.
This CL checks Cronet native library version with java version and make sure the versions match. BUG=493222 Review URL: https://codereview.chromium.org/1158323007 Cr-Commit-Position: refs/heads/master@{#332905}
Diffstat (limited to 'components/cronet.gypi')
-rw-r--r--components/cronet.gypi35
1 files changed, 35 insertions, 0 deletions
diff --git a/components/cronet.gypi b/components/cronet.gypi
index 4fb3fb9..e71e061 100644
--- a/components/cronet.gypi
+++ b/components/cronet.gypi
@@ -99,6 +99,41 @@
],
},
{
+ 'target_name': 'cronet_version_header',
+ 'type': 'none',
+ # Need to set hard_depency flag because cronet_version generates a
+ # header.
+ 'hard_dependency': 1,
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '<(SHARED_INTERMEDIATE_DIR)/',
+ ],
+ },
+ 'actions': [
+ {
+ 'action_name': 'version_header',
+ 'message': 'Generating version header file: <@(_outputs)',
+ 'inputs': [
+ '<(version_path)',
+ 'cronet/version.h.in',
+ ],
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/components/cronet/version.h',
+ ],
+ 'action': [
+ 'python',
+ '<(version_py_path)',
+ '-e', 'VERSION_FULL="<(version_full)"',
+ 'cronet/version.h.in',
+ '<@(_outputs)',
+ ],
+ 'includes': [
+ '../build/util/version.gypi',
+ ],
+ },
+ ],
+ },
+ {
# cronet_static_small target has reduced binary size through using
# ICU alternatives which requires file and ftp support be disabled.
'target_name': 'cronet_static_small',