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

Linux platform example app includes SHELL unconditionally. #7205

Merged
merged 4 commits into from
May 27, 2021

Conversation

andy31415
Copy link
Contributor

Force defines and linkages as such, otherwise compilation with GN
without 'use shell' does not work.

TODO as followup: if shell is really optional, build it as such in linux
as well.

Problem

Vanilla build with GN fails with:

ERROR at //examples/platform/linux/AppMain.cpp:28:11: Include not allowed.
#include <lib/shell/Engine.h>
          ^-----------------
It is not in any dependency of
  //examples/platform/linux:app-main
The include file is in the target(s):
  //src/lib/shell:shell_core

Change overview

Make linux always compile with shell support. At least compilation passes

Testing

Success in compiling all with GN (failure is gone, code compiles)

Force defines and linkages as such, otherwise compilation with GN
without 'use shell' does not work.

TODO as followup: if shell is really optional, build it as such in linux
as well.
@bzbarsky-apple
Copy link
Contributor

If we check this in then we don't need #7204, right?

@mspang
Copy link
Contributor

mspang commented May 27, 2021

If we check this in then we don't need #7204, right?

Exactly one of #7204, #7205, and #7206 is needed.

andy31415 added 2 commits May 27, 2021 17:44
This reverts commit 7a172f3.
Apparently link checker is not fully working and this broke doxygen.
@boring-cyborg boring-cyborg bot added the documentation Improvements or additions to documentation label May 27, 2021
@andy31415 andy31415 merged commit 09bfa9d into project-chip:master May 27, 2021
gjc13 added a commit to gjc13/connectedhomeip that referenced this pull request May 28, 2021
gjc13 added a commit to gjc13/connectedhomeip that referenced this pull request May 28, 2021
gjc13 added a commit to gjc13/connectedhomeip that referenced this pull request May 28, 2021
nikita-s-wrk pushed a commit to nikita-s-wrk/connectedhomeip that referenced this pull request Sep 23, 2021
…hip#7205)

* Linux platform example app includes SHELL unconditionally.

Force defines and linkages as such, otherwise compilation with GN
without 'use shell' does not work.

TODO as followup: if shell is really optional, build it as such in linux
as well.

* remove the enable shell arg alltogether - it does not work because includes are already there

* Revert "Fix relative path for the markdown link (project-chip#7202)"

This reverts commit 7a172f3.
Apparently link checker is not fully working and this broke doxygen.
@andy31415 andy31415 deleted the linux_gn_with_shell branch October 28, 2021 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants