templates: Use modern pkgconfig generator API

pull/14086/head
Dylan Baker 2 months ago
parent d1422509fc
commit e4ea17bf1d
  1. 5
      mesonbuild/templates/cpptemplates.py
  2. 5
      mesonbuild/templates/ctemplates.py
  3. 5
      mesonbuild/templates/cudatemplates.py
  4. 5
      mesonbuild/templates/fortrantemplates.py
  5. 5
      mesonbuild/templates/objcpptemplates.py
  6. 5
      mesonbuild/templates/objctemplates.py

@ -149,12 +149,9 @@ install_headers('{header_file}', subdir : '{header_dir}')
pkg_mod = import('pkgconfig') pkg_mod = import('pkgconfig')
pkg_mod.generate( pkg_mod.generate(
name : '{project_name}', shlib,
filebase : '{ltoken}',
description : 'Meson sample project.', description : 'Meson sample project.',
subdirs : '{header_dir}', subdirs : '{header_dir}',
libraries : shlib,
version : '{version}',
) )
''' '''

@ -98,12 +98,9 @@ install_headers('{header_file}', subdir : '{header_dir}')
pkg_mod = import('pkgconfig') pkg_mod = import('pkgconfig')
pkg_mod.generate( pkg_mod.generate(
name : '{project_name}', shlib,
filebase : '{ltoken}',
description : 'Meson sample project.', description : 'Meson sample project.',
subdirs : '{header_dir}', subdirs : '{header_dir}',
libraries : shlib,
version : '{version}',
) )
''' '''

@ -149,12 +149,9 @@ install_headers('{header_file}', subdir : '{header_dir}')
pkg_mod = import('pkgconfig') pkg_mod = import('pkgconfig')
pkg_mod.generate( pkg_mod.generate(
name : '{project_name}', shlib,
filebase : '{ltoken}',
description : 'Meson sample project.', description : 'Meson sample project.',
subdirs : '{header_dir}', subdirs : '{header_dir}',
libraries : shlib,
version : '{version}',
) )
''' '''

@ -79,12 +79,9 @@ meson.override_dependency('{project_name}', {ltoken}_dep)
pkg_mod = import('pkgconfig') pkg_mod = import('pkgconfig')
pkg_mod.generate( pkg_mod.generate(
name : '{project_name}', shlib,
filebase : '{ltoken}',
description : 'Meson sample project.', description : 'Meson sample project.',
subdirs : '{header_dir}', subdirs : '{header_dir}',
libraries : shlib,
version : '{version}',
) )
''' '''

@ -98,12 +98,9 @@ install_headers('{header_file}', subdir : '{header_dir}')
pkg_mod = import('pkgconfig') pkg_mod = import('pkgconfig')
pkg_mod.generate( pkg_mod.generate(
name : '{project_name}', shlib,
filebase : '{ltoken}',
description : 'Meson sample project.', description : 'Meson sample project.',
subdirs : '{header_dir}', subdirs : '{header_dir}',
libraries : shlib,
version : '{version}',
) )
''' '''

@ -97,12 +97,9 @@ install_headers('{header_file}', subdir : '{header_dir}')
pkg_mod = import('pkgconfig') pkg_mod = import('pkgconfig')
pkg_mod.generate( pkg_mod.generate(
name : '{project_name}', shlib,
filebase : '{ltoken}',
description : 'Meson sample project.', description : 'Meson sample project.',
subdirs : '{header_dir}', subdirs : '{header_dir}',
libraries : shlib,
version : '{version}',
) )
''' '''

Loading…
Cancel
Save