mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
libical: build gobject and vala introspection
(From OE-Core rev: 5e2fc4676b8944fc1d36d567bb2d1ff4cff32294) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
0e1d27b69d
commit
92bb6f72ce
@@ -16,7 +16,7 @@ SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.g
|
||||
SRC_URI[sha256sum] = "35095a4cc1a061a3de0f332c2dc728226cf127fa0baa818e9f8856cee6d35830"
|
||||
UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases"
|
||||
|
||||
inherit cmake pkgconfig
|
||||
inherit cmake pkgconfig gobject-introspection vala
|
||||
|
||||
DEPENDS += "libical-native"
|
||||
|
||||
@@ -32,6 +32,11 @@ EXTRA_OECMAKE += "-DPERL_EXECUTABLE=${HOSTTOOLS_DIR}/perl"
|
||||
EXTRA_OECMAKE += "-DLIBICAL_BUILD_TESTING=false"
|
||||
# doc build fails with linker error (??) for libical-glib so disable it
|
||||
EXTRA_OECMAKE += "-DICAL_BUILD_DOCS=false"
|
||||
# gobject-introspection
|
||||
EXTRA_OECMAKE:append:class-target = " -DGObjectIntrospection_COMPILER=${STAGING_BINDIR}/g-ir-compiler-wrapper"
|
||||
EXTRA_OECMAKE:append:class-target = " -DGObjectIntrospection_SCANNER=${STAGING_BINDIR}/g-ir-scanner-wrapper"
|
||||
EXTRA_OECMAKE += "-DVAPIGEN=${STAGING_BINDIR_NATIVE}/vapigen"
|
||||
EXTRA_OECMAKE += "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-DGOBJECT_INTROSPECTION=ON -DICAL_GLIB_VAPI=ON', '-DGOBJECT_INTROSPECTION=OFF', d)}"
|
||||
|
||||
# Tell the cross-libical where the tool it needs to build is
|
||||
EXTRA_OECMAKE:append:class-target = " -DIMPORT_ICAL_GLIB_SRC_GENERATOR=${STAGING_LIBDIR_NATIVE}/cmake/LibIcal/IcalGlibSrcGenerator.cmake"
|
||||
|
||||
Reference in New Issue
Block a user