Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: apps/BUILD.gn

Issue 2789253003: Add chrome/browser/apps/BUILD.gn and move Chrome-specific code there (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | apps/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "//content/public/common",
44 "//extensions/common",
45 "//extensions/common/api",
48 "//skia", 46 "//skia",
49 ] 47 ]
50 48
51 # TODO: This top level directory should not have an include cycle. 49 if (is_chromeos) {
52 allow_circular_includes_from = [ "//chrome/browser/extensions" ] 50 deps += [ "//components/user_manager" ]
51 }
53 } 52 }
54 53
55 if (toolkit_views) { 54 if (toolkit_views) {
56 sources += [ 55 sources += [
57 "ui/views/app_window_frame_view.cc", 56 "ui/views/app_window_frame_view.cc",
58 "ui/views/app_window_frame_view.h", 57 "ui/views/app_window_frame_view.h",
59 ] 58 ]
60 deps += [ 59 deps += [
60 "//cc/paint",
61 "//ui/strings", 61 "//ui/strings",
62 "//ui/views", 62 "//ui/views",
63 ] 63 ]
64 if (enable_extensions) { 64 if (enable_extensions) {
65 deps += [ "//extensions/browser" ] 65 deps += [ "//extensions/browser" ]
66 } 66 }
67 } 67 }
68 68
69 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 69 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
70 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 70 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
71 } 71 }
72 72
73 static_library("test_support") { 73 static_library("test_support") {
74 testonly = true 74 testonly = true
75 sources = [ 75 sources = [
76 "test/app_window_waiter.cc", 76 "test/app_window_waiter.cc",
77 "test/app_window_waiter.h", 77 "test/app_window_waiter.h",
78 ] 78 ]
79 79
80 public_deps = [ 80 public_deps = [
81 "//content/public/browser", 81 "//content/public/browser",
82 ] 82 ]
83 } 83 }
OLDNEW
« no previous file with comments | « no previous file | apps/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698