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