Support exporting Mojo bindings for the component build.
The problem is when using typemaps, the source_set for the generated bindings may include headers from components they're linking with. The export macros for those components need to match other files in the component, or else the linker warnings in the bug below are encountered.
A couple of other solutions were attempted first, since they seemed simpler, but they didn't work out:
-make the typemapped types be separate components:
https://codereview.chromium.org/2194973002/. This wouldn't work for the weborigin example as future plans render making it a leaf-node not possible.
-make the other components compile the generated bindings as part of their source:
https://codereview.chromium.org/2209883002/. This solution requires the mojom target to be in the same build file as the component, which doesn't work when the issue is hit with both variants.
BUG=
632082
Committed:
https://crrev.com/b97b473d63918a01716254be849d248a7d3eefa8
Cr-Commit-Position: refs/heads/master@{#410451}