| 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 assert(!is_android && !is_ios) | 8 assert(!is_android && !is_ios) |
| 9 | 9 |
| 10 static_library("apps") { | 10 static_library("apps") { |
| 11 sources = [ | 11 sources = [] |
| 12 "app_lifetime_monitor.cc", | |
| 13 "app_lifetime_monitor.h", | |
| 14 "app_lifetime_monitor_factory.cc", | |
| 15 "app_lifetime_monitor_factory.h", | |
| 16 "app_load_service.cc", | |
| 17 "app_load_service.h", | |
| 18 "app_load_service_factory.cc", | |
| 19 "app_load_service_factory.h", | |
| 20 "app_restore_service.cc", | |
| 21 "app_restore_service.h", | |
| 22 "app_restore_service_factory.cc", | |
| 23 "app_restore_service_factory.h", | |
| 24 "browser_context_keyed_service_factories.cc", | |
| 25 "browser_context_keyed_service_factories.h", | |
| 26 "custom_launcher_page_contents.cc", | |
| 27 "custom_launcher_page_contents.h", | |
| 28 "launcher.cc", | |
| 29 "launcher.h", | |
| 30 "metrics_names.h", | |
| 31 "saved_files_service.cc", | |
| 32 "saved_files_service.h", | |
| 33 "saved_files_service_factory.cc", | |
| 34 "saved_files_service_factory.h", | |
| 35 "switches.cc", | |
| 36 "switches.h", | |
| 37 ] | |
| 38 | 12 |
| 39 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 13 if (enable_extensions) { |
| 14 sources += [ |
| 15 "app_lifetime_monitor.cc", |
| 16 "app_lifetime_monitor.h", |
| 17 "app_lifetime_monitor_factory.cc", |
| 18 "app_lifetime_monitor_factory.h", |
| 19 "app_load_service.cc", |
| 20 "app_load_service.h", |
| 21 "app_load_service_factory.cc", |
| 22 "app_load_service_factory.h", |
| 23 "app_restore_service.cc", |
| 24 "app_restore_service.h", |
| 25 "app_restore_service_factory.cc", |
| 26 "app_restore_service_factory.h", |
| 27 "browser_context_keyed_service_factories.cc", |
| 28 "browser_context_keyed_service_factories.h", |
| 29 "custom_launcher_page_contents.cc", |
| 30 "custom_launcher_page_contents.h", |
| 31 "launcher.cc", |
| 32 "launcher.h", |
| 33 "metrics_names.h", |
| 34 "saved_files_service.cc", |
| 35 "saved_files_service.h", |
| 36 "saved_files_service_factory.cc", |
| 37 "saved_files_service_factory.h", |
| 38 "switches.cc", |
| 39 "switches.h", |
| 40 ] |
| 40 | 41 |
| 41 deps = [ | 42 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 42 "//chrome/app/theme:theme_resources", | |
| 43 "//chrome/browser/extensions", | |
| 44 "//chrome/common/extensions/api:api", | |
| 45 "//components/web_modal", | |
| 46 "//skia", | |
| 47 ] | |
| 48 | 43 |
| 49 if (is_chromeos) { | 44 deps = [ |
| 50 #deps += [ "browser_chromeos" ] TODO(GYP) | 45 "//chrome/app/theme:theme_resources", |
| 51 } | 46 "//chrome/browser/extensions", |
| 47 "//chrome/common/extensions/api", |
| 48 "//components/web_modal", |
| 49 "//skia", |
| 50 ] |
| 52 | 51 |
| 53 if (!enable_extensions) { | 52 # TODO: This top level directory should not have an include cycle. |
| 54 # When extensions are disabled, only the sizer file below is included. | 53 allow_circular_includes_from = [ "//chrome/browser/extensions" ] |
| 55 deps -= [ | |
| 56 "//chrome/browser/extensions", | |
| 57 "//chrome/common/extensions/api:api", | |
| 58 ] | |
| 59 sources = [] | |
| 60 } | 54 } |
| 61 | 55 |
| 62 if (toolkit_views) { | 56 if (toolkit_views) { |
| 63 sources += [ | 57 sources += [ |
| 64 "ui/views/app_window_frame_view.cc", | 58 "ui/views/app_window_frame_view.cc", |
| 65 "ui/views/app_window_frame_view.h", | 59 "ui/views/app_window_frame_view.h", |
| 66 ] | 60 ] |
| 67 deps += [ | 61 deps += [ |
| 68 "//ui/strings", | 62 "//ui/strings", |
| 69 "//ui/views", | 63 "//ui/views", |
| 70 ] | 64 ] |
| 71 if (enable_extensions) { | 65 if (enable_extensions) { |
| 72 deps += [ "//extensions/browser" ] | 66 deps += [ "//extensions/browser" ] |
| 73 } | 67 } |
| 74 } | 68 } |
| 75 | 69 |
| 76 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 70 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 77 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 71 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 78 } | 72 } |
| OLD | NEW |