forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bindings: Generate entries for .cpp/.h files from IDL dictionaries in GN
By auto-generating those entries, we can stop requiring people to manually update lists such as |generated_core_dictionary_files| every time Blink's lists of IDL dictionary files change. Since the names of the generated .cpp/.h follow a fixed, specific format that only depends on their respective IDL file's path and file name, we can use GN itself to do some path introspection and generate the file names we want in idl_impl(). While here, change the names of idl_impl()'s required arguments to make their purpose more explicit: it is not immediately obvious that we differentiate unions and callback functions from dictionary files in terms of where the latter are generated and their file names, as well as why idl_impl() only expects non-dictionary files in its outputs list. A good next step would be generating dictionary impl files separately from unions and callbacks to avoid the confusion altogether. Bug: 725996 Change-Id: I41b06e8d71f33b21d77944216fcb07d0557ac47b Reviewed-on: https://chromium-review.googlesource.com/517795 Commit-Queue: Raphael Kubo da Costa (rakuco) <[email protected]> Reviewed-by: Hitoshi Yoshida <[email protected]> Reviewed-by: Kentaro Hara <[email protected]> Reviewed-by: Kenichi Ishibashi <[email protected]> Reviewed-by: Yuki Shiino <[email protected]> Cr-Commit-Position: refs/heads/master@{#476262}
- Loading branch information
Showing
4 changed files
with
51 additions
and
538 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.