Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / cloud_print / service / win / service.gyp
blob0019b6f1ca913ae6f19322a100aa4f311c1fe8ad
1 # Copyright (c) 2012 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   'target_defaults': {
6     'variables': {
7       'chromium_code': 1,
8       'enable_wexit_time_destructors': 1,
9     },
10     'include_dirs': [
11       '<(DEPTH)',
12       # To allow including "version.h"
13       '<(SHARED_INTERMEDIATE_DIR)',
14     ],
15     'defines' : [
16       'COMPILE_CONTENT_STATICALLY',
17       'SECURITY_WIN32',
18       'STRICT',
19       '_ATL_APARTMENT_THREADED',
20       '_ATL_CSTRING_EXPLICIT_CONSTRUCTORS',
21       '_ATL_NO_COM_SUPPORT',
22       '_ATL_NO_AUTOMATIC_NAMESPACE',
23       '_ATL_NO_EXCEPTIONS',
24     ],
25     # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
26     'msvs_disabled_warnings': [ 4267, ],
27   },
28   'targets': [
29     {
30       'target_name': 'cloud_print_service',
31       'type': 'executable',
32       'sources': [
33         '<(SHARED_INTERMEDIATE_DIR)/cloud_print/cloud_print_service_exe_version.rc',
34         'cloud_print_service.cc',
35       ],
36       'includes': [
37         'service_resources.gypi'
38       ],
39       'dependencies': [
40         '<(DEPTH)/cloud_print/cloud_print_resources.gyp:cloud_print_version_resources',
41         '<(DEPTH)/cloud_print/service/service.gyp:cloud_print_service_lib',
42       ],
43       'msvs_settings': {
44         'VCLinkerTool': {
45           'SubSystem': '1',         # Set /SUBSYSTEM:CONSOLE
46           'UACExecutionLevel': '2', # /level='requireAdministrator'
47           'AdditionalDependencies': [
48               'secur32.lib',
49           ],
50         },
51       },
52     },
53     {
54       'target_name': 'cloud_print_service_config',
55       'type': 'executable',
56       'sources': [
57         '<(SHARED_INTERMEDIATE_DIR)/cloud_print/cloud_print_service_config_exe_version.rc',
58         'cloud_print_service_config.cc',
59       ],
60       'includes': [
61         'service_resources.gypi'
62       ],
63       'dependencies': [
64         '<(DEPTH)/cloud_print/cloud_print_resources.gyp:cloud_print_version_resources',
65         '<(DEPTH)/cloud_print/common/common.gyp:cloud_print_install_lib',
66         '<(DEPTH)/cloud_print/service/service.gyp:cloud_print_service_lib',
67       ],
68       'msvs_settings': {
69         'VCManifestTool': {
70           'AdditionalManifestFiles': [
71             'common-controls.manifest',
72           ],
73         },
74         'VCLinkerTool': {
75           'SubSystem': '2',         # Set /SUBSYSTEM:WINDOWS
76           'UACExecutionLevel': '2', # /level='requireAdministrator'
77           'AdditionalDependencies': [
78               'secur32.lib',
79           ],
80         },
81         'conditions': [
82           ['clang==1', {
83             # TODO: Remove once cloud_print_service_config.cc no longer depends
84             # on atlapp.h, http://crbug.com/5027
85             'VCCLCompilerTool': {
86               'AdditionalOptions': [
87                 # atlapp.h contains a global "using namespace WTL;".
88                 '-Wno-header-hygiene',
89                 # atlgdi.h does an intentional assignment in an if conditional.
90                 '-Wno-parentheses',
91                 # atlgdi.h fails with -Wreorder enabled.
92                 '-Wno-reorder',
93                 # atlgdi.h doesn't use braces around subobject initializers.
94                 '-Wno-missing-braces',
95               ],
96             },
97           }],
98         ],
99       },
100     },
101     {
102       'target_name': 'cloud_print_service_setup',
103       'type': 'executable',
104       'sources': [
105         '<(SHARED_INTERMEDIATE_DIR)/cloud_print/cloud_print_service_setup_exe_version.rc',
106         'installer.cc',
107         'installer.h',
108       ],
109       'includes': [
110         'service_resources.gypi'
111       ],
112       'dependencies': [
113         '<(DEPTH)/cloud_print/cloud_print_resources.gyp:cloud_print_version_resources',
114         '<(DEPTH)/cloud_print/common/common.gyp:cloud_print_install_lib',
115         '<(DEPTH)/cloud_print/service/service.gyp:cloud_print_service_lib',
116       ],
117       'msvs_settings': {
118         'VCLinkerTool': {
119           'SubSystem': '2',         # Set /SUBSYSTEM:WINDOWS
120           'UACExecutionLevel': '2', # /level='requireAdministrator'
121           'AdditionalDependencies': [
122               'secur32.lib',
123           ],
124         },
125       },
126     },
127   ],