-
Notifications
You must be signed in to change notification settings - Fork 160
Add client library version for Qt6 #373
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
Open
Gliese852
wants to merge
3
commits into
ubuntu:main
Choose a base branch
from
Gliese852:qt6-upstream
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| prefix=@prefix@ | ||
| exec_prefix=@exec_prefix@ | ||
| libdir=@libdir@ | ||
| includedir=@includedir@ | ||
|
|
||
| Name: liblightdm-qt6 | ||
| Description: LightDM Qt6 client library | ||
| Version: @VERSION@ | ||
| Requires: Qt6Core Qt6Gui Qt6DBus | ||
| Libs: -L${libdir} -llightdm-qt6-3 | ||
| Cflags: -I${includedir}/lightdm-qt6-3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| # Detect Qt5 and Qt6 moc executable | ||
| # partially borrowed from freeciv qt m4 scripts | ||
|
|
||
| dnl Qt5 | ||
| AC_DEFUN([QT5_IF_QT5_MOC], | ||
| AS_IF([$1 -v >/dev/null 2>/dev/null && | ||
| (test "`$1 -v 2<&1 | grep -o 'Qt [[[0-9]]]\+'`" = "Qt 5" || | ||
| test "`$1 -v 2<&1 | grep -o 'moc [[[0-9]]]\+'`" = "moc 5" || | ||
| test "`$1 -v 2<&1 | grep -o 'moc-qt[[[0-9]]]\+'`" = "moc-qt5")], | ||
| [$2])) | ||
|
|
||
| dnl Set MOCCMD to $1 if it is the Qt 5 "moc". | ||
| AC_DEFUN([QT5_TRY_MOC], | ||
| [QT5_IF_QT5_MOC([$1], [MOCCMD="$1"])]) | ||
|
|
||
| dnl If a usable moc command is found set $1 | ||
| AC_DEFUN([QT5_VALIDATE_MOC], [ | ||
| AC_MSG_CHECKING([the Qt 5 moc command]) | ||
|
|
||
| dnl Try to find a Qt 5 'moc' | ||
| AS_IF([test "x$MOCCMD" = "x"], | ||
| [for mocpath in "moc" "qtchooser -run-tool=moc -qt=5" "moc-qt5" | ||
| do | ||
| if test "x$MOCCMD" = "x" ; then | ||
| QT5_TRY_MOC([$mocpath]) | ||
| fi | ||
| done | ||
| AS_IF([test "x$MOCCMD" = "x"], | ||
| [AC_MSG_RESULT([not found]); AC_SUBST($1,"")], | ||
| [AC_MSG_RESULT([$MOCCMD]); AC_SUBST($1,"$MOCCMD")]) | ||
| MOCCMD=""], | ||
| [AC_MSG_ERROR(["MOCCMD should not be set"])])]) | ||
|
|
||
|
|
||
| dnl Qt6 | ||
| AC_DEFUN([QT6_IF_QT6_MOC], | ||
| AS_IF([$1 -v >/dev/null 2>/dev/null && | ||
| (test "`$1 -v 2<&1 | grep -o 'Qt [[[0-9]]]\+'`" = "Qt 6" || | ||
| test "`$1 -v 2<&1 | grep -o 'moc [[[0-9]]]\+'`" = "moc 6" || | ||
| test "`$1 -v 2<&1 | grep -o 'moc-qt[[[0-9]]]\+'`" = "moc-qt6")], | ||
| [$2])) | ||
|
|
||
| dnl Set MOCCMD to $1 if it is the Qt 6 "moc". | ||
| AC_DEFUN([QT6_TRY_MOC], | ||
| [QT6_IF_QT6_MOC([$1], [MOCCMD="$1"])]) | ||
|
|
||
| dnl If a usable moc command is found set $1 | ||
| AC_DEFUN([QT6_VALIDATE_MOC], [ | ||
| AC_MSG_CHECKING([the Qt 6 moc command]) | ||
|
|
||
| dnl Try to find a Qt 6 'moc' | ||
| AS_IF([test "x$MOCCMD" = "x"], | ||
| [for mocpath in "moc" "qtchooser -run-tool=moc -qt=6" "moc-qt6" \ | ||
| "/usr/lib/qt6/moc" "/usr/lib/qt6/libexec/moc" \ | ||
| "/usr/lib64/qt6/moc" "/usr/lib64/qt6/libexec/moc" \ | ||
| "$prefix/lib/qt6/moc" "$prefix/lib/qt6/libexec/moc" \ | ||
| "$libexecdir/moc" "$libexecdir/qt6/moc" \ | ||
| "$libdir/qt6/moc" "$libdir/qt6/libexec/moc" | ||
| do | ||
| if test "x$MOCCMD" = "x" ; then | ||
| QT6_TRY_MOC([$mocpath]) | ||
| fi | ||
| done | ||
| AS_IF([test "x$MOCCMD" = "x"], | ||
| [AC_MSG_RESULT([not found]); AC_SUBST($1,"")], | ||
| [AC_MSG_RESULT([$MOCCMD]); AC_SUBST($1,"$MOCCMD")]) | ||
| MOCCMD=""], | ||
| [AC_MSG_ERROR(["MOCCMD should not be set"])])]) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [Desktop Entry] | ||
| Name=Test Qt6 Greeter | ||
| Comment=LightDM test Qt6 greeter | ||
| Exec=test-qt6-greeter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
My only concern is the copyright here.
The files from freeciv do not have a copying message at the top. The other m4 files in lightdm do.
freeciv is GPL v2, which should make this okay.
But whether to include the comments at the top here, I'm not sure. I'm not knowledgeable about how to handle these kind of things.