Revert Disable Rotation on Login Pages
[chromium-blink-merge.git] / mojo / common / BUILD.gn
blobd9c1216cec9a17ff0fb6bfaa5f70270599050f7b
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     "weak_binding_set.h",
32     "weak_interface_ptr_set.h",
33   ]
35   defines = [ "MOJO_COMMON_IMPLEMENTATION" ]
37   deps = [
38     "//base",
39     "//base/third_party/dynamic_annotations",
40     "//third_party/mojo/src/mojo/public/c/system:for_component",
41   ]
44 # GYP version: mojo/mojo_base.gyp:mojo_url_type_converters
45 source_set("url_type_converters") {
46   sources = [
47     "url_type_converters.cc",
48     "url_type_converters.h",
49   ]
51   include_dirs = [ "//third_party/mojo/src/" ]
53   deps = [
54     ":common_base",
55     "//base",
56     "//base/third_party/dynamic_annotations",
57     "//url",
58   ]
61 # GYP version: mojo/mojo_base.gyp:mojo_common_unittests
62 test("mojo_common_unittests") {
63   deps = [
64     ":common",
65     "//base",
66     "//base:message_loop_tests",
67     "//mojo/environment:chromium",
68     "//testing/gtest",
69     "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
70     "//third_party/mojo/src/mojo/edk/test:test_support",
71     "//third_party/mojo/src/mojo/public/cpp/bindings",
72     "//third_party/mojo/src/mojo/public/cpp/test_support:test_utils",
73     "//url",
74   ]
76   sources = [
77     "common_type_converters_unittest.cc",
78     "handle_watcher_unittest.cc",
79     "message_pump_mojo_unittest.cc",
80   ]
83 if (!is_component_build) {
84   source_set("tracing_impl") {
85     sources = [
86       "trace_controller_impl.cc",
87       "trace_controller_impl.h",
88       "tracing_impl.cc",
89       "tracing_impl.h",
90     ]
92     deps = [
93       "//base",
94       "//mojo/application/public/cpp",
95       "//mojo/services/tracing:bindings",
96       "//third_party/mojo/src/mojo/public/cpp/bindings",
97     ]
98   }