diff options
author | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-21 07:20:26 +0000 |
---|---|---|
committer | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-21 07:20:26 +0000 |
commit | 3192bc911a93fd0d2fab4f039a2e28941227ec7d (patch) | |
tree | 7fc50f04c6b20f2e5a4e862fd30d41ae4aaab9fe /cloud_print/cloud_print_resources.gyp | |
parent | af6be6e4fb322e47ac335389e32a3415bb804eda (diff) | |
download | chromium_src-3192bc911a93fd0d2fab4f039a2e28941227ec7d.zip chromium_src-3192bc911a93fd0d2fab4f039a2e28941227ec7d.tar.gz chromium_src-3192bc911a93fd0d2fab4f039a2e28941227ec7d.tar.bz2 |
Fixed serial number, service name and firmware version of GCP 2.0 prototype.
Review URL: https://codereview.chromium.org/77343003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236434 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cloud_print/cloud_print_resources.gyp')
-rw-r--r-- | cloud_print/cloud_print_resources.gyp | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/cloud_print/cloud_print_resources.gyp b/cloud_print/cloud_print_resources.gyp new file mode 100644 index 0000000..1eaaaec --- /dev/null +++ b/cloud_print/cloud_print_resources.gyp @@ -0,0 +1,109 @@ +# Copyright 2013 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. +{ + 'variables': { + 'chromium_code': 1, + + 'variables': { + 'version_py_path': '../tools/build/version.py', + 'version_path': 'VERSION', + }, + 'version_py_path': '<(version_py_path) -f', + 'version_path': '<(version_path)', + }, + 'includes': [ + '../chrome/version.gypi', + ], + 'targets': [ + { + 'target_name': 'cloud_print_version_resources', + 'type': 'none', + 'conditions': [ + ['branding == "Chrome"', { + 'variables': { + 'branding_path': '<(DEPTH)/chrome/app/theme/google_chrome/BRANDING', + }, + }, { # else branding!="Chrome" + 'variables': { + 'branding_path': '<(DEPTH)/chrome/app/theme/chromium/BRANDING', + }, + }], + ], + 'variables': { + 'output_dir': 'cloud_print', + 'template_input_path': '../chrome/app/chrome_version.rc.version', + 'extra_variable_files_arguments': [ '-f', 'BRANDING' ], + 'extra_variable_files': [ 'BRANDING' ], # NOTE: matches that above + }, + 'direct_dependent_settings': { + 'include_dirs': [ + '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)', + ], + }, + 'sources': [ + 'service/win/cloud_print_service_exe.ver', + 'service/win/cloud_print_service_config_exe.ver', + 'service/win/cloud_print_service_setup_exe.ver', + 'virtual_driver/win/gcp_portmon64_dll.ver', + 'virtual_driver/win/gcp_portmon_dll.ver', + 'virtual_driver/win/install/virtual_driver_setup_exe.ver', + ], + 'includes': [ + '../chrome/version_resource_rules.gypi', + ], + }, + { + 'target_name': 'cloud_print_version_header', + 'type': 'none', + 'conditions': [ + ['branding == "Chrome"', { + 'variables': { + 'branding_path': '<(DEPTH)/chrome/app/theme/google_chrome/BRANDING', + }, + }, { # else branding!="Chrome" + 'variables': { + 'branding_path': '<(DEPTH)/chrome/app/theme/chromium/BRANDING', + }, + }], + ], + 'hard_dependency': 1, + 'actions': [ + { + 'action_name': 'version_header', + 'variables': { + 'output_dir': 'cloud_print', + 'lastchange_path': + '<(DEPTH)/build/util/LASTCHANGE', + }, + 'direct_dependent_settings': { + 'include_dirs': [ + '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)', + ], + }, + 'inputs': [ + '<(version_path)', + '<(branding_path)', + '<(lastchange_path)', + '<(DEPTH)/chrome/version.h.in', + 'BRANDING', + ], + 'outputs': [ + '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)/version.h', + ], + 'action': [ + 'python', + '<(version_py_path)', + '-f', '<(version_path)', + '-f', '<(branding_path)', + '-f', '<(lastchange_path)', + '-f', 'BRANDING', + '<(DEPTH)/chrome/version.h.in', + '<@(_outputs)', + ], + 'message': 'Generating version header file: <@(_outputs)', + }, + ], + }, + ], +} |