Is there a way to add a pre-build command in NRF Connect for VS Code?
Is there a way to add a pre-build command in NRF Connect for VS Code?
Sorry to necro-post this thread. The given solution for binding tasks did not work for my organization - I need something that'll be configured automatically when other developers setup their build environment.
This works though. Add the following to the CMakeLists.txt file:
ADD_CUSTOM_COMMAND(TARGET app
PRE_BUILD
COMMAND python ../../tools/createversion.py ../src/version.h
)
Sorry to necro-post this thread. The given solution for binding tasks did not work for my organization - I need something that'll be configured automatically when other developers setup their build environment.
This works though. Add the following to the CMakeLists.txt file:
ADD_CUSTOM_COMMAND(TARGET app
PRE_BUILD
COMMAND python ../../tools/createversion.py ../src/version.h
)
Hi,
Thank you for sharing your solution!
Best regards,
Marte