Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow builder to skip building examples. #30917

Merged
merged 1 commit into from
Jan 19, 2022

Conversation

chinmaygarde
Copy link
Member

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

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
Copy link
Contributor

@stuartmorgan stuartmorgan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -503,6 +506,10 @@ def parse_args(args):
help='Build the GLFW shell on supported platforms where it is not built by default.')
parser.add_argument('--no-build-glfw-shell', dest='build_glfw_shell', action='store_const', const=False,
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,
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Member Author

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.

@chinmaygarde chinmaygarde added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Jan 19, 2022
@fluttergithubbot fluttergithubbot merged commit db06032 into flutter:main Jan 19, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 19, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 19, 2022
itsjustkevin pushed a commit to itsjustkevin/engine that referenced this pull request Jan 24, 2022
itsjustkevin pushed a commit to itsjustkevin/engine that referenced this pull request Jan 25, 2022
itsjustkevin pushed a commit to itsjustkevin/engine that referenced this pull request Jan 25, 2022
itsjustkevin added a commit that referenced this pull request Jan 25, 2022
…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]>
@chinmaygarde chinmaygarde deleted the build_embedder_examples branch July 7, 2022 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[engine] All Linux builds default to building GLFW (X11 dep)
3 participants