apps.gypi revision fb250657ef40d7500f20882d5c9909c1013367d3
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.
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)',
23        '<(grit_out_dir)',
24      ],
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',
30        'app_lifetime_monitor.cc',
31        'app_lifetime_monitor.h',
32        'app_lifetime_monitor_factory.cc',
33        'app_lifetime_monitor_factory.h',
34        'app_load_service.cc',
35        'app_load_service.h',
36        'app_load_service_factory.cc',
37        'app_load_service_factory.h',
38        'app_restore_service.cc',
39        'app_restore_service.h',
40        'app_restore_service_factory.cc',
41        'app_restore_service_factory.h',
42        'app_shim/app_shim_handler_mac.cc',
43        'app_shim/app_shim_handler_mac.h',
44        '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',
48        'app_shim/chrome_main_app_mode_mac.mm',
49        'app_shim/extension_app_shim_handler_mac.cc',
50        'app_shim/extension_app_shim_handler_mac.h',
51        'app_window_contents.cc',
52        'app_window_contents.h',
53        'field_trial_names.cc',
54        'field_trial_names.h',
55        'metrics_names.h',
56        'pref_names.cc',
57        'pref_names.h',
58        'prefs.cc',
59        'prefs.h',
60        'saved_files_service.cc',
61        'saved_files_service.h',
62        'saved_files_service_factory.cc',
63        'saved_files_service_factory.h',
64        'shell_window.cc',
65        'shell_window.h',
66        'shell_window_geometry_cache.cc',
67        'shell_window_geometry_cache.h',
68        'switches.cc',
69        'switches.h',
70      ],
71      'conditions': [
72        ['enable_extensions==0',
73          {
74            'sources/': [
75              ['exclude', '^apps/'],
76            ],
77          }
78        ],
79      ],
80      # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
81      'msvs_disabled_warnings': [ 4267, ],
82    },
83  ],
84  'conditions': [
85    ['OS=="win"',
86      {
87        'targets': [
88          {
89            'target_name': 'app_host',
90            'type': 'executable',
91            'include_dirs': [
92              '..',
93            ],
94            'direct_dependent_settings': {
95              'include_dirs': [
96                '..',
97              ],
98            },
99            'dependencies': [
100              '../base/base.gyp:base',
101              '../chrome/chrome.gyp:chrome_version_resources',
102              '../chrome/chrome.gyp:launcher_support',
103              '../google_update/google_update.gyp:google_update',
104            ],
105            'sources': [
106              'app_host/app_host.rc',
107              'app_host/app_host_main.cc',
108              'app_host/app_host_resource.h',
109              'app_host/binaries_installer.cc',
110              'app_host/binaries_installer.h',
111              'app_host/update.cc',
112              'app_host/update.h',
113              '<(SHARED_INTERMEDIATE_DIR)/chrome_version/app_host_exe_version.rc',
114            ],
115            'msvs_settings': {
116              'VCLinkerTool': {
117                'SubSystem': '2',  # Set /SUBSYSTEM:WINDOWS
118              },
119            },
120          },
121        ],
122      },
123    ],  # 'OS=="win"'
124  ],  # 'conditions'
125}
126