Skip to content
Snippets Groups Projects
Commit a80c9c58 authored by Gaël Bonithon's avatar Gaël Bonithon
Browse files

meson-template: Add copyright year management

parent 9fe44c55
No related branches found
No related tags found
1 merge request!155Automate copyright year management
Pipeline #35689 passed
......@@ -13,6 +13,7 @@ project(
project_namespace = YOUR_RPOJECT_NAMESPACE_HERE_QUOTED # like 'xfce' or 'apps'
pkgdatadir = get_option('prefix') / get_option('datadir') / meson.project_name()
copyright_year = '2025'
cc = meson.get_compiler('c')
pkgconfig = import('pkgconfig')
......@@ -111,6 +112,7 @@ extra_cflags += [
'-DVERSION_SHORT="@0@"'.format(version_short),
'-DPACKAGE_STRING="@0@ @1@"'.format(meson.project_name(), meson.project_version()),
'-DPACKAGE_DATADIR="@0@"'.format(pkgdatadir),
'-DCOPYRIGHT_YEAR="@0@"'.format(copyright_year),
'-DPACKAGE_LOCALE_DIR="@0@"'.format(get_option('prefix') / get_option('localedir')),
'-DPACKAGE_BUGREPORT="https://gitlab.xfce.org/@0@/@1@/-/issues"'.format(project_namespace, meson.project_name()),
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment