py/mkrules.cmake: Add MICROPY_QSTRDEFS_PORT to qstr build process.
This allows a port to specify a custom qstrdefsport.h file, the same as the QSTR_DEFS variable in a Makefile. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
d867d20d9a
commit
2adf20c5f2
@ -95,8 +95,10 @@ add_custom_command(
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${MICROPY_QSTRDEFS_PREPROCESSED}
|
||||
COMMAND cat ${MICROPY_QSTRDEFS_PY} ${MICROPY_QSTRDEFS_COLLECTED} | sed "s/^Q(.*)/\"&\"/" | ${CMAKE_C_COMPILER} -E ${MICROPY_CPP_FLAGS} - | sed "s/^\\\"\\(Q(.*)\\)\\\"/\\1/" > ${MICROPY_QSTRDEFS_PREPROCESSED}
|
||||
DEPENDS ${MICROPY_QSTRDEFS_COLLECTED}
|
||||
COMMAND cat ${MICROPY_QSTRDEFS_PY} ${MICROPY_QSTRDEFS_PORT} ${MICROPY_QSTRDEFS_COLLECTED} | sed "s/^Q(.*)/\"&\"/" | ${CMAKE_C_COMPILER} -E ${MICROPY_CPP_FLAGS} - | sed "s/^\\\"\\(Q(.*)\\)\\\"/\\1/" > ${MICROPY_QSTRDEFS_PREPROCESSED}
|
||||
DEPENDS ${MICROPY_QSTRDEFS_PY}
|
||||
${MICROPY_QSTRDEFS_PORT}
|
||||
${MICROPY_QSTRDEFS_COLLECTED}
|
||||
VERBATIM
|
||||
COMMAND_EXPAND_LISTS
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user