Add CMake support #2

Merged
david-swift merged 1 commits from :main into main 2025-04-05 18:33:47 +02:00
Contributor

Steps

  • Build the project on your machine. If it does not compile, fix the errors.
  • Describe the purpose and approach of your pull request below.
  • Submit the pull request. Thank you very much for your contribution!

Purpose

I want to use the aparoksha frameworks inside a cmake project and this is the foundation of them all.

Approach

Adds a few CMakeLists files that replicate what SPM does and makes it possible to fetch Meta via CMake. Hopefully this doesn't add much overhead to the project 🤞.

## Steps - [x] Build the project on your machine. If it does not compile, fix the errors. - [x] Describe the purpose and approach of your pull request below. - [x] Submit the pull request. Thank you very much for your contribution! ## Purpose I want to use the aparoksha frameworks inside a cmake project and this is the foundation of them all. ## Approach Adds a few CMakeLists files that replicate what SPM does and makes it possible to fetch Meta via CMake. Hopefully this doesn't add much overhead to the project 🤞.
Zaph added 1 commit 2025-04-02 21:35:58 +02:00
Add CMake support
Some checks failed
SwiftLint / SwiftLint (pull_request) Has been cancelled
18f51ffb93
Zaph requested review from david-swift 2025-04-02 22:23:33 +02:00
david-swift approved these changes 2025-04-05 18:33:04 +02:00
david-swift left a comment
Owner

Thank you so much for the contribution! I'm happy to merge this!

Thank you so much for the contribution! I'm happy to merge this!
david-swift merged commit ce9c5bf7d1 into main 2025-04-05 18:33:47 +02:00
Author
Contributor

I hope you don't mind me attempting to add support into adwaita. Getting it to build should be fairly simple but i'm not too sure about getting it to full parity with the SPM version because of the dependencies.

Specifically Generation and Meta-sqlite. At the start I'm thinking of skipping Generation. As for Meta-sqlite, using compiler directives i.e "#if CMAKE" and resorting back to the old json serialiser for the time-being.

Maybe in the future, forking the missing repositories and adding CMake support to them as well. Would that be fine with you?

I hope you don't mind me attempting to add support into adwaita. Getting it to build should be fairly simple but i'm not too sure about getting it to full parity with the SPM version because of the dependencies. Specifically Generation and Meta-sqlite. At the start I'm thinking of skipping Generation. As for Meta-sqlite, using compiler directives i.e "#if CMAKE" and resorting back to the old json serialiser for the time-being. Maybe in the future, forking the missing repositories and adding CMake support to them as well. Would that be fine with you?
Owner

I hope you don't mind me attempting to add support into adwaita. Getting it to build should be fairly simple but i'm not too sure about getting it to full parity with the SPM version because of the dependencies.

Specifically Generation and Meta-sqlite. At the start I'm thinking of skipping Generation. As for Meta-sqlite, using compiler directives i.e "#if CMAKE" and resorting back to the old json serialiser for the time-being.

Maybe in the future, forking the missing repositories and adding CMake support to them as well. Would that be fine with you?

That sounds perfect! Thanks for working on this! Skipping Adwaita's generation and the solution with compiler directives for SQLite both are good solutions 🙏.

> I hope you don't mind me attempting to add support into adwaita. Getting it to build should be fairly simple but i'm not too sure about getting it to full parity with the SPM version because of the dependencies. > > Specifically Generation and Meta-sqlite. At the start I'm thinking of skipping Generation. As for Meta-sqlite, using compiler directives i.e "#if CMAKE" and resorting back to the old json serialiser for the time-being. > > Maybe in the future, forking the missing repositories and adding CMake support to them as well. Would that be fine with you? That sounds perfect! Thanks for working on this! Skipping Adwaita's generation and the solution with compiler directives for SQLite both are good solutions 🙏.
Sign in to join this conversation.
No Reviewers
No Milestone
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aparoksha/meta#2
No description provided.