build: fix various meson deprecation warnings

This commit is contained in:
Christian Hergert
2022-04-01 13:08:26 -07:00
parent c75391e681
commit b307550ea5
2 changed files with 2 additions and 3 deletions

View File

@ -18,7 +18,7 @@ libsysprof_api_version = 4
version_split = meson.project_version().split('.') version_split = meson.project_version().split('.')
datadir = get_option('datadir') datadir = get_option('datadir')
datadir_for_pc_file = join_paths('${prefix}', datadir) datadir_for_pc_file = join_paths('${prefix}', datadir)
podir = join_paths(meson.source_root(), 'po') podir = join_paths(meson.current_source_dir(), 'po')
glib_req_version = '>= 2.67.4' glib_req_version = '>= 2.67.4'
gtk_req_version = '>= 3.22' gtk_req_version = '>= 3.22'
@ -191,7 +191,7 @@ int main(void) {
return 0; return 0;
} }
''') ''')
config_h.set10('HAVE_STDATOMIC_H', 1) config_h.set10('HAVE_STDATOMIC_H', true)
endif endif
subdir('src') subdir('src')

View File

@ -22,7 +22,6 @@ sysprof_deps = [
sysprof = executable('sysprof', sysprof_resources + sysprof_sources, sysprof = executable('sysprof', sysprof_resources + sysprof_sources,
dependencies: sysprof_deps, dependencies: sysprof_deps,
gui_app: true,
install_dir: get_option('bindir'), install_dir: get_option('bindir'),
install: true, install: true,
) )