Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / mandoline / services / core_services / BUILD.gn
blob2a34b61efcf49e4548d63a35b32048033a20a347
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("//mojo/public/mojo_application.gni")
11 mojo_native_application("core_services") {
12   deps = [
13     ":sources",
14     "//third_party/angle:libEGL",
15     "//third_party/angle:libGLESv2",
16   ]
17   if (is_win) {
18     copy("copy_files") {
19       sources = [
20         "$root_out_dir/libEGL.dll",
21         "$root_out_dir/libGLESv2.dll",
22       ]
23       outputs = [
24         "$root_out_dir/core_services/{{source_file_part}}",
25       ]
26     }
27     deps += [ ":copy_files" ]
28   }
30   if (!is_android) {
31     deps += [ "//third_party/icu:icudata" ]
32     resources = [ "$root_out_dir/icudtl.dat" ]
33   }
36 source_set("sources") {
37   sources = [
38     "core_services_application_delegate.cc",
39     "main.cc",
40   ]
42   deps = [
43     "//base",
44     "//components/clipboard:lib",
45     "//components/filesystem:lib",
46     "//components/view_manager/surfaces:lib",
47     "//mandoline/ui/browser:lib",
48     "//mojo/application/public/cpp",
49     "//mojo/common:tracing_impl",
50     "//mojo/message_pump",
51     "//mojo/services/tracing:lib",
52     "//third_party/mojo/src/mojo/public/cpp/bindings",
53   ]
55   if (!is_android) {
56     deps += [
57       "//components/resource_provider:lib",
58       "//components/view_manager:lib",
59       "//mojo/services/network:lib",
60     ]
61   }
63   if (use_aura) {
64     deps += [
65       "//components/view_manager/public/cpp",
66       "//mandoline/ui/omnibox:lib",
67     ]
68   }