py/py.cmake: Introduce MICROPY_INC_CORE as a list with core includes.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
0fabda31de
commit
5dcc9b3b16
@ -132,7 +132,7 @@ idf_component_register(
|
||||
${MICROPY_SOURCE_DRIVERS}
|
||||
${MICROPY_SOURCE_PORT}
|
||||
INCLUDE_DIRS
|
||||
${MICROPY_DIR}
|
||||
${MICROPY_INC_CORE}
|
||||
${MICROPY_INC_USERMOD}
|
||||
${MICROPY_PORT_DIR}
|
||||
${MICROPY_BOARD_DIR}
|
||||
|
@ -148,9 +148,9 @@ target_sources(${MICROPY_TARGET} PRIVATE
|
||||
target_link_libraries(${MICROPY_TARGET} usermod)
|
||||
|
||||
target_include_directories(${MICROPY_TARGET} PRIVATE
|
||||
${MICROPY_INC_CORE}
|
||||
${MICROPY_INC_USERMOD}
|
||||
"${PROJECT_SOURCE_DIR}"
|
||||
"${MICROPY_DIR}"
|
||||
"${CMAKE_BINARY_DIR}"
|
||||
)
|
||||
|
||||
|
@ -85,7 +85,7 @@ set(MICROPY_CPP_FLAGS_EXTRA ${includes} ${system_includes} ${definitions} ${opti
|
||||
zephyr_library_named(${MICROPY_TARGET})
|
||||
|
||||
zephyr_library_include_directories(
|
||||
${MICROPY_DIR}
|
||||
${MICROPY_INC_CORE}
|
||||
${MICROPY_PORT_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
set(MICROPY_PY_DIR "${MICROPY_DIR}/py")
|
||||
|
||||
list(APPEND MICROPY_INC_CORE "${MICROPY_DIR}")
|
||||
|
||||
# All py/ source files
|
||||
set(MICROPY_SOURCE_PY
|
||||
${MICROPY_PY_DIR}/argcheck.c
|
||||
|
Loading…
Reference in New Issue
Block a user