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

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

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

Powered by Google App Engine
This is Rietveld 408576698