-
Notifications
You must be signed in to change notification settings - Fork 6k
Allow builder to skip building examples. #30917
Allow builder to skip building examples. #30917
Conversation
We recently started building the examples in the `examples` directory. However, those examples use the GLFW dependency that not all embedders have. This broke their build. Those builder may now use `--build-embedder-examples` to avoid building the examples. Fixes flutter/flutter#95711
stuartmorgan-g
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| help='Do not build the GLFW shell on platforms where it is built by default.') | ||
| parser.add_argument('--build-embedder-examples', action='store_const', const=True, | ||
| help='Build the example embedders using the Embedder API.') | ||
| parser.add_argument('--no-build-embedder-examples', dest='build_embedder_examples', action='store_const', const=False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the no version of a flag created automatically when it's a boolean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. I just followed the example of the --no-build-glfw-shell flag above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently, it isn't: error: unrecognized arguments: --no-build-embedder-examples when I remove it. Apparently, it is possible in Python 3.9 according to the internet. Leaving it as is.
…1034) * 'Update Dart SDK to ac38a9d' * Allow builder to skip building examples. (#30917) * 'add branch flutter-2.8-candidate.16 to enabled_branches in .ci.yaml' * remove unnecessary ref to flutter candidate * updating license hash Co-authored-by: Kevin Chisholm <[email protected]> Co-authored-by: Chinmay Garde <[email protected]>
We recently started building the examples in the
examplesdirectory. However,those examples use the GLFW dependency that not all embedders have. This broke
their build. Those builder may now use
--build-embedder-examplesto avoidbuilding the examples.
Fixes flutter/flutter#95711