You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
EXTRA_MODULES and EXTRA_INCLUDE_GMTSUPPL are not documented in ConfigUserAdvanced.cmake #2690
EXTRA_MODULES is for developers to add new modules for testing without adding them to the main list of core modules.
EXTRA_INCLUDE_GMTSUPPL is for developers to test out new supplements without adding them to the main list.
No dia 07/02/2020, às 23:26, Paul Wessel ***@***.***> escreveu:
Yes to both.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
I think works on macOS/Linux only without running gmt_make_module_src.sh.
Speaking of which, ideally cmake should figure out that if any of the core module files are younger than gmt_core_module.[ch] then it should run gmt_make_module_src.sh core, and likewise if any supplemental modules change it should run gmt_make_module_src.sh supplements. Or if not actually running them, warn us. The problem is that those KEYS change very infrequently, but when they do we need to remember to run those commands.
Speaking of which, ideally cmake should figure out that if any of the core module files are younger than gmt_core_module.[ch] then it should run gmt_make_module_src.sh core, and likewise if any supplemental modules change it should run gmt_make_module_src.sh supplements. Or if not actually running them, warn us. The problem is that those KEYS change very infrequently, but when they do we need to remember to run those commands.
I think we can do it in CI. For each CI job, we can run these scripts
How does the CI job fail if gmt_make_module_src.sh core creates a modified gmt_core_module.c file? The changes to the KEYS only affect external API use.
Activity
PaulWessel commentedon Feb 7, 2020
EXTRA_MODULES is for developers to add new modules for testing without adding them to the main list of core modules.
EXTRA_INCLUDE_GMTSUPPL is for developers to test out new supplements without adding them to the main list.
seisman commentedon Feb 7, 2020
Add them to ConfigUserAdvanced.cmake?
seisman commentedon Feb 7, 2020
It’s better to rename EXTRA_INCLUDE_GMTSUPPL to EXTRA_MODULE_SUPPL to have consistent names?
PaulWessel commentedon Feb 7, 2020
Yes to both.
joa-quim commentedon Feb 7, 2020
PaulWessel commentedon Feb 7, 2020
I think works on macOS/Linux only without running gmt_make_module_src.sh.
Speaking of which, ideally cmake should figure out that if any of the core module files are younger than gmt_core_module.[ch] then it should run
gmt_make_module_src.sh core, and likewise if any supplemental modules change it should rungmt_make_module_src.sh supplements. Or if not actually running them, warn us. The problem is that those KEYS change very infrequently, but when they do we need to remember to run those commands.joa-quim commentedon Feb 8, 2020
It works in the sense that it builds but when try
gmt newmodulethe newmodule is not known.Everytime I change a KEY, I update the
gmt_core_module.cIt was long ago but the batch script always gave me troubles on Win.seisman commentedon Feb 8, 2020
I think we can do it in CI. For each CI job, we can run these scripts
If any files are changed, then the CI job fails, so that we know we need to manually run these scripts.
PaulWessel commentedon Feb 8, 2020
How does the CI job fail if
gmt_make_module_src.sh corecreates a modified gmt_core_module.c file? The changes to the KEYS only affect external API use.seisman commentedon Feb 8, 2020
I mean adding a new CI job. If gmt_core_module.c is modified, then the CI job reports an error to warn us.
PaulWessel commentedon Feb 8, 2020
OK, I see. It create the latest .ch files and diffs with what is in the repo and if different then we are told to run it and commit.
seisman commentedon Feb 8, 2020
Yes, exactly.