@@ -25,18 +25,25 @@ dbus = dependency('dbus-1')
2525servicedir = dbus.get_variable (pkgconfig : ' session_bus_services_dir' , pkgconfig_define : [' datadir' , datadir])
2626
2727# dependencies
28- cjs = dependency (' cjs-1.0' , version : ' >= 4.8 .0' )
28+ cjs = dependency (' cjs-1.0' , version : ' >= 115 .0' )
2929clutter = dependency (' muffin-clutter-0' )
3030cmenu = dependency (' libcinnamon-menu-3.0' , version : ' >= 4.8.0' )
3131cogl = dependency (' muffin-cogl-0' )
3232cogl_path = dependency (' muffin-cogl-path-0' )
3333gcr = dependency (' gcr-base-3' , version : ' >= 3.7.5' )
3434gdkx11 = dependency (' gdk-x11-3.0' )
35- gi = dependency (' gobject-introspection-1.0' , version : ' >= 0.9.2' )
3635polkit = dependency (' polkit-agent-1' , version : ' >= 0.100' )
3736atk = dependency (' atk-bridge-2.0' )
3837gio = dependency (' gio-2.0' , version : ' >= 2.36.0' )
3938gio_unix = dependency (' gio-unix-2.0' )
39+
40+ use_gir20 = false
41+ if cjs.version().version_compare(' >= 139.9' )
42+ gi = dependency (' girepository-2.0' , version : ' >= 2.36.0' )
43+ use_gir20 = true
44+ else
45+ gi = dependency (' gobject-introspection-1.0' , version : ' >= 0.9.2' )
46+ endif
4047gl = dependency (' gl' )
4148glib_version = ' 2.79.2'
4249glib = dependency (' glib-2.0' , version : ' >= ' + glib_version)
@@ -110,6 +117,7 @@ cinnamon_conf = configuration_data()
110117cinnamon_conf.set_quoted(' VERSION' , version)
111118cinnamon_conf.set_quoted(' GETTEXT_PACKAGE' , meson .project_name().to_lower())
112119cinnamon_conf.set(' BUILT_NM_AGENT' , internal_nm_agent)
120+ cinnamon_conf.set10(' USE_GIR20' , use_gir20)
113121
114122have_mallinfo = cc.has_function(' mallinfo' , prefix : ' #include <malloc.h>' )
115123if have_mallinfo
@@ -209,6 +217,7 @@ config_js_conf.set('PACKAGE_NAME', meson.project_name().to_lower())
209217config_js_conf.set(' PACKAGE_VERSION' , version)
210218config_js_conf.set10(' BUILT_NM_AGENT' , internal_nm_agent)
211219config_js_conf.set(' LIBEXECDIR' , join_paths (prefix, libexecdir))
220+ config_js_conf.set10(' USE_GIR20' , use_gir20)
212221
213222configure_file (
214223 input : ' js/misc/config.js.in' ,
@@ -217,7 +226,6 @@ configure_file(
217226 install_dir : ' share/cinnamon/js/misc/'
218227)
219228
220-
221229excluded_files = []
222230if get_option (' exclude_info_settings' )
223231 excluded_files += [' usr/share/applications/cinnamon-settings-info.desktop' ]
0 commit comments