mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-07 08:39:48 +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')
|
license=('GPL2')
|
||||||
depends=('appstream-glib' 'fwupdate' 'colord')
|
depends=('appstream-glib' 'fwupdate' 'colord')
|
||||||
makedepends=('meson' 'valgrind' 'gobject-introspection' 'gtk-doc' 'python-pillow' 'git'
|
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() {
|
build() {
|
||||||
cd ${pkgname}
|
cd ${pkgname}
|
||||||
|
@ -908,6 +908,24 @@
|
|||||||
<package variant="x86_64" />
|
<package variant="x86_64" />
|
||||||
</distro>
|
</distro>
|
||||||
</dependency>
|
</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">
|
<dependency type="build" id="valgrind">
|
||||||
<distro id="arch">
|
<distro id="arch">
|
||||||
<package />
|
<package />
|
||||||
|
@ -3,3 +3,4 @@ usr/include/fwupd-1/libfwupd
|
|||||||
usr/lib/*/libfwupd*.so
|
usr/lib/*/libfwupd*.so
|
||||||
usr/lib/*/pkgconfig/fwupd.pc
|
usr/lib/*/pkgconfig/fwupd.pc
|
||||||
usr/share/gir-1.0/Fwupd*.gir
|
usr/share/gir-1.0/Fwupd*.gir
|
||||||
|
usr/share/vala/vapi
|
||||||
|
@ -54,6 +54,7 @@ BuildRequires: gnutls-utils
|
|||||||
BuildRequires: meson
|
BuildRequires: meson
|
||||||
BuildRequires: help2man
|
BuildRequires: help2man
|
||||||
BuildRequires: json-glib-devel >= %{json_glib_version}
|
BuildRequires: json-glib-devel >= %{json_glib_version}
|
||||||
|
BuildRequires: vala
|
||||||
|
|
||||||
%if 0%{?have_uefi}
|
%if 0%{?have_uefi}
|
||||||
BuildRequires: python3 python3-cairo python3-gobject python3-pillow
|
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
|
%files devel
|
||||||
%{_datadir}/gir-1.0/Fwupd-2.0.gir
|
%{_datadir}/gir-1.0/Fwupd-2.0.gir
|
||||||
%{_datadir}/gtk-doc/html/libfwupd
|
%{_datadir}/gtk-doc/html/libfwupd
|
||||||
|
%{_datadir}/vala/vapi
|
||||||
%{_includedir}/fwupd-1
|
%{_includedir}/fwupd-1
|
||||||
%{_libdir}/libfwupd*.so
|
%{_libdir}/libfwupd*.so
|
||||||
%{_libdir}/pkgconfig/fwupd.pc
|
%{_libdir}/pkgconfig/fwupd.pc
|
||||||
|
@ -108,6 +108,12 @@ if get_option('introspection')
|
|||||||
install : true
|
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
|
# Verify the map file is correct -- note we can't actually use the generated
|
||||||
# file for two reasons:
|
# file for two reasons:
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user