-
-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BuildSources() not work from post : script.py #4385
Comments
Hi Georgi, This is a feature, not a bug. The inline source files are handled at the BuildProgram step which you call in your platformio/main.py So, any calling of |
Hi Ivan, thanks for the answer my thought was: add_module( src folder ) from ini file ... CMAKE uses similar practices
you can close issue if not important |
I've just added a warning message. Please use BuildLibrary in this case. |
BTW in doc need more info about action target( trigers ) maybe exist: before_main_build, after_main_build |
Pre/Post action accepts a taget (or list of targets) as a first argument. Target can be a physical path, a SCons node, or virtual alias. |
I understood |
as idea / info I make experiment with add "modules" ( not compiled codes, existing in framework ) - makefile style as example: at_tok is not compiled from my builder by default and I add this module with project ini the "module" can be existing code in framework or my add modules function ... |
I want to add and compile code from not compiled framework folder
but BuildSources() not work from POST:SCRIPT.PY
as example:
https://github.com/Wiz-IO/TEST/blob/main/PICO-LWIP-APP/extra_script.py
pre:scrypt.py
BuildSources() work
BuildLibrary() work
post:scrypt.py
BuildLibrary() work
BuildSources() not work … Is it a BUG? or I make any wrong...
The text was updated successfully, but these errors were encountered: