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

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

Issue 2039713004: [mojo-edk] Make the Mojo EDK compile under NaCl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments 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 | « mojo/edk/embedder/platform_shared_buffer.cc ('k') | mojo/edk/system/channel_posix.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("//testing/test.gni") 6 import("//testing/test.gni")
6 import("../../../mojo/public/tools/bindings/mojom.gni") 7 import("../../../mojo/public/tools/bindings/mojom.gni")
7 8
8 if (is_android) { 9 if (is_android) {
9 import("//build/config/android/config.gni") 10 import("//build/config/android/config.gni")
10 import("//build/config/android/rules.gni") 11 import("//build/config/android/rules.gni")
11 } 12 }
12 13
13 config("system_config") { 14 config("system_config") {
14 defines = [ 15 defines = [
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 "//mojo/edk/embedder:delegates", 94 "//mojo/edk/embedder:delegates",
94 "//mojo/edk/embedder:platform", 95 "//mojo/edk/embedder:platform",
95 "//mojo/edk/system/ports", 96 "//mojo/edk/system/ports",
96 "//mojo/public/c/system", 97 "//mojo/public/c/system",
97 "//mojo/public/cpp/system", 98 "//mojo/public/cpp/system",
98 ] 99 ]
99 100
100 deps = [ 101 deps = [
101 "//base", 102 "//base",
102 "//base/third_party/dynamic_annotations", 103 "//base/third_party/dynamic_annotations",
103 "//crypto",
104 ] 104 ]
105 105
106 if (!is_nacl) {
107 deps += [ "//crypto" ]
108 }
109
106 if (is_win) { 110 if (is_win) {
107 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), 111 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()),
108 # which is uninteresting. 112 # which is uninteresting.
109 } 113 }
110 114
111 if (is_mac && !is_ios) { 115 if (is_mac && !is_ios) {
112 sources += [ 116 sources += [
113 "mach_port_relay.cc", 117 "mach_port_relay.cc",
114 "mach_port_relay.h", 118 "mach_port_relay.h",
115 ] 119 ]
116 } 120 }
117 121
122 if (is_nacl && !is_nacl_nonsfi) {
123 sources -= [
124 "broker_host_posix.cc",
125 "broker_posix.cc",
126 "channel_posix.cc",
127 ]
128 }
129
118 allow_circular_includes_from = [ "//mojo/edk/embedder" ] 130 allow_circular_includes_from = [ "//mojo/edk/embedder" ]
119 } 131 }
120 132
121 group("tests") { 133 group("tests") {
122 testonly = true 134 testonly = true
123 deps = [ 135 deps = [
124 ":mojo_system_unittests", 136 ":mojo_system_unittests",
125 ] 137 ]
126 138
127 if (!is_ios) { 139 if (!is_ios) {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 ":test_utils", 213 ":test_utils",
202 "//base", 214 "//base",
203 "//base/test:test_support", 215 "//base/test:test_support",
204 "//mojo/edk/system", 216 "//mojo/edk/system",
205 "//mojo/edk/test:run_all_perftests", 217 "//mojo/edk/test:run_all_perftests",
206 "//mojo/edk/test:test_support", 218 "//mojo/edk/test:test_support",
207 "//testing/gtest", 219 "//testing/gtest",
208 ] 220 ]
209 } 221 }
210 } 222 }
OLDNEW
« no previous file with comments | « mojo/edk/embedder/platform_shared_buffer.cc ('k') | mojo/edk/system/channel_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698