Split Camera and Mic into two permissions on the Site Details page (under Site Settings).
[chromium-blink-merge.git] / win8 / metro_driver / metro_driver.gyp
blob1a815e44d8d459bf0f8f5bf285478fef98c68ab7
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   'conditions': [
6     ['OS=="win"', {
7       'variables': {
8         'chromium_code': 1,
9       },
10       'includes': [
11         '../../build/util/version.gypi',
12         '../../build/win_precompile.gypi',
13       ],
14       'target_defaults': {
15         'msvs_settings': {
16           'VCLinkerTool': {
17             'AdditionalDependencies': [
18               'D2D1.lib',
19               'D3D11.lib',
20               'runtimeobject.lib',
21             ],
22             'DelayLoadDLLs': [
23               'API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL',
24               'API-MS-WIN-CORE-WINRT-L1-1-0.DLL',
25               'API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL',
26             ],
27           },
28         },
29       },
30       'targets': [
31         {
32           'target_name': 'metro_driver_version_resources',
33           'type': 'none',
34           'variables': {
35             'output_dir': 'metro_driver',
36             'branding_path': '../../chrome/app/theme/<(branding_path_component)/BRANDING',
37             'template_input_path': '../../chrome/app/chrome_version.rc.version',
38           },
39           'sources': [
40             'metro_driver_dll.ver',
41           ],
42           'includes': [
43             '../../chrome/version_resource_rules.gypi',
44           ],
45         },
46         {
47           'target_name': 'metro_driver',
48           'type': 'shared_library',
49           'dependencies': [
50             '../../base/base.gyp:base',
51             '../../chrome/common_constants.gyp:common_constants',
52             '../../chrome/chrome.gyp:installer_util',
53             '../../crypto/crypto.gyp:crypto',
54             '../../google_update/google_update.gyp:google_update',
55             '../../ipc/ipc.gyp:ipc',
56             '../../sandbox/sandbox.gyp:sandbox',
57             '../../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages',
58             '../../ui/gfx/gfx.gyp:gfx',
59             '../../ui/gfx/gfx.gyp:gfx_geometry',
60             '../../url/url.gyp:url_lib',
61             'metro_driver_version_resources',
62           ],
63           'sources': [
64             'display_properties.cc',
65             'display_properties.h',
66             'metro_driver.cc',
67             'metro_driver.h',
68             'metro_driver_win7.cc',
69             'stdafx.h',
70             'winrt_utils.cc',
71             'winrt_utils.h',
72             '<(SHARED_INTERMEDIATE_DIR)/metro_driver/metro_driver_dll_version.rc',
73           ],
74           'conditions': [
75             ['use_aura==1', {
76               'dependencies': [
77                 '../win8.gyp:metro_viewer_constants',
78               ],
79               'sources': [
80                 'chrome_app_view_ash.cc',
81                 'chrome_app_view_ash.h',
82                 'direct3d_helper.cc',
83                 'direct3d_helper.h',
84                 'file_picker_ash.cc',
85                 'file_picker_ash.h',
86               ],
87               'includes': [
88                 'ime/ime.gypi',
89               ],
90             }, {  # use_aura!=1
91               'sources': [
92                 'chrome_app_view.cc',
93                 'chrome_app_view.h',
94                 'chrome_url_launch_handler.cc',
95                 'chrome_url_launch_handler.h',
96                 'devices_handler.cc',
97                 'devices_handler.h',
98                 'file_picker.cc',
99                 'file_picker.h',
100                 'metro_dialog_box.cc',
101                 'metro_dialog_box.h',
102                 'print_document_source.cc',
103                 'print_document_source.h',
104                 'print_handler.cc',
105                 'print_handler.h',
106                 'secondary_tile.cc',
107                 'secondary_tile.h',
108                 'settings_handler.cc',
109                 'settings_handler.h',
110                 'toast_notification_handler.cc',
111                 'toast_notification_handler.h',
112               ],
113             }],
114           ],
115           'copies': [
116             {
117               'destination': '<(PRODUCT_DIR)',
118               'files': [
119                 'resources/Logo.png',
120                 'resources/SecondaryTile.png',
121                 'resources/SmallLogo.png',
122                 'resources/splash-620x300.png',
123                 'resources/VisualElementsManifest.xml',
124               ],
125             },
126           ],
127         },
128         {
129           'target_name': 'metro_driver_unittests',
130           'type': 'executable',
131           'dependencies': [
132             '../../base/base.gyp:base',
133             '../../chrome/chrome.gyp:installer_util',
134             '../../testing/gtest.gyp:gtest',
135             'metro_driver',
136           ],
137           'sources': [
138             'run_all_unittests.cc',
139             'winrt_utils.cc',
140             'winrt_utils.h',
141             'winrt_utils_unittest.cc',
142           ],
143         },
144       ],
145     },],
146   ],