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