Add external rose metadata to configurator#285
Add external rose metadata to configurator#285james-bruten-mo wants to merge 19 commits intoMetOffice:mainfrom
Conversation
MatthewHambley
left a comment
There was a problem hiding this comment.
It looks like there's a more fundamental problem here, which is that the if/then/else ladder is not a good solution to this problem.
I suggest a "well known" variable which holds a list of metadata directories. Let's call it ROSE_META_DIRS for argument. This can then be expanded using $(addprefix --include-dir= ,$(ROSE_META_DIRS) and the build system no longer needs to know anything about how those different inclusion directories are controlled.
That knowledge is delegated to the top level Makefile where it belongs. There may be extra points available for working out automatically which directories need to be included by looking for them but that may be unnecessary complication.
|
Thanks Matthew - I've done this. As the Core rose-meta directory is used by everything this is being set in the configuration.mk by default. The linked Apps PR has been updated to use the new implementation |
PR Summary
Sci/Tech Reviewer: @MatthewHambley
Code Reviewer: @t00sa
This makes changes to the call to rose picker to enable it to pick up rose metadata extracted from non-lfric repositories. MetOffice/lfric_apps#279 makes changes to the source extraction and makefiles in order to extract the metadata.
Code Quality Checklist
Testing
trac.log
Test Suite Results - lfric_core - external_meta_core/run1
Suite Information
Task Information
✅ succeeded tasks - 384
Security Considerations
Performance Impact
AI Assistance and Attribution
Documentation
PSyclone Approval
Sci/Tech Review
(Please alert the code reviewer via a tag when you have approved the SR)
Code Review