Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 1 | # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | { |
| 5 | 'variables': { |
| 6 | 'chromium_code': 1, |
| 7 | |
| 8 | 'variables': { |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 9 | 'version_py_path': '<(DEPTH)/build/util/version.py', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 10 | 'version_path': 'VERSION', |
| 11 | }, |
| 12 | 'version_py_path': '<(version_py_path) -f', |
| 13 | 'version_path': '<(version_path)', |
| 14 | }, |
| 15 | 'includes': [ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 16 | '../build/util/version.gypi', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 17 | ], |
| 18 | 'targets': [ |
| 19 | { |
| 20 | 'target_name': 'cloud_print_version_resources', |
| 21 | 'type': 'none', |
| 22 | 'conditions': [ |
| 23 | ['branding == "Chrome"', { |
| 24 | 'variables': { |
| 25 | 'branding_path': '<(DEPTH)/chrome/app/theme/google_chrome/BRANDING', |
| 26 | }, |
| 27 | }, { # else branding!="Chrome" |
| 28 | 'variables': { |
| 29 | 'branding_path': '<(DEPTH)/chrome/app/theme/chromium/BRANDING', |
| 30 | }, |
| 31 | }], |
| 32 | ], |
| 33 | 'variables': { |
| 34 | 'output_dir': 'cloud_print', |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 35 | 'template_input_path': '../chrome/app/chrome_version.rc.version', |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 36 | 'extra_variable_files_arguments': [ '-f', 'BRANDING' ], |
| 37 | 'extra_variable_files': [ 'BRANDING' ], # NOTE: matches that above |
| 38 | }, |
| 39 | 'direct_dependent_settings': { |
| 40 | 'include_dirs': [ |
| 41 | '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)', |
| 42 | ], |
| 43 | }, |
| 44 | 'sources': [ |
| 45 | 'service/win/cloud_print_service_exe.ver', |
| 46 | 'service/win/cloud_print_service_config_exe.ver', |
| 47 | 'service/win/cloud_print_service_setup_exe.ver', |
| 48 | 'virtual_driver/win/gcp_portmon64_dll.ver', |
| 49 | 'virtual_driver/win/gcp_portmon_dll.ver', |
| 50 | 'virtual_driver/win/install/virtual_driver_setup_exe.ver', |
| 51 | ], |
| 52 | 'includes': [ |
| 53 | '../chrome/version_resource_rules.gypi', |
| 54 | ], |
| 55 | }, |
| 56 | { |
| 57 | 'target_name': 'cloud_print_version_header', |
| 58 | 'type': 'none', |
| 59 | 'conditions': [ |
| 60 | ['branding == "Chrome"', { |
| 61 | 'variables': { |
| 62 | 'branding_path': '<(DEPTH)/chrome/app/theme/google_chrome/BRANDING', |
| 63 | }, |
| 64 | }, { # else branding!="Chrome" |
| 65 | 'variables': { |
| 66 | 'branding_path': '<(DEPTH)/chrome/app/theme/chromium/BRANDING', |
| 67 | }, |
| 68 | }], |
| 69 | ], |
| 70 | 'hard_dependency': 1, |
| 71 | 'actions': [ |
| 72 | { |
| 73 | 'action_name': 'version_header', |
| 74 | 'variables': { |
| 75 | 'output_dir': 'cloud_print', |
| 76 | 'lastchange_path': |
| 77 | '<(DEPTH)/build/util/LASTCHANGE', |
| 78 | }, |
| 79 | 'direct_dependent_settings': { |
| 80 | 'include_dirs': [ |
| 81 | '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)', |
| 82 | ], |
| 83 | }, |
| 84 | 'inputs': [ |
| 85 | '<(version_path)', |
| 86 | '<(branding_path)', |
| 87 | '<(lastchange_path)', |
| 88 | '<(DEPTH)/chrome/version.h.in', |
| 89 | 'BRANDING', |
| 90 | ], |
| 91 | 'outputs': [ |
| 92 | '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)/version.h', |
| 93 | ], |
| 94 | 'action': [ |
| 95 | 'python', |
| 96 | '<(version_py_path)', |
| 97 | '-f', '<(version_path)', |
| 98 | '-f', '<(branding_path)', |
| 99 | '-f', '<(lastchange_path)', |
| 100 | '-f', 'BRANDING', |
| 101 | '<(DEPTH)/chrome/version.h.in', |
| 102 | '<@(_outputs)', |
| 103 | ], |
| 104 | 'message': 'Generating version header file: <@(_outputs)', |
| 105 | }, |
| 106 | ], |
| 107 | }, |
| 108 | ], |
| 109 | } |