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 | 7 |
8 static_library("apps") { | 8 static_library("apps") { |
9 sources = [ | 9 sources = [ |
10 "app_lifetime_monitor.cc", | 10 "app_lifetime_monitor.cc", |
(...skipping 22 matching lines...) Expand all Loading... |
33 "launcher.h", | 33 "launcher.h", |
34 "metrics_names.h", | 34 "metrics_names.h", |
35 "saved_files_service.cc", | 35 "saved_files_service.cc", |
36 "saved_files_service.h", | 36 "saved_files_service.h", |
37 "saved_files_service_factory.cc", | 37 "saved_files_service_factory.cc", |
38 "saved_files_service_factory.h", | 38 "saved_files_service_factory.h", |
39 "switches.cc", | 39 "switches.cc", |
40 "switches.h", | 40 "switches.h", |
41 "ui/apps_client.cc", | 41 "ui/apps_client.cc", |
42 "ui/apps_client.h", | 42 "ui/apps_client.h", |
43 "ui/web_contents_sizer.h", | |
44 ] | 43 ] |
45 | 44 |
46 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 45 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
47 | 46 |
48 deps = [ | 47 deps = [ |
49 "//chrome/app/theme:theme_resources", | 48 "//chrome/app/theme:theme_resources", |
50 "//chrome/browser/extensions", | 49 "//chrome/browser/extensions", |
51 "//chrome/common/extensions/api:api", | 50 "//chrome/common/extensions/api:api", |
52 "//skia", | 51 "//skia", |
53 ] | 52 ] |
54 | 53 |
55 if (is_chromeos) { | 54 if (is_chromeos) { |
56 #deps += [ "browser_chromeos" ] TODO(GYP) | 55 #deps += [ "browser_chromeos" ] TODO(GYP) |
57 } | 56 } |
58 | 57 |
59 if (!enable_extensions) { | 58 if (!enable_extensions) { |
60 # When extensions are disabled, only the sizer file below is included. | 59 # When extensions are disabled, only the sizer file below is included. |
61 deps -= [ "//chrome/browser/extensions" ] | 60 deps -= [ "//chrome/browser/extensions" ] |
62 sources = [] | 61 sources = [] |
63 } | 62 } |
64 | 63 |
65 # This needs to run after the extensions check above since we always want | |
66 # this file in the project. | |
67 if (is_mac) { | |
68 sources += [ "ui/web_contents_sizer.mm" ] | |
69 } else { | |
70 sources += [ "ui/web_contents_sizer.cc" ] | |
71 } | |
72 | |
73 if (toolkit_views) { | 64 if (toolkit_views) { |
74 sources += [ | 65 sources += [ |
75 "ui/views/app_window_frame_view.cc", | 66 "ui/views/app_window_frame_view.cc", |
76 "ui/views/app_window_frame_view.h", | 67 "ui/views/app_window_frame_view.h", |
77 "ui/views/native_app_window_views.cc", | 68 "ui/views/native_app_window_views.cc", |
78 "ui/views/native_app_window_views.h", | 69 "ui/views/native_app_window_views.h", |
79 ] | 70 ] |
80 deps += [ | 71 deps += [ |
81 "//ui/strings", | 72 "//ui/strings", |
82 "//ui/views", | 73 "//ui/views", |
83 ] | 74 ] |
84 } | 75 } |
85 | 76 |
86 if (is_win) { | 77 if (is_win) { |
87 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 78 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
88 cflags = [ "/wd4267" ] | 79 cflags = [ "/wd4267" ] |
89 } | 80 } |
90 } | 81 } |
OLD | NEW |