| OLD | NEW |
| (Empty) |
| 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. | |
| 4 # | |
| 5 # core_services should be thought of as a bundle of many of the services which | |
| 6 # we ship with. | |
| 7 | |
| 8 import("//build/config/ui.gni") | |
| 9 import("//build/toolchain/toolchain.gni") | |
| 10 import("//mojo/public/mojo_application.gni") | |
| 11 | |
| 12 mojo_native_application("core_services") { | |
| 13 deps = [ | |
| 14 ":sources", | |
| 15 ] | |
| 16 if (is_win) { | |
| 17 deps += [ | |
| 18 ":copy_files", | |
| 19 "//third_party/angle:libEGL", | |
| 20 "//third_party/angle:libGLESv2", | |
| 21 ] | |
| 22 } | |
| 23 } | |
| 24 | |
| 25 if (is_win) { | |
| 26 copy("copy_files") { | |
| 27 sources = [ | |
| 28 "$root_shlib_dir/libEGL.dll", | |
| 29 "$root_shlib_dir/libGLESv2.dll", | |
| 30 ] | |
| 31 outputs = [ | |
| 32 "$root_out_dir/core_services/{{source_file_part}}", | |
| 33 ] | |
| 34 | |
| 35 deps = [ | |
| 36 "//third_party/angle:libEGL", | |
| 37 "//third_party/angle:libGLESv2", | |
| 38 ] | |
| 39 } | |
| 40 } | |
| 41 | |
| 42 source_set("sources") { | |
| 43 sources = [ | |
| 44 "application_delegate_factory.h", | |
| 45 "application_delegate_factory_linux.cc", | |
| 46 "core_services_application_delegate.cc", | |
| 47 "main.cc", | |
| 48 ] | |
| 49 | |
| 50 deps = [ | |
| 51 "//base", | |
| 52 "//components/clipboard:lib", | |
| 53 "//components/filesystem:lib", | |
| 54 "//components/web_view:lib", | |
| 55 "//mojo/logging", | |
| 56 "//mojo/message_pump", | |
| 57 "//mojo/public/cpp/bindings", | |
| 58 "//mojo/services/tracing:lib", | |
| 59 "//mojo/services/tracing/public/cpp", | |
| 60 "//mojo/shell/public/cpp", | |
| 61 "//third_party/icu", | |
| 62 "//url", | |
| 63 ] | |
| 64 | |
| 65 if (!is_android) { | |
| 66 sources += [ "application_delegate_factory_notandroid.cc" ] | |
| 67 deps += [ | |
| 68 "//components/mus:lib", | |
| 69 "//components/resource_provider:lib", | |
| 70 "//mojo/services/network:lib", | |
| 71 ] | |
| 72 } | |
| 73 | |
| 74 if (is_linux) { | |
| 75 deps += [ "//components/font_service:lib" ] | |
| 76 } else { | |
| 77 sources += [ "application_delegate_factory_default.cc" ] | |
| 78 } | |
| 79 } | |
| OLD | NEW |