Correctly handle empty data in RenderMessageFilter::OnCacheableMetadataAvailable()
[chromium-blink-merge.git] / mojo / environment / BUILD.gn
blobd233c3bf353812f9d915f03166d75afd9dd5ec6c
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/lib/scoped_task_tracking.cc",
17     "//third_party/mojo/src/mojo/public/cpp/environment/lib/scoped_task_tracking.h",
18     "//third_party/mojo/src/mojo/public/cpp/environment/logging.h",
19     "//third_party/mojo/src/mojo/public/cpp/environment/task_tracker.h",
20   ]
22   public_deps = [
23     ":chromium_impl",
24   ]
26   deps = [
27     "//third_party/mojo/src/mojo/public/c/environment",
28     "//third_party/mojo/src/mojo/public/cpp/bindings:callback",
29     "//third_party/mojo/src/mojo/public/cpp/environment",
30     "//third_party/mojo/src/mojo/public/cpp/system",
31   ]
34 # GYP version: mojo_base.gyp:mojo_environment_chromium_impl
35 component("chromium_impl") {
36   output_name = "mojo_environment_impl"
37   visibility = [ "//mojo/*" ]
39   sources = [
40     "default_async_waiter_impl.cc",
41     "default_async_waiter_impl.h",
42     "default_logger_impl.cc",
43     "default_logger_impl.h",
44     "default_run_loop_impl.cc",
45     "default_run_loop_impl.h",
46     "default_task_tracker_impl.cc",
47     "default_task_tracker_impl.h",
48   ]
50   defines = [ "MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION" ]
52   public_configs =
53       [ "//third_party/mojo/src/mojo/public/build/config:mojo_sdk" ]
55   deps = [
56     "//base",
57     "//base/third_party/dynamic_annotations",
58     "//mojo/message_pump",
59     "//third_party/mojo/src/mojo/public/c/system:for_component",
60     "//third_party/mojo/src/mojo/public/cpp/environment:environment",
61   ]