[M120 Migration][XWalkExtension] Support IME in xwalk exension
[platform/framework/web/chromium-efl.git] / apps / BUILD.gn
1 # Copyright 2014 The Chromium Authors
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/chromeos/ui_mode.gni")
6 import("//build/config/features.gni")
7 import("//build/config/ui.gni")
8 import("//extensions/buildflags/buildflags.gni")
9
10 assert(!is_android && !is_ios)
11 assert(enable_extensions,
12        "Cannot depend on extensions because enable_extensions=false.")
13
14 static_library("apps") {
15   sources = []
16
17   sources += [
18     "app_lifetime_monitor.cc",
19     "app_lifetime_monitor.h",
20     "app_lifetime_monitor_factory.cc",
21     "app_lifetime_monitor_factory.h",
22     "app_restore_service.cc",
23     "app_restore_service.h",
24     "app_restore_service_factory.cc",
25     "app_restore_service_factory.h",
26     "browser_context_keyed_service_factories.cc",
27     "browser_context_keyed_service_factories.h",
28     "launcher.cc",
29     "launcher.h",
30     "saved_files_service.cc",
31     "saved_files_service.h",
32     "saved_files_service_factory.cc",
33     "saved_files_service_factory.h",
34     "switches.cc",
35     "switches.h",
36   ]
37
38   configs += [ "//build/config/compiler:wexit_time_destructors" ]
39
40   deps = [
41     "//base",
42     "//build:chromeos_buildflags",
43     "//components/keyed_service/content",
44     "//content/public/browser",
45     "//content/public/common",
46     "//extensions/browser",
47     "//extensions/common",
48     "//extensions/common/api",
49   ]
50
51   if (is_chromeos_ash) {
52     deps += [
53       "//components/app_restore",
54       "//components/user_manager",
55     ]
56   }
57 }
58
59 static_library("test_support") {
60   testonly = true
61   sources = [
62     "test/app_window_waiter.cc",
63     "test/app_window_waiter.h",
64   ]
65
66   public_deps = [
67     "//content/public/browser",
68     "//extensions/browser",
69   ]
70 }