Windows eclipse make wrapper
Posted: Fri Dec 30, 2016 3:25 pm
Under esp-idf\tools\windows, there is a nice Windows eclipse make wrapper, which replaces building command as
I understand the purpose is to replace something like
to
such that eclipse gcc output parser can locate the correct directory.
However I found this script is only able to catch first path, i.e., if the output is like
the output will be
the second and following path are ignored.
Is there a way to fix this?
Thanks
Code: Select all
make $@ V=1 | sed -E "s@ /([a-z])/(.+)/@ \1:/\2/@g" | sed -E "s@-I/([a-z])/(.+)/@-I\1:/\2/@g" | sed -E "s@-L/([a-z])/(.+)/@-L\1:/\2/@g"
Code: Select all
-I /c/ESP32/esp-idf/components/bt/bluedroid/bta/sys/include
Code: Select all
-I c:/ESP32/esp-idf/components/bt/bluedroid/bta/sys/include
However I found this script is only able to catch first path, i.e., if the output is like
Code: Select all
-I /c/ESP32/esp-idf/components/bt/bluedroid/bta/sys/include -I /c/ESP32/esp-idf/components/bt/bluedroid/btcore/include
Code: Select all
-I c:/ESP32/esp-idf/components/bt/bluedroid/bta/sys/include -I /c/ESP32/esp-idf/components/bt/bluedroid/btcore/include
Is there a way to fix this?
Thanks