Skip to content

Commit

Permalink
py/py.cmake: Introduce MICROPY_INC_CORE as a list with core includes.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Apr 9, 2021
1 parent 0fabda3 commit 5dcc9b3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ports/esp32/main/CMakeLists.txt
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion ports/rp2/CMakeLists.txt
Expand Up @@ -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}"
)

Expand Down
2 changes: 1 addition & 1 deletion ports/zephyr/CMakeLists.txt
Expand Up @@ -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}
)
Expand Down
2 changes: 2 additions & 0 deletions py/py.cmake
Expand Up @@ -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
Expand Down

0 comments on commit 5dcc9b3

Please sign in to comment.