blob: 59f4c75a6fd9169fbfd6d34752a9d9a5180e0b5f [file] [log] [blame]
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +00001# 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.
4
5{
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)',
Ben Murdochfb250652013-07-31 11:42:55 +010023 '<(grit_out_dir)',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000024 ],
25 'sources': [
26 'app_launch_for_metro_restart_win.cc',
27 'app_launch_for_metro_restart_win.h',
28 'app_launcher.cc',
29 'app_launcher.h',
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +010030 'app_lifetime_monitor.cc',
31 'app_lifetime_monitor.h',
32 'app_lifetime_monitor_factory.cc',
33 'app_lifetime_monitor_factory.h',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +010034 'app_load_service.cc',
35 'app_load_service.h',
36 'app_load_service_factory.cc',
37 'app_load_service_factory.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000038 'app_restore_service.cc',
39 'app_restore_service.h',
40 'app_restore_service_factory.cc',
41 'app_restore_service_factory.h',
Torne (Richard Coles)a93a17c2013-05-15 11:34:50 +010042 'app_shim/app_shim_handler_mac.cc',
43 'app_shim/app_shim_handler_mac.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000044 'app_shim/app_shim_host_mac.cc',
45 'app_shim/app_shim_host_mac.h',
46 'app_shim/app_shim_host_manager_mac.h',
47 'app_shim/app_shim_host_manager_mac.mm',
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +010048 'app_shim/app_shim_mac.cc',
49 'app_shim/app_shim_mac.h',
Ben Murdoch7dbb3d52013-07-17 14:55:54 +010050 'app_shim/chrome_main_app_mode_mac.mm',
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010051 'app_shim/extension_app_shim_handler_mac.cc',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +010052 'app_shim/extension_app_shim_handler_mac.h',
Ben Murdoch7dbb3d52013-07-17 14:55:54 +010053 'app_window_contents.cc',
54 'app_window_contents.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010055 'field_trial_names.cc',
56 'field_trial_names.h',
Ben Murdochbb1529c2013-08-08 10:24:53 +010057 'launcher.cc',
58 'launcher.h',
Ben Murdocheb525c52013-07-10 11:40:50 +010059 'metrics_names.h',
Ben Murdoch2385ea32013-08-06 11:01:04 +010060 'native_app_window.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000061 'pref_names.cc',
62 'pref_names.h',
63 'prefs.cc',
64 'prefs.h',
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010065 'saved_files_service.cc',
66 'saved_files_service.h',
67 'saved_files_service_factory.cc',
68 'saved_files_service_factory.h',
Ben Murdocheb525c52013-07-10 11:40:50 +010069 'shell_window.cc',
70 'shell_window.h',
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010071 'shell_window_geometry_cache.cc',
72 'shell_window_geometry_cache.h',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +010073 'switches.cc',
74 'switches.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000075 ],
76 'conditions': [
Ben Murdochbb1529c2013-08-08 10:24:53 +010077 ['chromeos==1',
78 {
79 'dependencies': [
80 'browser_chromeos',
81 ]
82 }
83 ],
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000084 ['enable_extensions==0',
85 {
86 'sources/': [
87 ['exclude', '^apps/'],
88 ],
89 }
90 ],
91 ],
92 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
93 'msvs_disabled_warnings': [ 4267, ],
94 },
95 ],
96 'conditions': [
97 ['OS=="win"',
98 {
99 'targets': [
100 {
101 'target_name': 'app_host',
102 'type': 'executable',
103 'include_dirs': [
104 '..',
105 ],
106 'direct_dependent_settings': {
107 'include_dirs': [
108 '..',
109 ],
110 },
111 'dependencies': [
112 '../base/base.gyp:base',
113 '../chrome/chrome.gyp:chrome_version_resources',
114 '../chrome/chrome.gyp:launcher_support',
115 '../google_update/google_update.gyp:google_update',
116 ],
117 'sources': [
118 'app_host/app_host.rc',
119 'app_host/app_host_main.cc',
120 'app_host/app_host_resource.h',
121 'app_host/binaries_installer.cc',
122 'app_host/binaries_installer.h',
123 'app_host/update.cc',
124 'app_host/update.h',
125 '<(SHARED_INTERMEDIATE_DIR)/chrome_version/app_host_exe_version.rc',
126 ],
127 'msvs_settings': {
128 'VCLinkerTool': {
129 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
130 },
131 },
132 },
133 ],
134 },
135 ], # 'OS=="win"'
136 ], # 'conditions'
137}