Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(826)

Side by Side Diff: mojo/common/BUILD.gn

Issue 1890643002: Mojo: add native type mapping for base::FilePath (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@25_typemap
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | mojo/common/common_custom_types.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//mojo/public/tools/bindings/mojom.gni")
5 import("//testing/test.gni") 6 import("//testing/test.gni")
6 7
7 group("common") { 8 group("common") {
8 public_deps = [ 9 public_deps = [
9 ":common_base", 10 ":common_base",
11 ":common_custom_types",
10 ":url_type_converters", 12 ":url_type_converters",
11 ] 13 ]
12 } 14 }
13 15
16 # GYP version: mojo/mojo_base.gyp:mojo_common_custom_types
17 mojom("common_custom_types") {
18 sources = [
19 "common_custom_types.mojom",
20 ]
21 }
22
14 # GYP version: mojo/mojo_base.gyp:mojo_common_lib 23 # GYP version: mojo/mojo_base.gyp:mojo_common_lib
15 component("common_base") { 24 component("common_base") {
16 output_name = "mojo_common_lib" 25 output_name = "mojo_common_lib"
17 26
18 sources = [ 27 sources = [
19 "common_type_converters.cc", 28 "common_type_converters.cc",
20 "common_type_converters.h", 29 "common_type_converters.h",
21 "data_pipe_drainer.cc", 30 "data_pipe_drainer.cc",
22 "data_pipe_drainer.h", 31 "data_pipe_drainer.h",
23 "data_pipe_file_utils.cc", 32 "data_pipe_file_utils.cc",
(...skipping 27 matching lines...) Expand all
51 60
52 deps = [ 61 deps = [
53 ":common_base", 62 ":common_base",
54 "//base", 63 "//base",
55 "//base/third_party/dynamic_annotations", 64 "//base/third_party/dynamic_annotations",
56 "//mojo/public/cpp/bindings", 65 "//mojo/public/cpp/bindings",
57 "//url", 66 "//url",
58 ] 67 ]
59 } 68 }
60 69
70 # GYP version: mojo/mojo_base.gyp:mojo_test_common_custom_types
71 mojom("test_common_custom_types") {
72 sources = [
73 "test_common_custom_types.mojom",
74 ]
75 public_deps = [
76 ":common_custom_types",
77 ]
78 }
79
61 # GYP version: mojo/mojo_base.gyp:mojo_common_unittests 80 # GYP version: mojo/mojo_base.gyp:mojo_common_unittests
62 test("mojo_common_unittests") { 81 test("mojo_common_unittests") {
63 deps = [ 82 deps = [
64 ":common", 83 ":common",
84 ":common_custom_types",
85 ":test_common_custom_types",
65 "//base", 86 "//base",
66 "//base:message_loop_tests", 87 "//base:message_loop_tests",
67 "//base/test:test_support", 88 "//base/test:test_support",
68 "//mojo/edk/test:run_all_unittests", 89 "//mojo/edk/test:run_all_unittests",
69 "//mojo/edk/test:test_support", 90 "//mojo/edk/test:test_support",
70 "//mojo/message_pump", 91 "//mojo/message_pump",
71 "//mojo/public/cpp/bindings", 92 "//mojo/public/cpp/bindings",
72 "//mojo/public/cpp/test_support:test_utils", 93 "//mojo/public/cpp/test_support:test_utils",
73 "//testing/gtest", 94 "//testing/gtest",
74 "//url", 95 "//url",
75 ] 96 ]
76 97
77 sources = [ 98 sources = [
78 # The message_pump tests are so small and some what related to this code 99 # The message_pump tests are so small and some what related to this code
79 # that we put them here. 100 # that we put them here.
80 "../message_pump/handle_watcher_unittest.cc", 101 "../message_pump/handle_watcher_unittest.cc",
81 "../message_pump/message_pump_mojo_unittest.cc", 102 "../message_pump/message_pump_mojo_unittest.cc",
103 "common_custom_types_unittest.cc",
82 "common_type_converters_unittest.cc", 104 "common_type_converters_unittest.cc",
83 ] 105 ]
84 106
85 if (is_linux && !is_component_build) { 107 if (is_linux && !is_component_build) {
86 # This tests dynamically loads libmojo_test_support even in non-component 108 # This tests dynamically loads libmojo_test_support even in non-component
87 # builds. 109 # builds.
88 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] 110 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
89 } 111 }
90 } 112 }
91 113
(...skipping 10 matching lines...) Expand all
102 sources = [ 124 sources = [
103 "../message_pump/handle_watcher_perftest.cc", 125 "../message_pump/handle_watcher_perftest.cc",
104 ] 126 ]
105 127
106 if (is_linux && !is_component_build) { 128 if (is_linux && !is_component_build) {
107 # This test dynamically loads libmojo_test_support even in non-component 129 # This test dynamically loads libmojo_test_support even in non-component
108 # builds. 130 # builds.
109 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] 131 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
110 } 132 }
111 } 133 }
OLDNEW
« no previous file with comments | « no previous file | mojo/common/common_custom_types.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698