@@ -24,18 +24,25 @@ dbus = dependency('dbus-1')
2424servicedir = dbus.get_variable (pkgconfig : ' session_bus_services_dir' , pkgconfig_define : [' datadir' , datadir])
2525
2626# dependencies
27- cjs = dependency (' cjs-1.0' , version : ' >= 4.8 .0' )
27+ cjs = dependency (' cjs-1.0' , version : ' >= 115 .0' )
2828clutter = dependency (' muffin-clutter-0' )
2929cmenu = dependency (' libcinnamon-menu-3.0' , version : ' >= 4.8.0' )
3030cogl = dependency (' muffin-cogl-0' )
3131cogl_path = dependency (' muffin-cogl-path-0' )
3232gcr = dependency (' gcr-base-3' , version : ' >= 3.7.5' )
3333gdkx11 = dependency (' gdk-x11-3.0' )
34- gi = dependency (' gobject-introspection-1.0' , version : ' >= 0.9.2' )
3534polkit = dependency (' polkit-agent-1' , version : ' >= 0.100' )
3635atk = dependency (' atk-bridge-2.0' )
3736gio = dependency (' gio-2.0' , version : ' >= 2.36.0' )
3837gio_unix = dependency (' gio-unix-2.0' )
38+
39+ use_gir20 = false
40+ if cjs.version().version_compare(' >= 139.9' )
41+ gi = dependency (' girepository-2.0' , version : ' >= 2.36.0' )
42+ use_gir20 = true
43+ else
44+ gi = dependency (' gobject-introspection-1.0' , version : ' >= 0.9.2' )
45+ endif
3946gl = dependency (' gl' )
4047glib_version = ' 2.79.2'
4148glib = dependency (' glib-2.0' , version : ' >= ' + glib_version)
@@ -86,6 +93,7 @@ cinnamon_conf = configuration_data()
8693cinnamon_conf.set_quoted(' VERSION' , version)
8794cinnamon_conf.set_quoted(' GETTEXT_PACKAGE' , meson .project_name().to_lower())
8895cinnamon_conf.set(' BUILT_NM_AGENT' , internal_nm_agent)
96+ cinnamon_conf.set10(' USE_GIR20' , use_gir20)
8997
9098have_mallinfo = cc.has_function(' mallinfo' , prefix : ' #include <malloc.h>' )
9199if have_mallinfo
@@ -161,6 +169,7 @@ config_js_conf = configuration_data()
161169config_js_conf.set(' PACKAGE_NAME' , meson .project_name().to_lower())
162170config_js_conf.set(' PACKAGE_VERSION' , version)
163171config_js_conf.set10(' BUILT_NM_AGENT' , internal_nm_agent)
172+ config_js_conf.set10(' USE_GIR20' , use_gir20)
164173
165174configure_file (
166175 input : ' js/misc/config.js.in' ,
@@ -169,7 +178,6 @@ configure_file(
169178 install_dir : ' share/cinnamon/js/misc/'
170179)
171180
172-
173181excluded_files = []
174182if get_option (' exclude_info_settings' )
175183 excluded_files += [' usr/share/applications/cinnamon-settings-info.desktop' ]
0 commit comments