aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-05 22:38:54 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-07 11:36:56 -0300
commit8cf7e98fe3fa088c049cbb83041df87ce0457ee1 (patch)
treeb06680679cc47dad60b125130f089691549897bd /configure
parent74b2dab8b286c1e4bda3b264036e79c4e11d8774 (diff)
add support for gtk4 on configure.ac (experimental)
Now that we have all needed bits for Gtk 4, add a configure option to enable it. Please notice that gtk 4 support is still experimental, and was validated only with gtk 4 version 3.92. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 13 insertions, 1 deletions
diff --git a/configure b/configure
index 7e7c85f..8ebd2e5 100755
--- a/configure
+++ b/configure
@@ -766,6 +766,7 @@ with_libintl_prefix
enable_compile_warnings
enable_Werror
enable_gtk2
+enable_gtk4
with_gconf_source
with_gconf_schema_file_dir
enable_schemas_install
@@ -1414,6 +1415,7 @@ Optional Features:
Enable compiler warnings and errors
--disable-Werror Unconditionally make all compiler warnings non-fatal
--enable-gtk2 Compile against GTK 2.x instead of GTK 3.x
+ --enable-gtk4 Compile against GTK 4.x
--disable-schemas-install
Disable the schemas installation
@@ -9641,10 +9643,20 @@ else
enable_gtk2="no"
fi
+# Check whether --enable-gtk4 was given.
+if test "${enable_gtk4+set}" = set; then :
+ enableval=$enable_gtk4; enable_gtk4=$enableval
+else
+ enable_gtk4="no"
+fi
+
pkg_modules="gdk-pixbuf-2.0 gconf-2.0"
-if test "x$enable_gtk2" = xyes; then
+if test "x$enable_gtk4" = xyes; then
+ pkg_modules="$pkg_modules gtk+-4.0 >= 3.92"
+ CAMORAMA_UI="camorama-gtk4.ui"
+elif test "x$enable_gtk2" = xyes; then
pkg_modules="$pkg_modules gtk+-2.0 >= 2.24"
CAMORAMA_UI="camorama-gtk2.ui"
else

Privacy Policy