@@ -11,14 +11,7 @@ gnome = import('gnome')
1111i18n = import (' i18n' )
1212pkg = import (' pkgconfig' )
1313cc = meson .get_compiler(' c' )
14-
15- gala_version = meson .project_version()
16-
17- vala_version_required = ' 0.46.0'
1814vala = meson .get_compiler(' vala' )
19- if not vala.version().version_compare(' >= @0@' .format(vala_version_required))
20- error (' Valac >= @0@ required!' .format(vala_version_required))
21- endif
2215
2316vapi_dir = meson .current_source_dir() / ' vapi'
2417
@@ -35,7 +28,7 @@ conf.set_quoted('DATADIR', data_dir)
3528conf.set_quoted(' PKGDATADIR' , pkgdata_dir)
3629conf.set_quoted(' PLUGINDIR' , plugins_dir)
3730conf.set_quoted(' RESOURCEPATH' , ' /org/pantheon/desktop/gala' )
38- conf.set_quoted(' VERSION' , gala_version )
31+ conf.set_quoted(' VERSION' , meson .project_version() )
3932config_h = configure_file (
4033 output : ' config.h' ,
4134 configuration : conf
@@ -158,6 +151,10 @@ if get_option('systemd')
158151 vala_flags += [' --define' , ' WITH_SYSTEMD' ]
159152endif
160153
154+ if vala.version().version_compare(' >= 0.56.17' )
155+ vala_flags += [' --define' , ' VALA_0_56_17' ]
156+ endif
157+
161158add_project_arguments (vala_flags, language : ' vala' )
162159add_project_link_arguments ([' -Wl,-rpath,@0@' .format(mutter_typelib_dir)], language : ' c' )
163160
0 commit comments