2015-05-08 19:40:28 +02:00
|
|
|
dnl ---- configure.ac for gb.qt5
|
|
|
|
|
|
|
|
m4_include([../version.m4])
|
|
|
|
AC_INIT(gambas3-gb-qt5, GB_VERSION, GB_MAIL, [], GB_URL)
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
|
|
|
|
GB_INIT(gb.qt5)
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
|
|
|
GB_CHECK_XWINDOW
|
|
|
|
AM_CONDITIONAL(XWINDOW, test x"$have_x" = xyes)
|
|
|
|
|
|
|
|
GB_COMPONENT_PKG_CONFIG(
|
|
|
|
qt5, QT5, gb.qt5, [src],
|
2016-05-24 18:18:48 +02:00
|
|
|
'Qt5Core >= 5.3.0' Qt5Gui Qt5Widgets Qt5Svg Qt5PrintSupport Qt5X11Extras x11
|
2015-05-08 19:40:28 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
## GB_COMPONENT_PKG_CONFIG(
|
|
|
|
## qt5ext, QT5EXT, gb.qt5.ext, [ext],
|
2015-05-11 03:46:36 +02:00
|
|
|
## 'Qt5Core >= 5.4.0' Qt5Gui Qt5Widgets
|
2015-05-08 19:40:28 +02:00
|
|
|
## )
|
|
|
|
|
2015-05-10 15:14:04 +02:00
|
|
|
GB_COMPONENT_PKG_CONFIG(
|
|
|
|
qt5webkit, QT5WEBKIT, gb.qt5.webkit, [webkit],
|
2016-05-24 18:18:48 +02:00
|
|
|
'Qt5Core >= 5.3.0' Qt5Gui Qt5Widgets Qt5Network Qt5Xml Qt5WebKit Qt5WebKitWidgets Qt5PrintSupport x11
|
2015-05-10 15:14:04 +02:00
|
|
|
)
|
2015-05-08 19:40:28 +02:00
|
|
|
|
2015-05-11 23:36:09 +02:00
|
|
|
pkg-config --atleast-version 5.4.0 Qt5Core
|
|
|
|
if test $? != 0; then
|
|
|
|
AC_DEFINE_UNQUOTED(QT_OLD_OPENGL, 1, Use deprecated OpenGL widget)
|
|
|
|
QT_OPENGL_SUPPORT=Qt5OpenGL
|
|
|
|
GB_MESSAGE([Qt version is <= 5.3, using deprecated OpenGL widget])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(QT_OLD_OPENGL, [test x$QT_OPENGL_SUPPORT != x])
|
|
|
|
|
2015-05-11 03:46:36 +02:00
|
|
|
GB_COMPONENT_PKG_CONFIG(
|
|
|
|
qt5opengl, QT5OPENGL, gb.qt5.opengl, [opengl],
|
2016-05-24 18:18:48 +02:00
|
|
|
'Qt5Core >= 5.3.0' Qt5Gui Qt5Widgets $QT_OPENGL_SUPPORT gl x11
|
2015-05-11 03:46:36 +02:00
|
|
|
)
|
2015-05-08 19:40:28 +02:00
|
|
|
|
2016-01-24 01:05:22 +01:00
|
|
|
GB_COMPONENT_PKG_CONFIG(
|
|
|
|
qt5ext, QT5EXT, gb.qt5.ext, [ext],
|
2016-05-24 18:18:48 +02:00
|
|
|
'Qt5Core >= 5.3.0' Qt5Gui Qt5Widgets x11
|
2016-01-24 01:05:22 +01:00
|
|
|
)
|
|
|
|
|
2015-05-08 19:40:28 +02:00
|
|
|
MOC=`pkg-config --variable=host_bins Qt5Core`/moc
|
|
|
|
AC_SUBST(MOC)
|
|
|
|
|
|
|
|
AC_OUTPUT( \
|
|
|
|
Makefile \
|
|
|
|
src/Makefile \
|
2015-05-10 15:14:04 +02:00
|
|
|
src/webkit/Makefile \
|
2015-05-11 03:46:36 +02:00
|
|
|
src/opengl/Makefile \
|
2016-01-24 01:05:22 +01:00
|
|
|
src/ext/Makefile \
|
2015-05-08 19:40:28 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
## src/ext/Makefile \
|
|
|
|
|
|
|
|
GB_PRINT_MESSAGES
|