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

Side by Side Diff: apps/BUILD.gn

Issue 496763002: Add apps to the GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « BUILD.gn ('k') | apps/apps.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 import("//build/config/features.gni")
6 import("//build/config/ui.gni")
7
8 static_library("apps") {
9 sources = [
10 "app_lifetime_monitor.cc",
11 "app_lifetime_monitor.h",
12 "app_lifetime_monitor_factory.cc",
13 "app_lifetime_monitor_factory.h",
14 "app_load_service.cc",
15 "app_load_service.h",
16 "app_load_service_factory.cc",
17 "app_load_service_factory.h",
18 "app_restore_service.cc",
19 "app_restore_service.h",
20 "app_restore_service_factory.cc",
21 "app_restore_service_factory.h",
22 "app_window.cc",
23 "app_window.h",
24 "app_window_contents.cc",
25 "app_window_contents.h",
26 "app_window_registry.cc",
27 "app_window_registry.h",
28 "browser_context_keyed_service_factories.cc",
29 "browser_context_keyed_service_factories.h",
30 "custom_launcher_page_contents.cc",
31 "custom_launcher_page_contents.h",
32 "launcher.cc",
33 "launcher.h",
34 "metrics_names.h",
35 "pref_names.cc",
36 "pref_names.h",
37 "prefs.cc",
38 "prefs.h",
39 "saved_files_service.cc",
40 "saved_files_service.h",
41 "saved_files_service_factory.cc",
42 "saved_files_service_factory.h",
43 "switches.cc",
44 "switches.h",
45 "ui/apps_client.cc",
46 "ui/apps_client.h",
47 "ui/web_contents_sizer.h",
48 ]
49
50 configs += [ "//build/config/compiler:wexit_time_destructors" ]
51
52 deps = [
53 "//chrome/app/theme:theme_resources",
54 "//chrome/browser/extensions",
55 "//chrome/common/extensions/api:api",
56 "//skia",
57 ]
58
59 if (is_chromeos) {
60 #deps += [ "browser_chromeos" ] TODO(GYP)
61 }
62
63 if (!enable_extensions) {
64 # When extensions are disabled, only the sizer file below is included.
65 deps -= [ "//chrome/browser/extensions" ]
66 sources = []
67 }
68
69 # This needs to run after the extensions check above since we always want
70 # this file in the project.
71 if (is_mac) {
72 sources += [ "ui/web_contents_sizer.mm" ]
73 } else {
74 sources += [ "ui/web_contents_sizer.cc" ]
75 }
76
77 if (toolkit_views) {
78 sources += [
79 "ui/views/app_window_frame_view.cc",
80 "ui/views/app_window_frame_view.h",
81 "ui/views/native_app_window_views.cc",
82 "ui/views/native_app_window_views.h",
83 ]
84 deps += [
85 "//ui/strings",
86 "//ui/views",
87 ]
88 }
89
90 if (is_win) {
91 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
92 cflags = [ "/wd4267" ]
93 }
94 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | apps/apps.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698