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

Support building CHIP with GN #1456

Merged
merged 60 commits into from
Jul 9, 2020
Merged

Conversation

mspang
Copy link
Contributor

@mspang mspang commented Jul 7, 2020

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

@lgtm-com
Copy link

lgtm-com bot commented Jul 7, 2020

This pull request introduces 4 alerts when merging 908aac8 into 8119459 - view on LGTM.com

new alerts:

  • 4 for Except block handles 'BaseException'

Copy link
Contributor

@woody-apple woody-apple left a 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?

build/chip_build.gni Outdated Show resolved Hide resolved
.gitignore Show resolved Hide resolved
@woody-apple
Copy link
Contributor

This pull request introduces 4 alerts when merging 908aac8 into 8119459 - view on LGTM.com

new alerts:

  • 4 for Except block handles 'BaseException'

@mspang ?

@woody-apple
Copy link
Contributor

@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.
@CLAassistant
Copy link

CLAassistant commented Jul 7, 2020

CLA assistant check
All committers have signed the CLA.

@mspang
Copy link
Contributor Author

mspang commented Jul 7, 2020

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?

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

@turon turon left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@mspang
Copy link
Contributor Author

mspang commented Jul 8, 2020

Added github workflows for standalone.

@mspang mspang requested a review from woody-apple July 8, 2020 11:42
mspang added 2 commits July 8, 2020 14:31
Remove a broken link that was left behind after moving build files to //gn.
@rwalker-apple
Copy link
Contributor

nice work

@woody-apple woody-apple merged commit efa630b into project-chip:master Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

land optimized build system
9 participants