Index: chromecast/chromecast.gyp |
diff --git a/chromecast/chromecast.gyp b/chromecast/chromecast.gyp |
index 5bd856c0a901fbab583645a5e0d155102abcfc8f..002836f82b1de0075fe828cb197720a46190c65c 100644 |
--- a/chromecast/chromecast.gyp |
+++ b/chromecast/chromecast.gyp |
@@ -105,6 +105,7 @@ |
'cast_common', |
'cast_service', |
'cast_shell_pak', |
+ 'cast_version_header', |
'../ui/aura/aura.gyp:aura_test_support', |
'../content/content.gyp:content', |
'../content/content.gyp:content_app_browser', |
@@ -147,5 +148,37 @@ |
}], |
], |
}, |
+ { |
+ 'target_name': 'cast_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)/chromecast/common/version.h', |
+ ], |
+ 'action': [ |
+ 'python', |
+ '<(version_py_path)', |
+ '-e', 'VERSION_FULL="<(version_full)"', |
+ 'common/version.h.in', |
+ '<@(_outputs)', |
+ ], |
+ 'includes': [ |
+ '../build/util/version.gypi', |
+ ], |
+ }, |
+ ], |
+ }, |
], # end of targets |
} |