Chromium Code Reviews| 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") { |
|
michaelpg
2017/05/23 16:54:40
I would rather this assert(enable_extensions) beca
Dirk Pranke
2017/05/23 20:00:11
This seems sensible to me.
hugoh_UTC2
2017/05/24 13:58:05
Done. See PS3.
| |
| 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_restore_service.cc", | 20 "app_restore_service.cc", |
| 21 "app_restore_service.h", | 21 "app_restore_service.h", |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 33 "switches.cc", | 33 "switches.cc", |
| 34 "switches.h", | 34 "switches.h", |
| 35 ] | 35 ] |
| 36 | 36 |
| 37 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 37 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 38 | 38 |
| 39 deps = [ | 39 deps = [ |
| 40 "//components/keyed_service/content", | 40 "//components/keyed_service/content", |
| 41 "//content/public/browser", | 41 "//content/public/browser", |
| 42 "//content/public/common", | 42 "//content/public/common", |
| 43 "//extensions/browser", | |
| 44 "//extensions/common", | |
| 45 "//extensions/common/api", | |
| 46 ] | 43 ] |
| 47 | 44 |
| 45 if (enable_extensions) { | |
| 46 deps += [ | |
| 47 "//extensions/browser", | |
| 48 "//extensions/common", | |
| 49 "//extensions/common/api", | |
| 50 ] | |
| 51 } | |
| 52 | |
| 48 if (is_chromeos) { | 53 if (is_chromeos) { |
| 49 deps += [ "//components/user_manager" ] | 54 deps += [ "//components/user_manager" ] |
| 50 } | 55 } |
| 51 } | 56 } |
| 52 | 57 |
| 53 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 58 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 54 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 59 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 55 } | 60 } |
| 56 | 61 |
| 57 static_library("test_support") { | 62 static_library("test_support") { |
| 58 testonly = true | 63 testonly = true |
| 59 sources = [ | 64 sources = [ |
| 60 "test/app_window_waiter.cc", | 65 "test/app_window_waiter.cc", |
| 61 "test/app_window_waiter.h", | 66 "test/app_window_waiter.h", |
| 62 ] | 67 ] |
| 63 | 68 |
| 64 public_deps = [ | 69 public_deps = [ |
| 65 "//content/public/browser", | 70 "//content/public/browser", |
| 66 ] | 71 ] |
| 67 } | 72 } |
| OLD | NEW |