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

Side by Side Diff: mojo/edk/embedder/BUILD.gn

Issue 2054513002: Revert of Mojo: Eliminate duplicate C API symbols (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/edk/embedder/embedder.cc » ('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("//build/config/nacl/config.gni") 5 import("//build/config/nacl/config.gni")
6 6
7 source_set("headers") { 7 source_set("headers") {
8 sources = [ 8 sources = [
9 "configuration.h", 9 "configuration.h",
10 "embedder.h", 10 "embedder.h",
(...skipping 19 matching lines...) Expand all
30 "//mojo/edk/system", 30 "//mojo/edk/system",
31 "//components/nacl:nacl", 31 "//components/nacl:nacl",
32 ] 32 ]
33 33
34 sources = [ 34 sources = [
35 "configuration.h", 35 "configuration.h",
36 "embedder.cc", 36 "embedder.cc",
37 "embedder.h", 37 "embedder.h",
38 "embedder_internal.h", 38 "embedder_internal.h",
39 "entrypoints.cc", 39 "entrypoints.cc",
40 "entrypoints.h",
41 40
42 # Test-only code: 41 # Test-only code:
43 # TODO(vtl): It's a little unfortunate that these end up in the same 42 # TODO(vtl): It's a little unfortunate that these end up in the same
44 # component as non-test-only code. In the static build, this code should 43 # component as non-test-only code. In the static build, this code should
45 # hopefully be dead-stripped. 44 # hopefully be dead-stripped.
46 "test_embedder.cc", 45 "test_embedder.cc",
47 "test_embedder.h", 46 "test_embedder.h",
48 ] 47 ]
49 48
50 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] 49 defines = [
50 "MOJO_SYSTEM_IMPL_IMPLEMENTATION",
51 "MOJO_SYSTEM_IMPLEMENTATION",
52 ]
53
54 configs += [ "//mojo/edk/system:system_config" ]
51 55
52 public_deps = [ 56 public_deps = [
53 ":delegates", 57 ":delegates",
54 ":headers", 58 ":headers",
55 ":platform", 59 ":platform",
56 "//base", 60 "//base",
57 "//mojo/public/cpp/system", 61 "//mojo/public/cpp/system",
58 ] 62 ]
59 63
60 if (!is_nacl) { 64 if (!is_nacl) {
(...skipping 26 matching lines...) Expand all
87 "platform_handle_utils_posix.cc", 91 "platform_handle_utils_posix.cc",
88 "platform_handle_utils_win.cc", 92 "platform_handle_utils_win.cc",
89 "platform_handle_vector.h", 93 "platform_handle_vector.h",
90 "platform_shared_buffer.cc", 94 "platform_shared_buffer.cc",
91 "platform_shared_buffer.h", 95 "platform_shared_buffer.h",
92 "scoped_platform_handle.h", 96 "scoped_platform_handle.h",
93 ] 97 ]
94 98
95 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] 99 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ]
96 100
101 configs += [ "//mojo/edk/system:system_config" ]
102
97 public_deps = [ 103 public_deps = [
98 "//mojo/public/cpp/system", 104 "//mojo/public/cpp/system",
99 ] 105 ]
100 106
101 deps = [ 107 deps = [
102 "//base", 108 "//base",
103 ] 109 ]
104 110
105 if (is_android) { 111 if (is_android) {
106 deps += [ "//third_party/ashmem" ] 112 deps += [ "//third_party/ashmem" ]
(...skipping 11 matching lines...) Expand all
118 ":embedder", 124 ":embedder",
119 "//mojo/edk/system", 125 "//mojo/edk/system",
120 ] 126 ]
121 127
122 sources = [ 128 sources = [
123 "process_delegate.h", 129 "process_delegate.h",
124 ] 130 ]
125 131
126 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] 132 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ]
127 133
134 configs += [ "//mojo/edk/system:system_config" ]
135
128 public_deps = [ 136 public_deps = [
129 "//mojo/public/cpp/system", 137 "//mojo/public/cpp/system",
130 ] 138 ]
131 } 139 }
132 140
133 source_set("embedder_unittests") { 141 source_set("embedder_unittests") {
134 testonly = true 142 testonly = true
135 143
136 # TODO: Figure out why this visibility check fails on Android. 144 # TODO: Figure out why this visibility check fails on Android.
137 # visibility = [ "//mojo/edk/system:mojo_system_unittests" ] 145 # visibility = [ "//mojo/edk/system:mojo_system_unittests" ]
138 146
139 sources = [ 147 sources = [
140 "embedder_unittest.cc", 148 "embedder_unittest.cc",
141 "platform_channel_pair_posix_unittest.cc", 149 "platform_channel_pair_posix_unittest.cc",
142 "platform_shared_buffer_unittest.cc", 150 "platform_shared_buffer_unittest.cc",
143 ] 151 ]
144 152
145 deps = [ 153 deps = [
146 "//base", 154 "//base",
147 "//base/test:test_support", 155 "//base/test:test_support",
148 "//mojo/edk/system", 156 "//mojo/edk/system",
149 "//mojo/edk/system:test_utils", 157 "//mojo/edk/system:test_utils",
150 "//mojo/edk/test:test_support", 158 "//mojo/edk/test:test_support",
151 "//testing/gtest", 159 "//testing/gtest",
152 ] 160 ]
153 } 161 }
OLDNEW
« no previous file with comments | « no previous file | mojo/edk/embedder/embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698