mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-03 19:59:26 +00:00
Generate Vala bindings
This commit is contained in:
parent
60a9bded16
commit
5c535a53ce
@ -10,7 +10,7 @@ url='https://github.com/hughsie/fwupd'
|
||||
license=('GPL2')
|
||||
depends=('appstream-glib' 'fwupdate' 'colord')
|
||||
makedepends=('meson' 'valgrind' 'gobject-introspection' 'gtk-doc' 'python-pillow' 'git'
|
||||
'python-cairo' 'ttf-dejavu' 'adobe-source-han-sans-cn-fonts' 'python-gobject')
|
||||
'python-cairo' 'ttf-dejavu' 'adobe-source-han-sans-cn-fonts' 'python-gobject' 'vala')
|
||||
|
||||
build() {
|
||||
cd ${pkgname}
|
||||
|
@ -908,6 +908,24 @@
|
||||
<package variant="x86_64" />
|
||||
</distro>
|
||||
</dependency>
|
||||
<dependency type="build" id="valac">
|
||||
<distro id="arch">
|
||||
<package>vala</package>
|
||||
</distro>
|
||||
<distro id="fedora">
|
||||
<package>vala</package>
|
||||
</distro>
|
||||
<distro id="debian">
|
||||
<control />
|
||||
<package variant="x86_64" />
|
||||
<package variant="s390x" />
|
||||
<package variant="i386" />
|
||||
</distro>
|
||||
<distro id="ubuntu">
|
||||
<control />
|
||||
<package variant="x86_64" />
|
||||
</distro>
|
||||
</dependency>
|
||||
<dependency type="build" id="valgrind">
|
||||
<distro id="arch">
|
||||
<package />
|
||||
|
@ -3,3 +3,4 @@ usr/include/fwupd-1/libfwupd
|
||||
usr/lib/*/libfwupd*.so
|
||||
usr/lib/*/pkgconfig/fwupd.pc
|
||||
usr/share/gir-1.0/Fwupd*.gir
|
||||
usr/share/vala/vapi
|
||||
|
@ -54,6 +54,7 @@ BuildRequires: gnutls-utils
|
||||
BuildRequires: meson
|
||||
BuildRequires: help2man
|
||||
BuildRequires: json-glib-devel >= %{json_glib_version}
|
||||
BuildRequires: vala
|
||||
|
||||
%if 0%{?have_uefi}
|
||||
BuildRequires: python3 python3-cairo python3-gobject python3-pillow
|
||||
@ -251,6 +252,7 @@ mkdir -p --mode=0700 $RPM_BUILD_ROOT%{_localstatedir}/lib/fwupd/gnupg
|
||||
%files devel
|
||||
%{_datadir}/gir-1.0/Fwupd-2.0.gir
|
||||
%{_datadir}/gtk-doc/html/libfwupd
|
||||
%{_datadir}/vala/vapi
|
||||
%{_includedir}/fwupd-1
|
||||
%{_libdir}/libfwupd*.so
|
||||
%{_libdir}/pkgconfig/fwupd.pc
|
||||
|
@ -108,6 +108,12 @@ if get_option('introspection')
|
||||
install : true
|
||||
)
|
||||
|
||||
gnome.generate_vapi('libfwupd-2.0',
|
||||
sources: gir[0],
|
||||
packages : ['gio-2.0', 'libsoup-2.4'],
|
||||
install : true,
|
||||
)
|
||||
|
||||
# Verify the map file is correct -- note we can't actually use the generated
|
||||
# file for two reasons:
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user