Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / win8 / metro_driver / metro_driver.gyp
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.
4 {
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         # This and the force include below is a workaround for intsafe.h in
16         # VS 2010.
17         'msvs_system_include_dirs': [
18           '<(DEPTH)/build',
19         ],
20         'msvs_settings': {
21           'VCLinkerTool': {
22             'AdditionalDependencies': [
23               'D2D1.lib',
24               'D3D11.lib',
25               'runtimeobject.lib',
26             ],
27             'DelayLoadDLLs': [
28               'API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL',
29               'API-MS-WIN-CORE-WINRT-L1-1-0.DLL',
30               'API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL',
31             ],
32           },
33           'VCCLCompilerTool': {
34             'ForcedIncludeFiles': [ 'intsafe_workaround.h', ],
35           },
36         },
37       },
38       'targets': [
39         {
40           'target_name': 'metro_driver_version_resources',
41           'type': 'none',
42           'conditions': [
43             ['branding == "Chrome"', {
44               'variables': {
45                  'branding_path': '../../chrome/app/theme/google_chrome/BRANDING',
46               },
47             }, { # else branding!="Chrome"
48               'variables': {
49                  'branding_path': '../../chrome/app/theme/chromium/BRANDING',
50               },
51             }],
52           ],
53           'variables': {
54             'output_dir': 'metro_driver',
55             'template_input_path': '../../chrome/app/chrome_version.rc.version',
56           },
57           'sources': [
58             'metro_driver_dll.ver',
59           ],
60           'includes': [
61             '../../chrome/version_resource_rules.gypi',
62           ],
63         },
64         {
65           'target_name': 'metro_driver',
66           'type': 'shared_library',
67           'dependencies': [
68             '../../base/base.gyp:base',
69             '../../chrome/common_constants.gyp:common_constants',
70             '../../chrome/chrome.gyp:installer_util',
71             '../../crypto/crypto.gyp:crypto',
72             '../../google_update/google_update.gyp:google_update',
73             '../../ipc/ipc.gyp:ipc',
74             '../../sandbox/sandbox.gyp:sandbox',
75             '../../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages',
76             '../../url/url.gyp:url_lib',
77             'metro_driver_version_resources',
78           ],
79           'sources': [
80             'display_properties.cc',
81             'display_properties.h',
82             'metro_driver.cc',
83             'metro_driver.h',
84             'metro_driver_win7.cc',
85             'stdafx.h',
86             'winrt_utils.cc',
87             'winrt_utils.h',
88             '<(SHARED_INTERMEDIATE_DIR)/metro_driver/metro_driver_dll_version.rc',
89           ],
90           'conditions': [
91             ['use_aura==1', {
92               'dependencies': [
93                 '../win8.gyp:metro_viewer_constants',
94               ],
95               'sources': [
96                 'chrome_app_view_ash.cc',
97                 'chrome_app_view_ash.h',
98                 'direct3d_helper.cc',
99                 'direct3d_helper.h',
100                 'file_picker_ash.cc',
101                 'file_picker_ash.h',
102               ],
103               'includes': [
104                 'ime/ime.gypi',
105               ],
106             }, {  # use_aura!=1
107               'sources': [
108                 'chrome_app_view.cc',
109                 'chrome_app_view.h',
110                 'chrome_url_launch_handler.cc',
111                 'chrome_url_launch_handler.h',
112                 'devices_handler.cc',
113                 'devices_handler.h',
114                 'file_picker.cc',
115                 'file_picker.h',
116                 'metro_dialog_box.cc',
117                 'metro_dialog_box.h',
118                 'print_document_source.cc',
119                 'print_document_source.h',
120                 'print_handler.cc',
121                 'print_handler.h',
122                 'secondary_tile.cc',
123                 'secondary_tile.h',
124                 'settings_handler.cc',
125                 'settings_handler.h',
126                 'toast_notification_handler.cc',
127                 'toast_notification_handler.h',
128               ],
129             }],
130           ],
131           'copies': [
132             {
133               'destination': '<(PRODUCT_DIR)',
134               'files': [
135                 'resources/Logo.png',
136                 'resources/SecondaryTile.png',
137                 'resources/SmallLogo.png',
138                 'resources/splash-620x300.png',
139                 'resources/VisualElementsManifest.xml',
140               ],
141             },
142           ],
143         },
144         {
145           'target_name': 'metro_driver_unittests',
146           'type': 'executable',
147           'dependencies': [
148             '../../base/base.gyp:base',
149             '../../chrome/chrome.gyp:installer_util',
150             '../../testing/gtest.gyp:gtest',
151             'metro_driver',
152           ],
153           'sources': [
154             'run_all_unittests.cc',
155             'winrt_utils.cc',
156             'winrt_utils.h',
157             'winrt_utils_unittest.cc',
158           ],
159         },
160       ],
161     },],
162   ],
163 }