| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//mojo/public/mojo_application.gni") | 5 import("//mojo/public/mojo_application.gni") |
| 6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 executable("standalone") { | 9 executable("standalone") { |
| 10 output_name = "mojo_runner" | 10 output_name = "mojo_runner" |
| 11 sources = [ | 11 sources = [ |
| 12 "desktop/main.cc", | 12 "desktop/main.cc", |
| 13 ] | 13 ] |
| 14 deps = [ | 14 deps = [ |
| 15 ":lib", | 15 ":lib", |
| 16 "//base", | 16 "//base", |
| 17 "//build/config/sanitizers:deps", | 17 "//build/config/sanitizers:deps", |
| 18 "//components/tracing:startup_tracing", | |
| 19 "//mojo/common", | |
| 20 "//mojo/environment:chromium", | |
| 21 "//mojo/message_pump", | |
| 22 "//mojo/shell/runner/common", | |
| 23 "//mojo/shell/runner/host:lib", | |
| 24 "//third_party/icu:icudata", | |
| 25 ] | 18 ] |
| 26 } | 19 } |
| 27 | 20 |
| 28 source_set("lib") { | 21 source_set("lib") { |
| 29 sources = [ | 22 sources = [ |
| 30 "context.cc", | 23 "context.cc", |
| 31 "context.h", | 24 "context.h", |
| 32 "desktop/launcher_process.cc", | 25 "desktop/launcher_process.cc", |
| 33 "desktop/launcher_process.h", | 26 "desktop/launcher_process.h", |
| 34 "desktop/main_helper.cc", | 27 "desktop/main_helper.cc", |
| 35 "desktop/main_helper.h", | 28 "desktop/main_helper.h", |
| 36 "tracer.cc", | 29 "tracer.cc", |
| 37 "tracer.h", | 30 "tracer.h", |
| 38 ] | 31 ] |
| 39 | 32 |
| 40 deps = [ | 33 deps = [ |
| 41 "//base", | 34 "//base", |
| 42 "//base:base_static", | 35 "//base:base_static", |
| 43 "//base/third_party/dynamic_annotations", | 36 "//base/third_party/dynamic_annotations", |
| 44 "//components/tracing:startup_tracing", | 37 "//components/tracing:startup_tracing", |
| 45 "//mojo/edk/system", | 38 "//mojo/edk/system", |
| 46 "//mojo/message_pump", | 39 "//mojo/message_pump", |
| 47 "//mojo/services/tracing/public/cpp", | 40 "//mojo/services/tracing/public/cpp", |
| 48 "//mojo/services/tracing/public/interfaces", | 41 "//mojo/services/tracing/public/interfaces", |
| 49 "//mojo/shell", | 42 "//mojo/shell", |
| 50 "//mojo/shell/public/cpp", | 43 "//mojo/shell/public/cpp", |
| 51 "//mojo/shell/runner:init", | |
| 52 "//mojo/shell/runner/child:interfaces", | |
| 53 "//mojo/shell/runner/host:lib", | 44 "//mojo/shell/runner/host:lib", |
| 54 "//mojo/util:filename_util", | |
| 55 "//ui/gl", | |
| 56 "//url", | 45 "//url", |
| 57 ] | 46 ] |
| 58 | 47 |
| 59 public_deps = [ | |
| 60 "//mojo/shell", | |
| 61 "//mojo/shell/runner:init", | |
| 62 ] | |
| 63 | |
| 64 if (!is_component_build) { | 48 if (!is_component_build) { |
| 65 data_deps = [ | 49 data_deps = [ |
| 66 "//mojo/services/tracing", | 50 "//mojo/services/tracing", |
| 67 ] | 51 ] |
| 68 } | 52 } |
| 69 | 53 |
| 70 # This target includes some files behind #ifdef OS... guards. Since gn is not | 54 # This target includes some files behind #ifdef OS... guards. Since gn is not |
| 71 # smart enough to understand preprocess includes, it does complains about | 55 # smart enough to understand preprocess includes, it does complains about |
| 72 # these includes when not using the build files for that OS. Suppress checking | 56 # these includes when not using the build files for that OS. Suppress checking |
| 73 # so we can enable checking for the rest of the targets in this file. | 57 # so we can enable checking for the rest of the targets in this file. |
| 74 # TODO: Might be better to split the files with OS-specific includes out to a | 58 # TODO: Might be better to split the files with OS-specific includes out to a |
| 75 # separate source_set so we can leave checking on for the rest of the target. | 59 # separate source_set so we can leave checking on for the rest of the target. |
| 76 check_includes = false | 60 check_includes = false |
| 77 } | 61 } |
| OLD | NEW |