summaryrefslogtreecommitdiffstats
path: root/mojo/services/test_service/BUILD.gn
blob: 36647da07634ba1c546d7ad6948af5f74c866ae0 (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.

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

group("test_service") {
  # Meta-target, don't link into production code.
  testonly = true
  deps = [
    ":bindings",
    ":test_app",
    ":test_request_tracker_app",
  ]
}

mojom("bindings") {
  sources = [
    "test_request_tracker.mojom",
    "test_service.mojom",
  ]
}

mojo_native_application("test_app") {
  sources = [
    "test_service_application.cc",
    "test_service_application.h",
    "test_service_impl.cc",
    "test_service_impl.h",
    "test_time_service_impl.cc",
    "test_time_service_impl.h",
    "tracked_service.cc",
    "tracked_service.h",
  ]

  deps = [
    ":bindings",
    "//base",
    "//base:i18n",
    "//mojo/application/public/cpp",
  ]
}

mojo_native_application("test_request_tracker_app") {
  sources = [
    "test_request_tracker_application.cc",
    "test_request_tracker_application.h",
    "test_request_tracker_impl.cc",
    "test_request_tracker_impl.h",
    "test_time_service_impl.cc",
    "test_time_service_impl.h",
    "tracked_service.cc",
    "tracked_service.h",
  ]

  deps = [
    ":bindings",
    "//base",
    "//base:i18n",
    "//mojo/application/public/cpp",
  ]
}