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

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

Issue 494523004: GN: Build rules and fixes for (almost) all mojo unittest targets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « mojo/services/public/cpp/surfaces/tests/BUILD.gn ('k') | no next file » | 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 config("system_config") { 5 config("system_config") {
6 defines = [ 6 defines = [
7 # Ensures that dependent projects import the core functions on Windows. 7 # Ensures that dependent projects import the core functions on Windows.
8 "MOJO_USE_SYSTEM_IMPL", 8 "MOJO_USE_SYSTEM_IMPL",
9 ] 9 ]
10 } 10 }
11 11
12 component("system") { 12 component("system") {
13 output_name = "mojo_system_impl" 13 output_name = "mojo_system_impl"
14 14
15 deps = [
16 "//base",
17 "//base/third_party/dynamic_annotations",
18 "//mojo/embedder",
19 ]
20
21 defines = [
22 "MOJO_SYSTEM_IMPL_IMPLEMENTATION",
23 "MOJO_SYSTEM_IMPLEMENTATION",
24 ]
25
26 all_dependent_configs = [ ":system_config" ]
27
15 sources = [ 28 sources = [
16 # Should there be a separate "embedder" target?
17 "../embedder/channel_init.cc",
18 "../embedder/channel_init.h",
19 "../embedder/embedder.cc",
20 "../embedder/embedder.h",
21 "../embedder/platform_channel_pair.cc",
22 "../embedder/platform_channel_pair.h",
23 "../embedder/platform_channel_pair_posix.cc",
24 "../embedder/platform_channel_pair_win.cc",
25 "../embedder/platform_channel_utils_posix.cc",
26 "../embedder/platform_channel_utils_posix.h",
27 "../embedder/platform_handle.cc",
28 "../embedder/platform_handle.h",
29 "../embedder/platform_handle_utils.h",
30 "../embedder/platform_handle_utils_posix.cc",
31 "../embedder/platform_handle_utils_win.cc",
32 "../embedder/platform_handle_vector.h",
33 "../embedder/platform_shared_buffer.h",
34 "../embedder/platform_support.h",
35 "../embedder/scoped_platform_handle.h",
36 "../embedder/simple_platform_shared_buffer.cc",
37 "../embedder/simple_platform_shared_buffer.h",
38 "../embedder/simple_platform_shared_buffer_posix.cc",
39 "../embedder/simple_platform_shared_buffer_win.cc",
40 "../embedder/simple_platform_support.cc",
41 "../embedder/simple_platform_support.h",
42 "channel.cc", 29 "channel.cc",
43 "channel.h", 30 "channel.h",
44 "constants.h", 31 "constants.h",
45 "core.cc", 32 "core.cc",
46 "core.h", 33 "core.h",
47 "data_pipe.cc", 34 "data_pipe.cc",
48 "data_pipe.h", 35 "data_pipe.h",
49 "data_pipe_consumer_dispatcher.cc", 36 "data_pipe_consumer_dispatcher.cc",
50 "data_pipe_consumer_dispatcher.h", 37 "data_pipe_consumer_dispatcher.h",
51 "data_pipe_producer_dispatcher.cc", 38 "data_pipe_producer_dispatcher.cc",
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 "shared_buffer_dispatcher.cc", 73 "shared_buffer_dispatcher.cc",
87 "shared_buffer_dispatcher.h", 74 "shared_buffer_dispatcher.h",
88 "simple_dispatcher.cc", 75 "simple_dispatcher.cc",
89 "simple_dispatcher.h", 76 "simple_dispatcher.h",
90 "transport_data.cc", 77 "transport_data.cc",
91 "transport_data.h", 78 "transport_data.h",
92 "waiter.cc", 79 "waiter.cc",
93 "waiter.h", 80 "waiter.h",
94 "waiter_list.cc", 81 "waiter_list.cc",
95 "waiter_list.h", 82 "waiter_list.h",
96 # Test-only code: 83 ]
97 # TODO(vtl): It's a little unfortunate that these end up in the same 84 }
98 # component as non-test-only code. In the static build, this code should 85
99 # hopefully be dead-stripped. 86 # GYP version: mojo/mojo_base.gyp:mojo_system_unittests
100 "../embedder/test_embedder.cc", 87 test("mojo_system_unittests") {
101 "../embedder/test_embedder.h", 88 deps = [
89 ":system",
90 "//base",
91 "//mojo/common/test:test_support",
92 "//mojo/embedder:embedder_unittests",
93 "//testing/gtest",
102 ] 94 ]
103 95
104 defines = [ 96 sources = [
105 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", 97 "channel_unittest.cc",
106 "MOJO_SYSTEM_IMPLEMENTATION", 98 "core_unittest.cc",
107 ] 99 "core_test_base.cc",
108 100 "core_test_base.h",
109 all_dependent_configs = [ ":system_config" ] 101 "data_pipe_unittest.cc",
110 102 "dispatcher_unittest.cc",
111 deps = [ 103 "local_data_pipe_unittest.cc",
112 "//base", 104 "memory_unittest.cc",
113 "//base/third_party/dynamic_annotations", 105 "message_pipe_dispatcher_unittest.cc",
106 "message_pipe_unittest.cc",
107 "multiprocess_message_pipe_unittest.cc",
108 "options_validation_unittest.cc",
109 "platform_handle_dispatcher_unittest.cc",
110 "raw_channel_unittest.cc",
111 "remote_message_pipe_unittest.cc",
112 "run_all_unittests.cc",
113 "shared_buffer_dispatcher_unittest.cc",
114 "simple_dispatcher_unittest.cc",
115 "test_utils.cc",
116 "test_utils.h",
117 "waiter_list_unittest.cc",
118 "waiter_test_utils.cc",
119 "waiter_test_utils.h",
120 "waiter_unittest.cc",
114 ] 121 ]
115 } 122 }
OLDNEW
« no previous file with comments | « mojo/services/public/cpp/surfaces/tests/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698