Record error when CreateDir fails.
[chromium-blink-merge.git] / apps / apps.gypi
blobfd45772d2e4038dd7b6f2f4a9071938f415f6acd
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.
6   'targets': [
7     {
8       'target_name': 'apps',
9       'type': 'static_library',
10       'variables': { 'enable_wexit_time_destructors': 1, },
11       # Since browser and browser_extensions actually depend on each other,
12       # we must omit the dependency from browser_extensions to browser.
13       # However, this means browser_extensions and browser should more or less
14       # have the same dependencies. Once browser_extensions is untangled from
15       # browser, then we can clean up these dependencies.
16       'dependencies': [
17         'browser_extensions',
18         'common/extensions/api/api.gyp:api',
19         '../skia/skia.gyp:skia',
20       ],
21       'include_dirs': [
22         '<(INTERMEDIATE_DIR)',
23       ],
24       'sources': [
25         'app_launch_for_metro_restart_win.cc',
26         'app_launch_for_metro_restart_win.h',
27         'app_launcher.cc',
28         'app_launcher.h',
29         'app_lifetime_monitor.cc',
30         'app_lifetime_monitor.h',
31         'app_lifetime_monitor_factory.cc',
32         'app_lifetime_monitor_factory.h',
33         'app_load_service.cc',
34         'app_load_service.h',
35         'app_load_service_factory.cc',
36         'app_load_service_factory.h',
37         'app_restore_service.cc',
38         'app_restore_service.h',
39         'app_restore_service_factory.cc',
40         'app_restore_service_factory.h',
41         'app_shim/app_shim_handler_mac.cc',
42         'app_shim/app_shim_handler_mac.h',
43         'app_shim/app_shim_host_mac.cc',
44         'app_shim/app_shim_host_mac.h',
45         'app_shim/app_shim_host_manager_mac.h',
46         'app_shim/app_shim_host_manager_mac.mm',
47         'app_shim/extension_app_shim_handler_mac.cc',
48         'app_shim/extension_app_shim_handler_mac.h',
49         'field_trial_names.cc',
50         'field_trial_names.h',
51         'pref_names.cc',
52         'pref_names.h',
53         'prefs.cc',
54         'prefs.h',
55         'saved_files_service.cc',
56         'saved_files_service.h',
57         'saved_files_service_factory.cc',
58         'saved_files_service_factory.h',
59         'shell_window_geometry_cache.cc',
60         'shell_window_geometry_cache.h',
61         'shortcut_manager.cc',
62         'shortcut_manager.h',
63         'shortcut_manager_factory.cc',
64         'shortcut_manager_factory.h',
65         'switches.cc',
66         'switches.h',
67       ],
68       'conditions': [
69         ['enable_extensions==0',
70           {
71             'sources/': [
72               ['exclude', '^apps/'],
73             ],
74           }
75         ],
76       ],
77       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
78       'msvs_disabled_warnings': [ 4267, ],
79     },
80   ],
81   'conditions': [
82     ['OS=="win"',
83       {
84         'targets': [
85           {
86             'target_name': 'app_host',
87             'type': 'executable',
88             'include_dirs': [
89               '..',
90             ],
91             'direct_dependent_settings': {
92               'include_dirs': [
93                 '..',
94               ],
95             },
96             'dependencies': [
97               '../base/base.gyp:base',
98               '../chrome/chrome.gyp:chrome_version_resources',
99               '../chrome/chrome.gyp:launcher_support',
100               '../google_update/google_update.gyp:google_update',
101             ],
102             'sources': [
103               'app_host/app_host.rc',
104               'app_host/app_host_main.cc',
105               'app_host/app_host_resource.h',
106               'app_host/binaries_installer.cc',
107               'app_host/binaries_installer.h',
108               'app_host/update.cc',
109               'app_host/update.h',
110               '<(SHARED_INTERMEDIATE_DIR)/chrome_version/app_host_exe_version.rc',
111             ],
112             'msvs_settings': {
113               'VCLinkerTool': {
114                 'SubSystem': '2',  # Set /SUBSYSTEM:WINDOWS
115               },
116             },
117           },
118         ],
119       },
120     ],  # 'OS=="win"'
121   ],  # 'conditions'