OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//extensions/features/features.gni") | 7 import("//extensions/features/features.gni") |
8 | 8 |
9 assert(!is_android && !is_ios) | 9 assert(!is_android && !is_ios) |
10 | 10 |
11 static_library("apps") { | 11 static_library("apps") { |
12 sources = [] | 12 sources = [] |
13 | 13 |
14 if (enable_extensions) { | 14 if (enable_extensions) { |
15 sources += [ | 15 sources += [ |
16 "app_lifetime_monitor.cc", | 16 "app_lifetime_monitor.cc", |
17 "app_lifetime_monitor.h", | 17 "app_lifetime_monitor.h", |
18 "app_lifetime_monitor_factory.cc", | 18 "app_lifetime_monitor_factory.cc", |
19 "app_lifetime_monitor_factory.h", | 19 "app_lifetime_monitor_factory.h", |
20 "app_load_service.cc", | |
21 "app_load_service.h", | |
22 "app_load_service_factory.cc", | |
23 "app_load_service_factory.h", | |
24 "app_restore_service.cc", | 20 "app_restore_service.cc", |
25 "app_restore_service.h", | 21 "app_restore_service.h", |
26 "app_restore_service_factory.cc", | 22 "app_restore_service_factory.cc", |
27 "app_restore_service_factory.h", | 23 "app_restore_service_factory.h", |
28 "browser_context_keyed_service_factories.cc", | 24 "browser_context_keyed_service_factories.cc", |
29 "browser_context_keyed_service_factories.h", | 25 "browser_context_keyed_service_factories.h", |
30 "launcher.cc", | 26 "launcher.cc", |
31 "launcher.h", | 27 "launcher.h", |
32 "metrics_names.h", | 28 "metrics_names.h", |
33 "saved_files_service.cc", | 29 "saved_files_service.cc", |
34 "saved_files_service.h", | 30 "saved_files_service.h", |
35 "saved_files_service_factory.cc", | 31 "saved_files_service_factory.cc", |
36 "saved_files_service_factory.h", | 32 "saved_files_service_factory.h", |
37 "switches.cc", | 33 "switches.cc", |
38 "switches.h", | 34 "switches.h", |
39 ] | 35 ] |
40 | 36 |
41 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 37 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
42 | 38 |
43 deps = [ | 39 deps = [ |
44 "//chrome/app/theme:theme_resources", | 40 "//chrome/app/theme:theme_resources", |
45 "//chrome/browser/extensions", | 41 "//components/keyed_service/content", |
46 "//chrome/common/extensions/api", | 42 "//content/public/browser", |
47 "//components/web_modal", | 43 "//extensions/common", |
| 44 "//extensions/common/api", |
48 "//skia", | 45 "//skia", |
49 ] | 46 ] |
50 | 47 |
51 # TODO: This top level directory should not have an include cycle. | 48 if (is_chromeos) { |
52 allow_circular_includes_from = [ "//chrome/browser/extensions" ] | 49 deps += [ "//components/user_manager" ] |
| 50 } |
53 } | 51 } |
54 | 52 |
55 if (toolkit_views) { | 53 if (toolkit_views) { |
56 sources += [ | 54 sources += [ |
57 "ui/views/app_window_frame_view.cc", | 55 "ui/views/app_window_frame_view.cc", |
58 "ui/views/app_window_frame_view.h", | 56 "ui/views/app_window_frame_view.h", |
59 ] | 57 ] |
60 deps += [ | 58 deps += [ |
| 59 "//cc/paint", |
61 "//ui/strings", | 60 "//ui/strings", |
62 "//ui/views", | 61 "//ui/views", |
63 ] | 62 ] |
64 if (enable_extensions) { | 63 if (enable_extensions) { |
65 deps += [ "//extensions/browser" ] | 64 deps += [ "//extensions/browser" ] |
66 } | 65 } |
67 } | 66 } |
68 | 67 |
69 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 68 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
70 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 69 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
71 } | 70 } |
72 | 71 |
73 static_library("test_support") { | 72 static_library("test_support") { |
74 testonly = true | 73 testonly = true |
75 sources = [ | 74 sources = [ |
76 "test/app_window_waiter.cc", | 75 "test/app_window_waiter.cc", |
77 "test/app_window_waiter.h", | 76 "test/app_window_waiter.h", |
78 ] | 77 ] |
79 | 78 |
80 public_deps = [ | 79 public_deps = [ |
81 "//content/public/browser", | 80 "//content/public/browser", |
82 ] | 81 ] |
83 } | 82 } |
OLD | NEW |