-
Notifications
You must be signed in to change notification settings - Fork 60
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
[projmgr] Source patterns have to be supported (as well as related excluded ones) #82
Comments
* RteUtils: Fix wildcard matching algorithm * Update libs/rteutils/include/WildCards.h Co-authored-by: Daniel Brondani <[email protected]> * Update libs/rteutils/src/WildCards.cpp Co-authored-by: Daniel Brondani <[email protected]> Co-authored-by: Evgueni Driouk <[email protected]> Co-authored-by: Daniel Brondani <[email protected]>
I personally prefer explicit list of files from two reasons:
but I know also people who prefer reduced maintenance effort and use wildcards as much as possible. |
This topic has been identified as part of CMSIS-Build Gap Analysis @DavidJurajdaNXP & all, already shared Thanks some other comments, I'm fully sensitive myself to build reproducibility but I would back promote my point which is OpenCMSIS proposal is moving and we have now 2 "containers" to support workflow:
I foresee myself reproducibility concerns being addressed Thanks .cprj & project source control. |
No problem with the concept of wildcards for files here. However, several observations and questions:
This is all getting rather complex, and needs clear documentation to enable reliable implementations to be built. |
@mark-edgeworth considering we are in agreement on principle (good !) yes let's move to specifications refinement.
Even better to me as end user ... just get rid of
According my view sounds like not so complex. I'm pushing to get "only"
|
While I like the idea to not distinguish file from pattern, do people care that a pattern potentially describes multiple files (singular vs. plural). Do we need a precedence in processing or is it done sequentially? Only process entry if for-type/not-for-type allow optimize, debug, defines, undefines, add-paths, del-paths, misc are not supported for "exclude" What other "dependencies/context" do people see need to be considered? |
@jkrech Based on current processing we are at a point building some internal lists. Just consider:
My first guess schema is: We may end up with such usage: |
Per current https://github.com/Open-CMSIS-Pack/devtools/blob/a9919425f6554425e8723aee5bf7a9b299387e95/tools/projmgr/docs/Manual/Overview.md#groups-and-files proposal source description is file based.
It sounds like a pain from an IDE context. Such assumption is fully valuable if build reproducibility but purpose of *.cprj then. Considering project manager, so *.yml contributions, I would be please to add source patterns and related exclude patterns addon. Up to project manager process building *.cprj file to compute a runtime such patterns leading to a file based proposal.
groups:
- group: main
files:
- file: ./src/main.c
source_patterns:
- pattern: ./src/**/*.c
- pattern: ./src/**/*.cpp
exclude_patterns:
- pattern: ./src/**/*.md
- group: func1
files:
- file: ./func1/src/func1.c
Note: Keywords / schema to be discussed just promoting high level requirement here
The text was updated successfully, but these errors were encountered: