Open vim-git opened 2 years ago
It looks like this is an idf-eclipse-plugin issue? @kolipakakondal.
@vim-git Aside from implementing this as an IDE feature there is also an option to add use add_custom_command
with POST_BUILD
inside project CMakeLists.txt file. The advantage of this approach is that the post-build step will be executed the same way for a command line build, should you need it at some point.
Post-build steps - option is missing for CMake projects, will check further on this
Has there been any progress on this?
@Darktidelulz you can use CMake add_custom_target and add_custom_command functions to implement post-build steps. Here's a example: https://github.com/espressif/esp-idf/blob/edd815af2e7d541b25ff3a74c59a7fe0612df42d/tools/test_apps/system/bootloader_sections/CMakeLists.txt#L8
@igrr Thanks!
Was struggeling with getting it to work kept getting No TARGET '(' has been created in this directory.
Eventually found out that it was the commands in add_custom_command
that had wrong syntax.
Found comments you made in the past about post_build and now settled on the following.
idf_build_get_property(elf EXECUTABLE)
add_custom_command(
TARGET ${elf}
POST_BUILD
COMMAND echo "This is post build"
COMMAND powershell -ExecutionPolicy Unrestricted ${PROJECT_SOURCE_DIR}/post_build_ESP.ps1 -OutputDirectory ${PROJECT_BINARY_DIR} -OutputFileName ${ProjectId} -Device ${IDF_TARGET}
)
Environment
Problem Description
We want to execute the script automatically post-build for ESP32 in eclipse. Not getting any option with ESP-IDF plugins to execute the post-build script option in eclipse.
Expected Behavior
In a Normal eclipse without ESP-IDF plugin, There is a build option in the eclipse IDE. But the same option is not available with ESP-IDF plugin in eclipse.
Actual Behavior
Steps to reproduce
// If possible, attach a picture of your setup/wiring here.
Code to reproduce this issue