-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
146 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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"])])]) |