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

Unified Diff: mojo/edk/embedder/BUILD.gn

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move to mojo::edk namespace in preparation for runtim flag Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: mojo/edk/embedder/BUILD.gn
diff --git a/third_party/mojo/src/mojo/edk/embedder/BUILD.gn b/mojo/edk/embedder/BUILD.gn
similarity index 73%
copy from third_party/mojo/src/mojo/edk/embedder/BUILD.gn
copy to mojo/edk/embedder/BUILD.gn
index b3144f099b019335e2492064e5938b4bed036b81..ee3006e4f8d619bd3c05139f137caca026f7e9d7 100644
--- a/third_party/mojo/src/mojo/edk/embedder/BUILD.gn
+++ b/mojo/edk/embedder/BUILD.gn
@@ -7,10 +7,12 @@ import("../mojo_edk.gni")
mojo_edk_source_set("embedder") {
# This isn't really a standalone target; it must be linked into the
# mojo_system_impl component.
- mojo_edk_visibility = [ "mojo/edk/system" ]
+ visibility = [
+ "//components/nacl:nacl",
+ "//mojo/edk/system",
+ ]
sources = [
- "channel_info_forward.h",
"configuration.h",
"embedder.cc",
"embedder.h",
@@ -31,17 +33,15 @@ mojo_edk_source_set("embedder") {
"MOJO_SYSTEM_IMPLEMENTATION",
]
- mojo_edk_configs = [ "mojo/edk/system:system_config" ]
+ configs = [ "//mojo/edk/system:system_config" ]
public_deps = [
":delegates",
":platform",
+ "//third_party/mojo/src/mojo/public/cpp/system",
+ "//third_party/mojo/src/mojo/public/platform/native:system_impl_private_api",
]
- mojo_sdk_deps = [ "mojo/public/platform/native:system_impl_private_api" ]
-
- mojo_sdk_public_deps = [ "mojo/public/cpp/system" ]
-
deps = [
"//base",
]
@@ -50,9 +50,10 @@ mojo_edk_source_set("embedder") {
mojo_edk_source_set("platform") {
# This isn't really a standalone target; it must be linked into the
# mojo_system_impl component.
- visibility = [ ":embedder" ]
-
- mojo_edk_visibility = [ "mojo/edk/system" ]
+ visibility = [
+ ":embedder",
+ "//mojo/edk/system",
+ ]
sources = [
"platform_channel_pair.cc",
@@ -81,12 +82,15 @@ mojo_edk_source_set("platform") {
defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ]
- mojo_edk_configs = [ "mojo/edk/system:system_config" ]
+ configs = [ "//mojo/edk/system:system_config" ]
- mojo_sdk_public_deps = [ "mojo/public/cpp/system" ]
+ public_deps = [
+ "//third_party/mojo/src/mojo/public/cpp/system",
+ ]
deps = [
"//base",
+ "//crypto",
]
if (is_android) {
@@ -97,28 +101,27 @@ mojo_edk_source_set("platform") {
mojo_edk_source_set("delegates") {
# This isn't really a standalone target; it must be linked into the
# mojo_system_impl component.
- visibility = [ ":embedder" ]
-
- mojo_edk_visibility = [ "mojo/edk/system" ]
+ visibility = [
+ ":embedder",
+ "//mojo/edk/system",
+ ]
sources = [
- "master_process_delegate.h",
"process_delegate.h",
- "process_type.h",
- "slave_info.h",
- "slave_process_delegate.h",
]
defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ]
- mojo_edk_configs = [ "mojo/edk/system:system_config" ]
+ configs = [ "//mojo/edk/system:system_config" ]
- mojo_sdk_public_deps = [ "mojo/public/cpp/system" ]
+ public_deps = [
+ "//third_party/mojo/src/mojo/public/cpp/system",
+ ]
}
mojo_edk_source_set("embedder_unittests") {
testonly = true
- mojo_edk_visibility = [ "mojo/edk/system:mojo_system_unittests" ]
+ visibility = [ "//mojo/edk/system:mojo_system_unittests" ]
sources = [
"embedder_unittest.cc",
@@ -129,12 +132,9 @@ mojo_edk_source_set("embedder_unittests") {
deps = [
"//base",
"//base/test:test_support",
+ "//mojo/edk/system",
+ "//mojo/edk/system:test_utils",
+ "//mojo/edk/test:test_support",
"//testing/gtest",
]
-
- mojo_edk_deps = [
- "mojo/edk/test:test_support",
- "mojo/edk/system",
- "mojo/edk/system:test_utils",
- ]
}

Powered by Google App Engine
This is Rietveld 408576698