Roll src/third_party/skia 89d5988:cb67414
[chromium-blink-merge.git] / cloud_print / cloud_print_resources.gyp
blob4057d23d6f3d9b97649e18e3797b508018493383
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.
5   'variables': {
6     'chromium_code': 1,
8     'variables': {
9       'version_py_path': '<(DEPTH)/build/util/version.py',
10       'version_path': 'VERSION',
11     },
12     'version_py_path': '<(version_py_path) -f',
13     'version_path': '<(version_path)',
14   },
15   'includes': [
16     '../build/util/version.gypi',
17   ],
18   'targets': [
19     {
20       'target_name': 'cloud_print_version_resources',
21       'type': 'none',
22       'variables': {
23         'output_dir': 'cloud_print',
24         'branding_path': '<(DEPTH)/chrome/app/theme/<(branding_path_component)/BRANDING',
25         'template_input_path': '../chrome/app/chrome_version.rc.version',
26         'extra_variable_files_arguments': [ '-f', 'BRANDING' ],
27         'extra_variable_files': [ 'BRANDING' ], # NOTE: matches that above
28       },
29       'direct_dependent_settings': {
30         'include_dirs': [
31           '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)',
32         ],
33       },
34       'sources': [
35         'service/win/cloud_print_service_exe.ver',
36         'service/win/cloud_print_service_config_exe.ver',
37         'service/win/cloud_print_service_setup_exe.ver',
38         'virtual_driver/win/gcp_portmon64_dll.ver',
39         'virtual_driver/win/gcp_portmon_dll.ver',
40         'virtual_driver/win/install/virtual_driver_setup_exe.ver',
41       ],
42       'includes': [
43         '../chrome/version_resource_rules.gypi',
44       ],
45     },
46     {
47       'target_name': 'cloud_print_version_header',
48       'type': 'none',
49       'hard_dependency': 1,
50       'actions': [
51         {
52           'action_name': 'version_header',
53           'variables': {
54             'branding_path': '<(DEPTH)/chrome/app/theme/<(branding_path_component)/BRANDING',
55             'output_dir': 'cloud_print',
56             'lastchange_path':
57               '<(DEPTH)/build/util/LASTCHANGE',
58           },
59           'direct_dependent_settings': {
60             'include_dirs': [
61               '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)',
62             ],
63           },
64           'inputs': [
65             '<(version_path)',
66             '<(branding_path)',
67             '<(lastchange_path)',
68             '<(DEPTH)/chrome/version.h.in',
69             'BRANDING',
70           ],
71           'outputs': [
72             '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)/version.h',
73           ],
74           'action': [
75             'python',
76             '<(version_py_path)',
77             '-f', '<(version_path)',
78             '-f', '<(branding_path)',
79             '-f', '<(lastchange_path)',
80             '-f', 'BRANDING',
81             '<(DEPTH)/chrome/version.h.in',
82             '<@(_outputs)',
83           ],
84           'message': 'Generating version header file: <@(_outputs)',
85         },
86       ],
87     },
88   ],