Update V8 to version 4.6.54.
[chromium-blink-merge.git] / mojo / common / BUILD.gn
blob99f0ba52632b4bc90c05e7dfb8b4022b77e4df08
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 import("//testing/test.gni")
7 group("common") {
8   deps = [
9     ":common_base",
10     ":url_type_converters",
11   ]
14 # GYP version: mojo/mojo_base.gyp:mojo_common_lib
15 component("common_base") {
16   output_name = "mojo_common_lib"
18   sources = [
19     "common_type_converters.cc",
20     "common_type_converters.h",
21     "data_pipe_file_utils.cc",
22     "data_pipe_utils.cc",
23     "data_pipe_utils.h",
24     "handle_watcher.cc",
25     "handle_watcher.h",
26     "message_pump_mojo.cc",
27     "message_pump_mojo.h",
28     "message_pump_mojo_handler.h",
29     "time_helper.cc",
30     "time_helper.h",
31     "user_agent.cc",
32     "user_agent.h",
33     "weak_binding_set.h",
34     "weak_interface_ptr_set.h",
35   ]
37   defines = [ "MOJO_COMMON_IMPLEMENTATION" ]
39   deps = [
40     "//base",
41     "//base/third_party/dynamic_annotations",
42     "//third_party/mojo/src/mojo/public/c/system:for_component",
43   ]
46 # GYP version: mojo/mojo_base.gyp:mojo_url_type_converters
47 source_set("url_type_converters") {
48   sources = [
49     "url_type_converters.cc",
50     "url_type_converters.h",
51   ]
53   include_dirs = [ "//third_party/mojo/src/" ]
55   deps = [
56     ":common_base",
57     "//base",
58     "//base/third_party/dynamic_annotations",
59     "//third_party/mojo/src/mojo/public/cpp/bindings",
60     "//url",
61   ]
64 # TODO(GYP): Delete this after we've converted everything to GN.
65 # The _run targets exist only for compatibility w/ GYP.
66 group("mojo_common_unittests_run") {
67   testonly = true
68   deps = [
69     ":mojo_common_unittests",
70   ]
73 # GYP version: mojo/mojo_base.gyp:mojo_common_unittests
74 test("mojo_common_unittests") {
75   deps = [
76     ":common",
77     "//base",
78     "//base:message_loop_tests",
79     "//base/test:test_support",
80     "//mojo/environment:chromium",
81     "//testing/gtest",
82     "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
83     "//third_party/mojo/src/mojo/edk/test:test_support",
84     "//third_party/mojo/src/mojo/public/cpp/bindings",
85     "//third_party/mojo/src/mojo/public/cpp/test_support:test_utils",
86     "//url",
87   ]
89   sources = [
90     "common_type_converters_unittest.cc",
91     "handle_watcher_unittest.cc",
92     "message_pump_mojo_unittest.cc",
93   ]
96 if (!is_component_build) {
97   source_set("tracing_impl") {
98     sources = [
99       "trace_controller_impl.cc",
100       "trace_controller_impl.h",
101       "tracing_impl.cc",
102       "tracing_impl.h",
103     ]
105     deps = [
106       "//base",
107       "//mojo/application/public/cpp",
108       "//mojo/services/tracing:bindings",
109       "//third_party/mojo/src/mojo/public/cpp/bindings",
110     ]
111   }