-
Notifications
You must be signed in to change notification settings - Fork 27
zblue: propagate headers to libbluetooth via nuttx_link_libraries. #47
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
Conversation
|
|
||
| target_link_libraries(zblue PRIVATE zblue_headers) | ||
| # PUBLIC so dependents (e.g. libbluetooth via nuttx_add_dependencies + nuttx_link_libraries) get INTERFACE include dirs | ||
| target_link_libraries(zblue PUBLIC zblue_headers) |
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.
why change from PRIVATE to PUBLIC ?
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.
PUBLIC propagates INTERFACE to dependents; PRIVATE keeps headers internal.
zblue/CMakeLists.default.txt
Outdated
| ${SYS_COMPAT_DIR} | ||
| ${ZBLUE_DIR}/port/include/zephyr | ||
| ${ZBLUE_DIR}/port/include | ||
| ${ZBLUE_DIR}/include/zephyr/sys |
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.
was the sys head in port missing?
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.
have removed
|
Hi @xuxin930 帮忙 review 一下 |
bug: v/85506 Add Zephyr sys/settings include paths and link zblue to zblue_headers with PUBLIC so dependents like libbluetooth get include dirs via nuttx_link_libraries. Reorder include dirs for host/keys.h and settings_zblue.h. Signed-off-by: v-yichenxi <v-yichenxi@xiaomi.com>
bug: v/85506
Add Zephyr sys/settings include paths and link zblue to zblue_headers with PUBLIC so dependents like libbluetooth get include dirs via nuttx_link_libraries. Reorder include dirs for host/keys.h and settings_zblue.h.