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")
10 ":url_type_converters",
14 # GYP version: mojo/mojo_base.gyp:mojo_common_lib
15 component("common_base") {
16 output_name = "mojo_common_lib"
19 "common_type_converters.cc",
20 "common_type_converters.h",
21 "data_pipe_file_utils.cc",
26 "message_pump_mojo.cc",
27 "message_pump_mojo.h",
28 "message_pump_mojo_handler.h",
34 "weak_interface_ptr_set.h",
37 defines = [ "MOJO_COMMON_IMPLEMENTATION" ]
41 "//base/third_party/dynamic_annotations",
42 "//third_party/mojo/src/mojo/public/c/system:for_component",
46 # GYP version: mojo/mojo_base.gyp:mojo_url_type_converters
47 source_set("url_type_converters") {
49 "url_type_converters.cc",
50 "url_type_converters.h",
53 include_dirs = [ "//third_party/mojo/src/" ]
58 "//base/third_party/dynamic_annotations",
59 "//third_party/mojo/src/mojo/public/cpp/bindings",
64 # GYP version: mojo/mojo_base.gyp:mojo_common_unittests
65 test("mojo_common_unittests") {
69 "//base:message_loop_tests",
70 "//base/test:test_support",
71 "//mojo/environment:chromium",
73 "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
74 "//third_party/mojo/src/mojo/edk/test:test_support",
75 "//third_party/mojo/src/mojo/public/cpp/bindings",
76 "//third_party/mojo/src/mojo/public/cpp/test_support:test_utils",
81 "common_type_converters_unittest.cc",
82 "handle_watcher_unittest.cc",
83 "message_pump_mojo_unittest.cc",
87 if (!is_component_build) {
88 source_set("tracing_impl") {
90 "trace_controller_impl.cc",
91 "trace_controller_impl.h",
98 "//mojo/application/public/cpp",
99 "//mojo/services/tracing:bindings",
100 "//third_party/mojo/src/mojo/public/cpp/bindings",