-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Support building CHIP with GN #1456
Conversation
This uses build infrastructure from pigweed to enable building CHIP with GN.
This pull request introduces 4 alerts when merging 908aac8 into 8119459 - view on LGTM.com new alerts:
|
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.
This looks great, can we just move some directories around, as well as - are there any scripts + docs in place to run the main build + tests, so we can hook this up to CI?
@mspang ? |
@mspang Main feedback for me is, either some docs for how to build, and some scripts to help :) Once those are in, I'm happy to make the GitHub workflow to help out too. |
And use the secondary_source feature to still allow loading them via //build. This breaks using ${chip_root} in superproject builds, but that was unnecessary anyway. We should try to unwind this later as it causes some confusion about what path to specify.
There is a script ./gn_build.sh at the top level to help get started. Looking at the github workflows now. |
The usual case is to source activate.sh, not bootstrap.sh, so move that first. bootstrap.sh is only needed after an update.
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.
Looks great, thanks!
Added github workflows for standalone. |
Remove a broken link that was left behind after moving build files to //gn.
nice work |
This was unmerged by a recent commit.
Problem
Builds (especially configuration, incrementals) can be much faster.
Summary of Changes
A port of CHIP's automake build to the GN build system for Linux, Mac, & nRF5 example app.
fixes #1443