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

Side by Side Diff: mojo/public/interfaces/bindings/tests/BUILD.gn

Issue 2593413002: Add options to let mojom targets override their component deps. (Closed)
Patch Set: Fix ios Created 3 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
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("../../../tools/bindings/mojom.gni") 5 import("../../../tools/bindings/mojom.gni")
6 6
7 mojom("test_interfaces") { 7 mojom("test_interfaces") {
8 testonly = true 8 testonly = true
9 sources = [ 9 sources = [
10 "math_calculator.mojom", 10 "math_calculator.mojom",
(...skipping 20 matching lines...) Expand all
31 ] 31 ]
32 } 32 }
33 33
34 component("test_export_component") { 34 component("test_export_component") {
35 testonly = true 35 testonly = true
36 deps = [ 36 deps = [
37 ":test_export", 37 ":test_export",
38 ] 38 ]
39 } 39 }
40 40
41 if (!is_ios) {
42 component("test_export_blink_component") {
43 testonly = true
44 deps = [
45 ":test_export_blink",
46 ]
47 }
48 }
49
41 mojom("test_export") { 50 mojom("test_export") {
42 testonly = true 51 testonly = true
43 sources = [ 52 sources = [
44 "test_export.mojom", 53 "test_export.mojom",
45 ] 54 ]
46 export_class_attribute = "MOJO_TEST_EXPORT" 55 export_class_attribute = "MOJO_TEST_EXPORT"
47 export_define = "MOJO_TEST_IMPLEMENTATION=1" 56 export_define = "MOJO_TEST_IMPLEMENTATION=1"
48 export_header = "mojo/public/cpp/bindings/tests/mojo_test_export.h" 57 export_header = "mojo/public/cpp/bindings/tests/mojo_test_export.h"
58 if (!is_ios) {
59 export_class_attribute_blink = "MOJO_TEST_BLINK_EXPORT"
60 export_define_blink = "MOJO_TEST_BLINK_IMPLEMENTATION=1"
61 export_header_blink =
62 "mojo/public/cpp/bindings/tests/mojo_test_blink_export.h"
63 }
64 visibility = [
65 ":test_export_component",
66 ":test_export_blink_component",
67 ]
68 }
69
70 mojom("test_exported_import") {
71 testonly = true
72 sources = [
73 "test_import.mojom",
74 ]
75 public_deps = [
76 ":test_export",
77 ]
78
79 overridden_deps = [ ":test_export" ]
80 component_deps = [ ":test_export_component" ]
81 if (!is_ios) {
82 overridden_deps_blink = [ ":test_export" ]
83 component_deps_blink = [ ":test_export_blink_component" ]
84 }
49 } 85 }
50 86
51 mojom("test_mojom_import") { 87 mojom("test_mojom_import") {
52 testonly = true 88 testonly = true
53 sources = [ 89 sources = [
54 "sample_import.mojom", 90 "sample_import.mojom",
55 ] 91 ]
56 } 92 }
57 93
58 mojom("test_mojom_import_wrapper") { 94 mojom("test_mojom_import_wrapper") {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 ] 166 ]
131 } 167 }
132 168
133 mojom("test_no_sources") { 169 mojom("test_no_sources") {
134 testonly = true 170 testonly = true
135 171
136 public_deps = [ 172 public_deps = [
137 ":test_interfaces", 173 ":test_interfaces",
138 ] 174 ]
139 } 175 }
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/tests/mojo_test_blink_export.h ('k') | mojo/public/interfaces/bindings/tests/test_export.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698