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

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

Issue 814543006: Move //mojo/{public, edk} underneath //third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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 | « mojo/edk/DEPS ('k') | mojo/edk/embedder/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 import("../mojo_edk.gni")
6
7 mojo_edk_source_set("embedder") {
8 # This isn't really a standalone target; it must be linked into the
9 # mojo_system_impl component.
10 mojo_edk_visibility = [ "mojo/edk/system" ]
11
12 sources = [
13 "channel_info_forward.h",
14 "channel_init.cc",
15 "channel_init.h",
16 "configuration.h",
17 "embedder.cc",
18 "embedder.h",
19 "embedder_internal.h",
20 "entrypoints.cc",
21
22 # Test-only code:
23 # TODO(vtl): It's a little unfortunate that these end up in the same
24 # component as non-test-only code. In the static build, this code should
25 # hopefully be dead-stripped.
26 "test_embedder.cc",
27 "test_embedder.h",
28 ]
29
30 defines = [
31 "MOJO_SYSTEM_IMPL_IMPLEMENTATION",
32 "MOJO_SYSTEM_IMPLEMENTATION",
33 ]
34
35 mojo_edk_configs = [ "mojo/edk/system:system_config" ]
36
37 public_deps = [
38 ":platform",
39 ]
40
41 mojo_sdk_public_deps = [ "mojo/public/cpp/system" ]
42
43 deps = [
44 "//base",
45 ]
46 }
47
48 mojo_edk_source_set("platform") {
49 # This isn't really a standalone target; it must be linked into the
50 # mojo_system_impl component.
51 visibility = [ ":embedder" ]
52
53 mojo_edk_visibility = [ "mojo/edk/system" ]
54
55 sources = [
56 "platform_channel_pair.cc",
57 "platform_channel_pair.h",
58 "platform_channel_pair_posix.cc",
59 "platform_channel_pair_win.cc",
60 "platform_channel_utils_posix.cc",
61 "platform_channel_utils_posix.h",
62 "platform_handle.cc",
63 "platform_handle.h",
64 "platform_handle_utils.h",
65 "platform_handle_utils_posix.cc",
66 "platform_handle_utils_win.cc",
67 "platform_handle_vector.h",
68 "platform_shared_buffer.h",
69 "platform_support.h",
70 "scoped_platform_handle.h",
71 "simple_platform_shared_buffer.cc",
72 "simple_platform_shared_buffer.h",
73 "simple_platform_shared_buffer_android.cc",
74 "simple_platform_shared_buffer_posix.cc",
75 "simple_platform_shared_buffer_win.cc",
76 "simple_platform_support.cc",
77 "simple_platform_support.h",
78 ]
79
80 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ]
81
82 mojo_edk_configs = [ "mojo/edk/system:system_config" ]
83
84 deps = [
85 "//base",
86 ]
87
88 if (is_android) {
89 deps += [ "//third_party/ashmem" ]
90 }
91 }
92
93 mojo_edk_source_set("embedder_unittests") {
94 testonly = true
95 mojo_edk_visibility = [ "mojo/edk/system:mojo_system_unittests" ]
96
97 sources = [
98 "embedder_unittest.cc",
99 "platform_channel_pair_posix_unittest.cc",
100 "simple_platform_shared_buffer_unittest.cc",
101 ]
102
103 deps = [
104 "//base",
105 "//base/test:test_support",
106 "//testing/gtest",
107 ]
108
109 mojo_edk_deps = [
110 "mojo/edk/test:test_support",
111 "mojo/edk/system",
112 "mojo/edk/system:test_utils",
113 ]
114 }
OLDNEW
« no previous file with comments | « mojo/edk/DEPS ('k') | mojo/edk/embedder/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698