summaryrefslogtreecommitdiff
path: root/chromium/mojo/application/BUILD.gn
blob: 6a22911edfb65c952a6c3d9b522432865833beee (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
63
# 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.

# GYP version: mojo/mojo_base.gyp:mojo_application_chromium
source_set("application") {
  sources = [
    "application_runner_chromium.cc",
    "application_runner_chromium.h",
  ]

  public_deps = [
    "//mojo/application/public/cpp",
  ]
  deps = [
    "//base",
    "//mojo/common",
    "//mojo/environment:chromium",
  ]
}

source_set("content_handler") {
  sources = [
    "content_handler_factory.cc",
    "content_handler_factory.h",
  ]
  deps = [
    ":application",
    "//base",
    "//mojo/application/public/interfaces",
    "//mojo/common",
    "//mojo/environment:chromium",
    "//third_party/mojo_services/src/content_handler/public/interfaces",
    "//mojo/services/network/public/interfaces",
  ]
}

source_set("test_support") {
  testonly = true
  sources = [
    "application_test_base_chromium.cc",
    "application_test_base_chromium.h",
    "application_test_main_chromium.cc",
  ]

  deps = [
    "//base",
    "//base/test:test_support",
    "//mojo/application/public/cpp",
    "//third_party/mojo/src/mojo/public/cpp/bindings",
    "//third_party/mojo/src/mojo/public/cpp/environment",
    "//third_party/mojo/src/mojo/public/cpp/system",
    "//testing/gtest",
  ]

  data_deps = []
  if (is_android) {
    data_deps += [ "//mojo/android" ]
  }
  if (!is_component_build) {
    data_deps += [ "//mojo/runner" ]
  }
}