PermissionRequestCreatorApiary: switch from deprecated "namespace" to "eventType"
[chromium-blink-merge.git] / mojo / environment / BUILD.gn
blob49e5c78f331e1b7ba5858760f1c8d063c9c8eb9d
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
3 # found in the LICENSE file.
5 # GYP version: mojo_base.gyp:mojo_environment_chromium
6 source_set("chromium") {
7   output_name = "mojo_environment_chromium"
9   sources = [
10     "environment.cc",
12     # TODO(vtl): This is kind of ugly. (See TODO in logging.h.)
13     "//third_party/mojo/src/mojo/public/cpp/environment/async_waiter.h",
14     "//third_party/mojo/src/mojo/public/cpp/environment/lib/async_waiter.cc",
15     "//third_party/mojo/src/mojo/public/cpp/environment/lib/logging.cc",
16     "//third_party/mojo/src/mojo/public/cpp/environment/logging.h",
17   ]
19   public_deps = [
20     ":chromium_impl",
21   ]
23   deps = [
24     "//third_party/mojo/src/mojo/public/c/environment",
25     "//third_party/mojo/src/mojo/public/cpp/bindings:callback",
26     "//third_party/mojo/src/mojo/public/cpp/environment",
27     "//third_party/mojo/src/mojo/public/cpp/system",
28   ]
31 # GYP version: mojo_base.gyp:mojo_environment_chromium_impl
32 component("chromium_impl") {
33   output_name = "mojo_environment_impl"
34   visibility = [ "//mojo/*" ]
36   sources = [
37     "default_async_waiter_impl.cc",
38     "default_async_waiter_impl.h",
39     "default_logger_impl.cc",
40     "default_logger_impl.h",
41     "default_run_loop_impl.cc",
42     "default_run_loop_impl.h",
43   ]
45   defines = [ "MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION" ]
47   public_configs =
48       [ "//third_party/mojo/src/mojo/public/build/config:mojo_sdk" ]
50   deps = [
51     "//base",
52     "//base/third_party/dynamic_annotations",
53     "//mojo/common:common_base",
54     "//third_party/mojo/src/mojo/public/c/environment",
55   ]