Add missing mandoline build deps caught by the new GN version.
[chromium-blink-merge.git] / mandoline / services / core_services / BUILD.gn
blobb7ce113df26e3b7942662a835ad1fce7cf66079a
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 if (is_android) {
12   import("//build/config/android/rules.gni")
14   java_library_path = "$target_out_dir/java_library.dex.jar"
16   mojo_android_application("core_services") {
17     input_so = "$root_out_dir/lib.stripped/libcore_services.so"
18     input_dex_jar = java_library_path
19     deps = [
20       ":java_library",
21       ":native_library",
22     ]
23   }
25   shared_library("native_library") {
26     output_name = "core_services"
28     sources = [
29       "android_hooks.cc",
30     ]
32     deps = [
33       ":sources",
34       "//base",
35       "//components/resource_provider:jni_headers",
36       "//net",
37       "//third_party/mojo/src/mojo/public/c/system:for_shared_library",
38     ]
39   }
41   android_standalone_library("java_library") {
42     dex_path = java_library_path
44     deps = [
45       "//components/resource_provider:java_library",
46       "//net/android:net_java",
47     ]
48   }
49 } else {
50   mojo_native_application("core_services") {
51     deps = [
52       ":sources",
53       "//third_party/icu:icudata",
54       "//third_party/angle:libEGL",
55       "//third_party/angle:libGLESv2",
56       "//ui/resources:ui_test_pak",
57     ]
58     if (is_win) {
59       copy("copy_files") {
60         sources = [
61           "$root_out_dir/icudtl.dat",
62           "$root_out_dir/libEGL.dll",
63           "$root_out_dir/libGLESv2.dll",
64           "$root_out_dir/ui_test.pak",
65         ]
66         outputs = [
67           "$root_out_dir/core_services/{{source_file_part}}",
68         ]
69       }
70       deps += [ ":copy_files" ]
71     }
72   }
75 source_set("sources") {
76   sources = [
77     "core_services_application_delegate.cc",
78     "main.cc",
79   ]
81   deps = [
82     "//base",
83     "//components/clipboard:lib",
84     "//components/filesystem:lib",
85     "//components/resource_provider:lib",
86     "//components/view_manager:lib",
87     "//components/view_manager/surfaces:lib",
88     "//mandoline/ui/browser:lib",
89     "//mojo/application/public/cpp",
90     "//mojo/common:tracing_impl",
91     "//mojo/services/network:lib",
92     "//mojo/services/tracing:lib",
93   ]
95   if (use_aura) {
96     deps += [
97       "//components/view_manager/public/cpp",
98       "//mandoline/ui/omnibox:lib",
99     ]
100   }