-
Notifications
You must be signed in to change notification settings - Fork 3
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
Use pkg-config to automatically generate build tags #15
Comments
That's an interesting thought. I wasn't aware of the gobbi generates versioned files determined from
Perhaps I have version 2.20.5 of somelib installed. Because no new apis were introduced in version 2.20.5 there will have been no mention of it in the gir file. So no file will have been generated corresponding to that version. And no build tag will exist for version 3.20.5. If For example I have gtk 3.22.30 installed, and there's no reference to this version in |
And of course one may wish to build targetting earlier versions of libraries than those installed locally. |
You can just cut off the last number. pkg-config is the de-facto standard for C dependency resolution, virtually all software uses it. It has considered your use-cases, and then some. Targetting earlier libraries is easy, just update the pkg-config path. In fact, NOT using pkg-config is going to be much worse because people will be expecting it to be there and if their system doesn't exactly match your expectations (for include directory, linker flags, etc) then your roll-your-own approach is going to break. For example, with the master branch right now, even if all of the supported versions of everything are installed, gobbi will fail to compile if gio et al are installed to /usr/local instead of /usr. |
I am using pkg-config courtesy of the cgo comments in the I have a feeling that I missing something in what you're saying, but I don't know what. |
Does |
I meant the current approach to building gobbi, where you manually specify a bunch of versions. It's a lot of work on the end user which can be automated. |
Should be able to detect the installed package versions with e.g.
pkg-config --modversion gtk+3.0
The text was updated successfully, but these errors were encountered: