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

Ensure That the QRCode Library Is Built before Recursive Targets Are Run #194

Merged

Conversation

gerickson
Copy link
Contributor

Problem

It is possible for recursive targets for the build system to attempt to run things in tests before the QRCode library is built.

Summary of Changes

This adds a dependency on all recursive targets on the QRCode library.

Fixes #191

@@ -48,4 +48,6 @@ dist_libQrCode_a_HEADERS = \
QRCodeSetupPayloadParser.h \
$(NULL)

$(RECURSIVE_TARGETS): $(lib_LIBRARIES)
Copy link
Contributor

Choose a reason for hiding this comment

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

can you translate this into human form? does this "export" a recursive target to the rest of the make system, or?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This basically says that before make executes all-recursive, dist-recursive, check-recursive, *-recursive (all of which operate on SUBDIRS), that the lib_LIBRARIES targets are up to date.

Copy link
Contributor

Choose a reason for hiding this comment

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

the tests/... subdir here doesn't use the .a file, though, right?

Copy link

@hawk248 hawk248 left a comment

Choose a reason for hiding this comment

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

👍

@woody-apple woody-apple merged commit 5fca16f into project-chip:master Apr 1, 2020
@gerickson gerickson deleted the user/gerickson/github-issue-191 branch April 1, 2020 17:47
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.

Need to Ensure QR Code Unit Tests Are Not Built before the Library It Depends on
5 participants