move c header back to astal-tray.h (#2)

* move c header back to astal-tray.h

as discussed before, placing the header to astal/tray.h breaks it when
using it from another vala project

* fix header location

---------

Co-authored-by: kotontrion <kotontrion@tutanota.de>
This commit is contained in:
Aylur
2024-07-17 08:41:24 +02:00
committed by GitHub
parent 9a484bdee0
commit b18faefdf0
+2 -3
View File
@@ -2,7 +2,6 @@ version_split = meson.project_version().split('.')
api_version = version_split[0] + '.' + version_split[1]
gir = 'AstalTray-' + api_version + '.gir'
typelib = 'AstalTray-' + api_version + '.typelib'
so = 'lib' + meson.project_name() + '.so.' + meson.project_version()
config = configure_file(
input: 'config.vala.in',
@@ -51,7 +50,7 @@ if get_option('lib')
meson.project_name(),
sources,
dependencies: deps,
vala_header: meson.project_name().replace('astal-', '') + '.h',
vala_header: meson.project_name() + '.h',
vala_vapi: meson.project_name() + '-' + api_version + '.vapi',
vala_gir: gir,
vala_args: ['--pkg', 'DbusmenuGtk3-0.4', '--pkg', 'Dbusmenu-0.4'],
@@ -59,7 +58,7 @@ if get_option('lib')
c_args: dbusmenu_cflags.split(' '),
link_args: dbusmenu_libs.split(' '),
install: true,
install_dir: [true, get_option('includedir') / 'astal', true, true],
install_dir: [true, true, true, true],
)
import('pkgconfig').generate(