• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_keep_alive_service.cc',
27        'app_keep_alive_service.h',
28        'app_keep_alive_service_factory.cc',
29        'app_keep_alive_service_factory.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_window_contents.cc',
43        'app_window_contents.h',
44        'apps_client.cc',
45        'apps_client.h',
46        'launcher.cc',
47        'launcher.h',
48        'metrics_names.h',
49        'pref_names.cc',
50        'pref_names.h',
51        'prefs.cc',
52        'prefs.h',
53        'saved_files_service.cc',
54        'saved_files_service.h',
55        'saved_files_service_factory.cc',
56        'saved_files_service_factory.h',
57        'shell_window.cc',
58        'shell_window.h',
59        'shell_window_geometry_cache.cc',
60        'shell_window_geometry_cache.h',
61        'shell_window_registry.cc',
62        'shell_window_registry.h',
63        'switches.cc',
64        'switches.h',
65        'ui/native_app_window.h',
66        'ui/views/shell_window_frame_view.cc',
67        'ui/views/shell_window_frame_view.h',
68      ],
69      'conditions': [
70        ['chromeos==1',
71          {
72            'dependencies': [
73              'browser_chromeos',
74            ]
75          }
76        ],
77        ['enable_extensions==0',
78          {
79            'sources/': [
80              ['exclude', '^apps/'],
81            ],
82          }
83        ],
84        ['toolkit_views==1', {
85          'dependencies': [
86            '../ui/base/strings/ui_strings.gyp:ui_strings',
87            '../ui/views/views.gyp:views',
88          ],
89        }, {  # toolkit_views==0
90          'sources/': [
91            ['exclude', 'ui/views/'],
92          ],
93        }],
94      ],
95      # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
96      'msvs_disabled_warnings': [ 4267, ],
97    },
98  ],  # targets
99  'conditions': [
100    ['chromeos==1', {
101      'targets': [
102        {
103          'target_name': 'app_shell',
104          'type': 'executable',
105          'defines!': ['CONTENT_IMPLEMENTATION'],
106          'variables': {
107            'chromium_code': 1,
108          },
109          'dependencies': [
110            'apps',
111            'chrome_resources.gyp:packed_resources',
112            'test_support_common',
113            '../base/base.gyp:base',
114            '../base/base.gyp:base_prefs_test_support',
115            '../content/content.gyp:content',
116            '../content/content_shell_and_tests.gyp:content_shell_lib',
117            '../skia/skia.gyp:skia',
118            '../ui/views/views.gyp:views',
119            '../ui/wm/wm.gyp:wm_test_support',
120          ],
121          'include_dirs': [
122            '..',
123          ],
124          'sources': [
125            'shell/shell_app_sorting.cc',
126            'shell/shell_app_sorting.h',
127            'shell/shell_browser_context.cc',
128            'shell/shell_browser_context.h',
129            'shell/shell_browser_main_parts.cc',
130            'shell/shell_browser_main_parts.h',
131            'shell/shell_content_browser_client.cc',
132            'shell/shell_content_browser_client.h',
133            'shell/shell_content_client.cc',
134            'shell/shell_content_client.h',
135            'shell/shell_extensions_browser_client.cc',
136            'shell/shell_extensions_browser_client.h',
137            'shell/shell_extensions_client.cc',
138            'shell/shell_extensions_client.h',
139            'shell/shell_main_delegate.cc',
140            'shell/shell_main_delegate.h',
141            'shell/shell_main.cc',
142            'shell/web_view_window.cc',
143            'shell/web_view_window.cc',
144          ],
145        },
146      ],  # targets
147    }],  # chromeos==1
148  ],  # conditions
149}
150