Skip to content

Commit

Permalink
Qbs: Add option to specify custom Python pkg-config name (#4039)
Browse files Browse the repository at this point in the history
I am Gentoo maintainer of Tiled. In Gentoo, there may be many Python 
versions installed at the same time for compatibility reasons, and each
version has separate name in pkg-config.

For example, for Python 3.12 it would be named python-3.12-embed, so 
running pkg-config for python-embed will fail. Adding this option so
it's possible to specify the correct name from build script.
  • Loading branch information
mechakotik authored Aug 22, 2024
1 parent ca00fa7 commit 7969644
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/python/python.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ TiledPlugin {

Probes.PkgConfigProbe {
id: pkgConfigPython3
name: "python3-embed"
name: project.pythonPkgConfigName
minVersion: "3.8"
}

Expand Down
1 change: 1 addition & 0 deletions tiled.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Project {
property bool sentry: false
property bool dbus: true
property string openSslPath: Environment.getEnv("OPENSSL_PATH")
property string pythonPkgConfigName: "python3-embed"

references: [
"dist/archive.qbs",
Expand Down

0 comments on commit 7969644

Please sign in to comment.