-
Notifications
You must be signed in to change notification settings - Fork 438
build: Install headers to system #1649
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
build: Install headers to system #1649
Conversation
cmake/iotjs.cmake
Outdated
| endif() | ||
|
|
||
| # Install headers | ||
| if("${INCLUDE_INSTALL_DIR}" STREQUAL "") |
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.
It seems better to put the relevant codes in one place. I suggest moving this code block to the line, 488.
cmake/iotjs.cmake
Outdated
| if("${INCLUDE_INSTALL_DIR}" STREQUAL "") | ||
| set(INCLUDE_INSTALL_DIR "include/iotjs") | ||
| endif() | ||
| install(TARGETS ${TARGET_LIB_IOTJS} DESTINATION ${LIB_INSTALL_DIR}) |
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.
isn't TARGET_LIB_IOTJS undefined?
cmake/iotjs.cmake
Outdated
| set(INCLUDE_INSTALL_DIR "include/iotjs") | ||
| endif() | ||
| install(TARGETS ${TARGET_LIB_IOTJS} DESTINATION ${LIB_INSTALL_DIR}) | ||
| file(GLOB IOTJS_HEADERS include/*.js src/*.h) |
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.
a) include/.js -> include/.h?
b) can you share use cases for headers of src/*.h?
73c9598 to
54d3c02
Compare
cmake/iotjs.cmake
Outdated
| ${MBEDTLS_LIBS} | ||
| -Wl,--no-whole-archive | ||
| ${EXTERNAL_LIBS}) | ||
| install(TARGETS ${TARGET_SHARED_IOTJS} DESTINATION ${LIB_INSTALL_DIR}) |
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.
wrong indentation
make install will install headers to iotjs headers namespace. This is needed for build developer packages, on debian based system like raspbian for pi0. This change was applied to 1.0 for debian packaging for supporting RPI, and then improved to align to master. Bug: jerryscript-project#1145 IoT.js-DCO-1.0-Signed-off-by: Philippe Coval philippe.coval@osg.samsung.com
54d3c02 to
cda7b5d
Compare
hs0225
left a comment
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.
LGTM
yichoi
left a comment
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.
LGTM
make install will install headers to iotjs headers namespace.
This is needed for build developer packages,
on debian based system like raspbian for pi0.
This change was applied to debian packaging for supporting RPI.
Bug: #1145
IoT.js-DCO-1.0-Signed-off-by: Philippe Coval philippe.coval@osg.samsung.com