summaryrefslogtreecommitdiffstats
path: root/mojo/environment/BUILD.gn
blob: 4dbe7c4d5b8dd048df528a6a7c55f02a1c0a32fe (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
# 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_base.gyp:mojo_environment_chromium
source_set("chromium") {
  output_name = "mojo_environment_chromium"

  sources = [
    "environment.cc",

    # TODO(vtl): This is kind of ugly. (See TODO in logging.h.)
    "//third_party/mojo/src/mojo/public/cpp/environment/async_waiter.h",
    "//third_party/mojo/src/mojo/public/cpp/environment/lib/async_waiter.cc",
    "//third_party/mojo/src/mojo/public/cpp/environment/lib/logging.cc",
    "//third_party/mojo/src/mojo/public/cpp/environment/lib/scoped_task_tracking.cc",
    "//third_party/mojo/src/mojo/public/cpp/environment/lib/scoped_task_tracking.h",
    "//third_party/mojo/src/mojo/public/cpp/environment/logging.h",
    "//third_party/mojo/src/mojo/public/cpp/environment/task_tracker.h",
  ]

  public_deps = [
    ":chromium_impl",
  ]

  deps = [
    "//third_party/mojo/src/mojo/public/c/environment",
    "//third_party/mojo/src/mojo/public/cpp/bindings:callback",
    "//third_party/mojo/src/mojo/public/cpp/environment",
    "//third_party/mojo/src/mojo/public/cpp/system",
  ]
}

# GYP version: mojo_base.gyp:mojo_environment_chromium_impl
component("chromium_impl") {
  output_name = "mojo_environment_impl"
  visibility = [ "//mojo/*" ]

  sources = [
    "default_async_waiter_impl.cc",
    "default_async_waiter_impl.h",
    "default_logger_impl.cc",
    "default_logger_impl.h",
    "default_run_loop_impl.cc",
    "default_run_loop_impl.h",
    "default_task_tracker_impl.cc",
    "default_task_tracker_impl.h",
  ]

  defines = [ "MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION" ]

  public_configs =
      [ "//third_party/mojo/src/mojo/public/build/config:mojo_sdk" ]

  deps = [
    "//base",
    "//base/third_party/dynamic_annotations",
    "//mojo/common:common_base",
    "//third_party/mojo/src/mojo/public/c/environment",
  ]
}