Skip to content
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

wscript: Cleanup around 'ardour' + MAJOR #907

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

kiilerix
Copy link
Contributor

No description provided.

…NAL_NAME

The build system does a lot all over to keep ardour8 (almost) without
file name conflicts if installed next to ardour9. Often by appending
MAJOR in lots of places.

lwrcase_dirname was just 'ardour' + MAJOR. The naming of lwrcase_dirname
did not say much about what it was, and it was only defined locally in
build(). We set INTERNAL_NAME globally in configure(), exactly like
MAJOR is set.

INTERNAL_NAME is similar to the existing PROGRAM_NAME, which contains
the visible name. INTERNAL_NAME is however more intended to be used for
namespacing installed files. We will soon use it in a lot of places
where MAJOR used to be used.

The end goal is to make sure there only is one place where the
"ardour"+major naming policy is hardcoded. And to make it configurable
instead of hardcoded.

Things should not be repeated so they are hard to change, and they
should not be hardcoded. The policy of including the major version in
the internal name is not necessarily relevant when always using latest
version. Most programs don't do that. But also, if there for some reason
should be a need to install several minor versions side by side, then it
would be relevant to include both the major and the minor number.
Replace repeated hardcoded appending of MAJOR with reuse of the existing
computed name, which is as available in env, exactly as MAJOR was.

Note: INTERNAL_NAME will sometimes be used with a prefix like 'gtk2_' or
'lib', or a suffix like '-lua'.
Replace a redundant custom computation with the existing computed name.
@kiilerix kiilerix changed the title Small waf improvement steps wscript: Cleanup around 'ardour' + MAJOR Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant