OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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") | |
6 import("//build/config/ui.gni") | |
7 import("//extensions/features/features.gni") | 5 import("//extensions/features/features.gni") |
8 | 6 |
9 assert(!is_android && !is_ios) | |
10 assert(enable_extensions, | 7 assert(enable_extensions, |
11 "Cannot depend on extensions because enable_extensions=false.") | 8 "Cannot depend on extensions because enable_extensions=false.") |
12 | 9 |
13 static_library("apps") { | 10 source_set("file_system") { |
14 sources = [] | 11 sources = [ |
15 | |
16 sources += [ | |
17 "app_lifetime_monitor.cc", | |
18 "app_lifetime_monitor.h", | |
19 "app_lifetime_monitor_factory.cc", | |
20 "app_lifetime_monitor_factory.h", | |
21 "app_restore_service.cc", | |
22 "app_restore_service.h", | |
23 "app_restore_service_factory.cc", | |
24 "app_restore_service_factory.h", | |
25 "browser_context_keyed_service_factories.cc", | |
26 "browser_context_keyed_service_factories.h", | |
27 "launcher.cc", | |
28 "launcher.h", | |
29 "metrics_names.h", | |
30 "saved_files_service.cc", | 12 "saved_files_service.cc", |
31 "saved_files_service.h", | 13 "saved_files_service.h", |
32 "saved_files_service_factory.cc", | |
33 "saved_files_service_factory.h", | |
34 "switches.cc", | |
35 "switches.h", | |
36 ] | 14 ] |
37 | 15 |
38 configs += [ "//build/config/compiler:wexit_time_destructors" ] | |
39 | |
40 deps = [ | 16 deps = [ |
41 "//components/keyed_service/content", | 17 "//base:base", |
42 "//content/public/browser", | |
43 "//content/public/common", | |
44 "//extensions/browser", | |
45 "//extensions/common", | |
46 "//extensions/common/api", | |
47 ] | |
48 | |
49 if (is_chromeos) { | |
50 deps += [ "//components/user_manager" ] | |
51 } | |
52 | |
53 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
54 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | |
55 } | |
56 | |
57 static_library("test_support") { | |
58 testonly = true | |
59 sources = [ | |
60 "test/app_window_waiter.cc", | |
61 "test/app_window_waiter.h", | |
62 ] | |
63 | |
64 public_deps = [ | |
65 "//content/public/browser", | |
66 ] | 18 ] |
67 } | 19 } |
OLD | NEW |