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

[feature] Make Qbs Generators ready for conan 2.0 #10033

Closed
1 of 6 tasks
Psy-Kai opened this issue Nov 17, 2021 · 0 comments · Fixed by #16742
Closed
1 of 6 tasks

[feature] Make Qbs Generators ready for conan 2.0 #10033

Psy-Kai opened this issue Nov 17, 2021 · 0 comments · Fixed by #16742

Comments

@Psy-Kai
Copy link
Contributor

Psy-Kai commented Nov 17, 2021

The Qbs generators should be on par with CMake. Transparent integration should be possible.
For this multiple things have to get changed:

  • QbsProfile generator should not delete the settings directory
  • in addition to create a file containing a profile the QbsProfile generator has to modify the config in the settings directory
  • the Qbs build helper needs to detect and pass the settings directory
  • a QbsDeps generator has to generate Modules for all required components
  • the QbsDeps generator might generate a file containing additional information like environment variables
This was referenced Nov 17, 2021
memsharded pushed a commit that referenced this issue Jun 6, 2024
* Qbs: Add tests for product switches

The API has a possibility to build some of the products.
This feature is rarely used but since API provides it,
it's good to have it covered in tests.

* Address review
memsharded pushed a commit that referenced this issue Jun 6, 2024
Qbs: Reduce code duplication
memsharded added a commit that referenced this issue Jun 13, 2024
* Add QbsDeps class

This class allows Conan to export information about
dependencies in the JSON format suitable for consuming by Qbs.

Instead of generating Qbs modules directly, we choose JSON
format to create a clear boundary between Qbs and Conan.
That way, Qbs can change the contents of the modules it create
independently from Conan release schedule which provides more
flexibility on Qbs side.

* Fix issue with infinite loop in tests

* Address review

-rename moduleName
-fix Virtual env
-remove common.json
-add "conan-" prefix to the dir
-remove "modules" subdir

* Use integration tests instead of unit tests

* Remove logger

* Add complex requires test

* Fix bug with conflicting comp names, e.g. for grpc

* Remove VirtualBuildEnv, use host bindirs directly

* Add simple functional tests for QbsDeps

* fix style

* Remove CMake dep in tests

* fix test and minor formatting and style

* get rid of private _package

---------

Co-authored-by: memsharded <james@conan.io>
@ABBAPOH ABBAPOH mentioned this issue Jul 28, 2024
5 tasks
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 a pull request may close this issue.

1 participant