|
Mojo: Simplify typemap usage.
Previously, to use native types in mojo interfaces, the correct typemaps
needed to be set on each target depending on the mojom target containing
that interface. Additionally, each variant required a duplicate set of
mojom targets for all the mojom files required by that variant.
This CL changes the mojom GN template to generate a mojom target for
each variant, applying the appropriate typemaps when generating the
bindings. This is controlled by mojo bindings configurations that
aggregate all of the typemaps for that configuration and specify the
variant for that configuration. To accommodate this change, this also
changes the typemap format to be one GN-format file per mojom file,
setting variables that specify the typemap. At build time, the typemap
information and any dependencies are used to generate a JSON typemap of
the old JSON format containing all typemaps for the bindings being
generated as well as their dependencies.
This makes minor changes to typemap support in GYP. With this CL,
typemaps can be specified as GYP variables instead of directly
specifying them in extra generator command line arguments.
CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel
BUG= 596202
Committed: https://crrev.com/b54ee6567f200280a284fc466706962fa810e398
Cr-Commit-Position: refs/heads/master@{#388164}
Total comments: 18
Total comments: 21
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+927 lines, -665 lines) |
Patch |
 |
M |
components/mus/public/interfaces/BUILD.gn
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/password_manager.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/password_manager/content/public/interfaces/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/common/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/content_common_mojo_bindings.gyp
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/common/BUILD.gn
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
A |
gpu/command_buffer/common/capabilities.typemap
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
A |
gpu/command_buffer/common/command_buffer.typemap
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
A |
gpu/command_buffer/common/mailbox.typemap
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
A |
gpu/command_buffer/common/mailbox_holder.typemap
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
D |
gpu/command_buffer/common/mojo.typemap
|
View
|
|
1 chunk |
+0 lines, -62 lines |
0 comments
|
Download
|
 |
A |
gpu/command_buffer/common/sync_token.typemap
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
A |
gpu/command_buffer/common/typemaps.gni
|
View
|
1
2
3
4
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
A |
gpu/command_buffer/common/value_state.typemap
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
gpu/ipc/common/BUILD.gn
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
mash/wm/public/interfaces/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/android/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/mojo_edk_tests.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
mojo/mojo_public.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
8 chunks |
+25 lines, -51 lines |
0 comments
|
Download
|
 |
M |
mojo/mojom_bindings_generator.gypi
|
View
|
1
2
3
4
5
|
5 chunks |
+22 lines, -14 lines |
0 comments
|
Download
|
 |
M |
mojo/mojom_bindings_generator_explicit.gypi
|
View
|
1
2
3
4
5
6
|
4 chunks |
+21 lines, -2 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+13 lines, -16 lines |
0 comments
|
Download
|
 |
A |
mojo/public/cpp/bindings/tests/blink_typemaps.gni
|
View
|
1
2
3
4
5
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/public/cpp/bindings/tests/chromium_typemaps.gni
|
View
|
1
2
3
4
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/pickle_unittest.cc
|
View
|
|
7 chunks |
+27 lines, -29 lines |
0 comments
|
Download
|
 |
A |
mojo/public/cpp/bindings/tests/rect_blink.typemap
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/rect_blink_traits.h
|
View
|
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
A |
mojo/public/cpp/bindings/tests/rect_chromium.typemap
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/rect_chromium_traits.h
|
View
|
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/struct_traits_unittest.cc
|
View
|
|
9 chunks |
+18 lines, -18 lines |
0 comments
|
Download
|
 |
A |
mojo/public/cpp/bindings/tests/struct_with_traits.typemap
|
View
|
1
2
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/struct_with_traits_impl.h
|
View
|
1
2
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/public/cpp/bindings/tests/test_native_types_blink.typemap
|
View
|
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/public/cpp/bindings/tests/test_native_types_chromium.typemap
|
View
|
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/wtf_types_unittest.cc
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
mojo/public/interfaces/bindings/tests/BUILD.gn
|
View
|
1
2
3
4
5
|
4 chunks |
+56 lines, -58 lines |
0 comments
|
Download
|
 |
D |
mojo/public/interfaces/bindings/tests/blink_test.typemap
|
View
|
|
1 chunk |
+0 lines, -23 lines |
0 comments
|
Download
|
 |
D |
mojo/public/interfaces/bindings/tests/chromium_test.typemap
|
View
|
|
1 chunk |
+0 lines, -23 lines |
0 comments
|
Download
|
 |
D |
mojo/public/interfaces/bindings/tests/struct_with_traits.typemap
|
View
|
|
1 chunk |
+0 lines, -17 lines |
0 comments
|
Download
|
 |
D |
mojo/public/interfaces/bindings/tests/test_variant.mojom
|
View
|
1
2
|
1 chunk |
+0 lines, -17 lines |
0 comments
|
Download
|
 |
D |
mojo/public/interfaces/bindings/tests/test_variant_import.mojom
|
View
|
1
2
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
A |
mojo/public/tools/bindings/blink_bindings_configuration.gni
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/public/tools/bindings/chromium_bindings_configuration.gni
|
View
|
1
2
3
4
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/public/tools/bindings/format_typemap_generator_args.py
|
View
|
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/public/tools/bindings/generate_type_mappings.py
|
View
|
1
2
3
4
5
|
1 chunk |
+123 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/tools/bindings/mojom.gni
|
View
|
1
|
3 chunks |
+278 lines, -191 lines |
0 comments
|
Download
|
 |
M |
mojo/public/tools/bindings/mojom_get_generator_typemap_args.py
|
View
|
|
1 chunk |
+0 lines, -21 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/BUILD.gn
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+10 lines, -23 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/blink.gyp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
url/mojo/BUILD.gn
|
View
|
|
3 chunks |
+0 lines, -9 lines |
0 comments
|
Download
|
 |
M |
url/mojo/gurl.typemap
|
View
|
|
1 chunk |
+10 lines, -16 lines |
0 comments
|
Download
|
 |
M |
url/mojo/origin.typemap
|
View
|
|
1 chunk |
+10 lines, -16 lines |
0 comments
|
Download
|
 |
A |
url/mojo/typemaps.gni
|
View
|
1
2
3
4
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
url/url.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+10 lines, -9 lines |
0 comments
|
Download
|
Total messages: 59 (37 generated)
|