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
samples: alexa_gadget: Use custom_command for proto compilation #3392
samples: alexa_gadget: Use custom_command for proto compilation #3392
Conversation
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.
Minor improvement suggested.
@nordic-auko Is the inclusion and compilation something that should be moved out of the sample directory perhaps, so that it would be easier for the application to include this.
Now I guess the application will have to copy this cmakelists.txt?
Yes, currently an application that wants to add support for the Alexa Gadgets functionality needs to copy the The profile was put under the sample because there is no I hesitated to combine the Gadgets service.c and profile.c into one service.c file because this Profile dictates a number of things that doesn't make sense to put under It is possible to combine the service.c and profile.c file into one service under As a side note regarding protobuf compilation, it could be worthwhile to have a cmake command for this, same as |
@nordic-auko We have profiles in the services folder. So it could be moved there, and as separate source files. If it is easier can also make a subfolder under services for alex_profile and have the cmakelists.txt there. |
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.
with changed code, please switch to use: WORKING_DIRECTORY
. as the previous reason for using cmake -E chdir
no longer applies with new code.
Thanks, I did not realize there was a hogp.c there. |
c7bc98e
to
442d7fc
Compare
Updated as suggested |
Closed by accident.. |
442d7fc
to
7efe832
Compare
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 good.
Two small suggestions, but nothing blocking.
7efe832
to
5c08f97
Compare
Change CMake protobuf compile invocation from custom_target to custom_command. This improves dependency handling of .proto files and solves compile issue seen in SES. Signed-off-by: Audun Korneliussen <audun.korneliussen@nordicsemi.no>
5c08f97
to
8c02734
Compare
Change CMake protobuf compile invocation from custom_target
to custom_command. This improves dependency handling of
.proto files and solves compile issue seen in SES.
Signed-off-by: Audun Korneliussen audun.korneliussen@nordicsemi.no