Pre-build commands in NRF Connect with VS Code

Is there a way to add a pre-build command in NRF Connect for VS Code?

Parents
  • 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
    )

Reply
  • 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
    )

Children
Related