-
Notifications
You must be signed in to change notification settings - Fork 981
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
Rename QbsToolchain to QbsProfile #8537
Conversation
This generator generates a qbs profile. Renaming the class from Toolchain to Profile makes this more obvious.
The qbs profiles are names `profile` not `toolchain_profile`. Rename to make this clear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am fine with this change, mainly because you are Qbs maintainers. It is very likely that I would reject this PR otherwise. Even if the feature is experimental, we try to minimize breaking changes. Renaming or other "cosmetic" changes are typically not enough to break.
In this case I trust you that Qbs users will not be very annoyed for this break, but please consider it for future changes.
Many thanks for keeping maintaining it!
Thanks for making that exception :) |
Oh, that is true, good point, I skipped that part, well done. It is also possible to create a temporary alias |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems this change didn't include the renaming of the text generator:
generators = "QbsToolchain"
Would you like the generator for the Qbs toolchain to be called QbsProfile?
Oh yes, it seems like I forgot something. Do you mean conan/conans/client/generators/__init__.py Line 110 in 052a68f
|
Hi @Psy-Kai Yes, that is the place. In any case, I am wondering what is the impact on Conan users. All other build sytems will have a XXXXToolchain which is the responsible of creating any files that the build system needs. In CMake it will be find_package scripts, in MSBuild .props properties files... Having this class named differently for Qbs might probably confuse initially Conan users using other build systems too. Please tell me, because we can still add it to Conan 1.34 before it is released (is already branched) |
I just thought that the "Toolchain" naming was a little off. For Qbs a Profile is generated. So it would be more self explaining if I write something like So my intention was self explaining code. And I thought that this "Toolchain"-Generators will be renamed some time because they are just generators (I found comments in the code hinting such a thing). The BuildInfo generators are not called "cmakebuildinfo" too (even if that would be some step towards more self explaining code). |
Ok, I understand. Our current naming is:
I am fine if you want to use the |
This generator generates a qbs profile. Renaming the class from Toolchain
to Profile makes this more obvious.
Changelog: Fix: Renamed generator
QbsToolchain
toQbsProfile
.Changelog: Fix: Renamed default filename of QbsProfile generated file to conan_toolchain_profile.qbs.
Changelog: Fix: Renamed Qbs attribute
use_toolchain_profile
toprofile
.Docs: conan-io/docs#2027
develop
branch, documenting this one.Note: By default this PR will skip the slower tests and will use a limited set of python versions. Check here how to increase the testing level by writing some tags in the current PR body text.