summaryrefslogtreecommitdiffstats
path: root/mojo/shell/standalone/BUILD.gn
blob: cabe62ff233dcc2de3d378adef59584ece37d7db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//mojo/public/mojo_application.gni")
import("//mojo/public/tools/bindings/mojom.gni")
import("//testing/test.gni")

executable("standalone") {
  output_name = "mojo_runner"
  sources = [
    "desktop/main.cc",
  ]
  deps = [
    ":lib",
    "//base",
    "//build/config/sanitizers:deps",
  ]
}

source_set("lib") {
  sources = [
    "context.cc",
    "context.h",
    "desktop/launcher_process.cc",
    "desktop/launcher_process.h",
    "desktop/main_helper.cc",
    "desktop/main_helper.h",
    "tracer.cc",
    "tracer.h",
  ]

  deps = [
    "//base",
    "//base:base_static",
    "//base/third_party/dynamic_annotations",
    "//components/tracing:startup_tracing",
    "//mojo/edk/system",
    "//mojo/message_pump",
    "//mojo/services/package_manager:lib",
    "//mojo/services/tracing/public/cpp",
    "//mojo/services/tracing/public/interfaces",
    "//mojo/shell",
    "//mojo/shell/public/cpp",
    "//mojo/shell/runner/host:lib",
    "//url",
  ]

  if (!is_component_build) {
    data_deps = [
      "//mojo/services/tracing",
    ]
  }

  # This target includes some files behind #ifdef OS... guards. Since gn is not
  # smart enough to understand preprocess includes, it does complains about
  # these includes when not using the build files for that OS. Suppress checking
  # so we can enable checking for the rest of the targets in this file.
  # TODO: Might be better to split the files with OS-specific includes out to a
  # separate source_set so we can leave checking on for the rest of the target.
  check_includes = false
}