Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / mandoline / services / core_services / BUILD.gn
blob9edb1f11901a6acf3d463d6e01d675fe5a7b6371
1 # Copyright 2015 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.
5 # core_services should be thought of as a bundle of many of the services which
6 # we ship with.
8 import("//build/config/ui.gni")
9 import("//build/toolchain/toolchain.gni")
10 import("//mojo/public/mojo_application.gni")
12 mojo_native_application("core_services") {
13   deps = [
14     ":sources",
15     "//third_party/angle:libEGL",
16     "//third_party/angle:libGLESv2",
17   ]
18   if (is_win) {
19     copy("copy_files") {
20       sources = [
21         "$root_shlib_dir/libEGL.dll",
22         "$root_shlib_dir/libGLESv2.dll",
23       ]
24       outputs = [
25         "$root_out_dir/core_services/{{source_file_part}}",
26       ]
27     }
28     deps += [ ":copy_files" ]
29   }
31   if (!is_android) {
32     deps += [ "//third_party/icu:icudata" ]
33     resources = [ "$root_out_dir/icudtl.dat" ]
34   }
37 source_set("sources") {
38   sources = [
39     "application_delegate_factory.h",
40     "application_delegate_factory_linux.cc",
41     "core_services_application_delegate.cc",
42     "main.cc",
43   ]
45   deps = [
46     "//base",
47     "//components/clipboard:lib",
48     "//components/filesystem:lib",
49     "//components/web_view:lib",
50     "//mojo/application/public/cpp",
51     "//mojo/common:tracing_impl",
52     "//mojo/logging",
53     "//mojo/message_pump",
54     "//mojo/services/tracing:lib",
55     "//third_party/icu",
56     "//third_party/mojo/src/mojo/public/cpp/bindings",
57     "//url",
58   ]
60   if (!is_android) {
61     sources += [ "application_delegate_factory_notandroid.cc" ]
62     deps += [
63       "//components/mus:lib",
64       "//components/resource_provider:lib",
65       "//mojo/services/network:lib",
66     ]
67   }
69   if (is_linux) {
70     deps += [ "//components/font_service:lib" ]
71   } else {
72     sources += [ "application_delegate_factory_default.cc" ]
73   }
75   if (use_aura) {
76     deps += [
77       "//components/mus/public/cpp",
78       "//mandoline/ui/desktop_ui:lib",
79       "//mandoline/ui/omnibox:lib",
80     ]
81     sources += [ "application_delegate_factory_aura.cc" ]
82   }