| OLD | NEW |
| (Empty) |
| 1 # Copyright 2014 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 import("//services/shell/public/cpp/service.gni") | |
| 6 import("//mojo/public/tools/bindings/mojom.gni") | |
| 7 import("//testing/test.gni") | |
| 8 | |
| 9 executable("standalone") { | |
| 10 output_name = "mojo_runner" | |
| 11 sources = [ | |
| 12 "desktop/main.cc", | |
| 13 ] | |
| 14 deps = [ | |
| 15 ":lib", | |
| 16 "//base", | |
| 17 "//build/config/sanitizers:deps", | |
| 18 "//build/win:default_exe_manifest", | |
| 19 ] | |
| 20 } | |
| 21 | |
| 22 source_set("lib") { | |
| 23 sources = [ | |
| 24 "desktop/launcher_process.cc", | |
| 25 "desktop/launcher_process.h", | |
| 26 "desktop/main_helper.cc", | |
| 27 "desktop/main_helper.h", | |
| 28 "tracer.cc", | |
| 29 "tracer.h", | |
| 30 ] | |
| 31 | |
| 32 deps = [ | |
| 33 "//base", | |
| 34 "//base:base_static", | |
| 35 "//base/third_party/dynamic_annotations", | |
| 36 "//components/tracing:startup_tracing", | |
| 37 "//mojo/edk/system", | |
| 38 "//services/catalog:lib", | |
| 39 "//services/shell", | |
| 40 "//services/shell/public/cpp", | |
| 41 "//services/shell/runner/host:lib", | |
| 42 "//services/tracing/public/cpp", | |
| 43 "//services/tracing/public/interfaces", | |
| 44 "//url", | |
| 45 ] | |
| 46 | |
| 47 data_deps = [ | |
| 48 "//services/tracing", | |
| 49 ] | |
| 50 | |
| 51 if (!is_ios) { | |
| 52 sources += [ | |
| 53 "context.cc", | |
| 54 "context.h", | |
| 55 ] | |
| 56 } | |
| 57 | |
| 58 # This target includes some files behind #ifdef OS... guards. Since gn is not | |
| 59 # smart enough to understand preprocess includes, it does complains about | |
| 60 # these includes when not using the build files for that OS. Suppress checking | |
| 61 # so we can enable checking for the rest of the targets in this file. | |
| 62 # TODO: Might be better to split the files with OS-specific includes out to a | |
| 63 # separate source_set so we can leave checking on for the rest of the target. | |
| 64 check_includes = false | |
| 65 } | |
| OLD | NEW |