Fix observer hanging after shudown because the sign in popup was not dismissed.
[chromium-blink-merge.git] / apps / BUILD.gn
blob5c409c2be67d715274569c1a8e8c19c3e3a9e880
1 # Copyright 2014 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.
5 import("//build/config/features.gni")
6 import("//build/config/ui.gni")
8 static_library("apps") {
9   sources = [
10     "app_lifetime_monitor.cc",
11     "app_lifetime_monitor.h",
12     "app_lifetime_monitor_factory.cc",
13     "app_lifetime_monitor_factory.h",
14     "app_load_service.cc",
15     "app_load_service.h",
16     "app_load_service_factory.cc",
17     "app_load_service_factory.h",
18     "app_restore_service.cc",
19     "app_restore_service.h",
20     "app_restore_service_factory.cc",
21     "app_restore_service_factory.h",
22     "browser_context_keyed_service_factories.cc",
23     "browser_context_keyed_service_factories.h",
24     "custom_launcher_page_contents.cc",
25     "custom_launcher_page_contents.h",
26     "launcher.cc",
27     "launcher.h",
28     "metrics_names.h",
29     "saved_files_service.cc",
30     "saved_files_service.h",
31     "saved_files_service_factory.cc",
32     "saved_files_service_factory.h",
33     "switches.cc",
34     "switches.h",
35   ]
37   configs += [ "//build/config/compiler:wexit_time_destructors" ]
39   deps = [
40     "//chrome/app/theme:theme_resources",
41     "//chrome/browser/extensions",
42     "//chrome/common/extensions/api:api",
43     "//components/web_modal",
44     "//skia",
45   ]
47   if (is_chromeos) {
48     #deps += [ "browser_chromeos" ]  TODO(GYP)
49   }
51   if (!enable_extensions) {
52     # When extensions are disabled, only the sizer file below is included.
53     deps -= [
54       "//chrome/browser/extensions",
55       "//chrome/common/extensions/api:api",
56     ]
57     sources = []
58   }
60   if (toolkit_views) {
61     sources += [
62       "ui/views/app_window_frame_view.cc",
63       "ui/views/app_window_frame_view.h",
64     ]
65     deps += [
66       "//extensions/browser",
67       "//ui/strings",
68       "//ui/views",
69     ]
70   }
72   # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
73   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]