2020-07-08 10:42:25 -04:00
require glib . inc
PE = " 1 "
SHRT_VER = " ${@oe.utils.trim_version( " $ { PV } " , 2)} "
SRC_URI = " ${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \
file : / / run - ptest \
file : / / 0001 - Fix - DATADIRNAME - on - uclibc - Linux . patch \
file : / / 0001 - Remove - the - warning - about - deprecated - paths - in - schemas . patch \
file : / / 0001 - Install - gio - querymodules - as - libexec_PROGRAM . patch \
file : / / 0001 - Do - not - ignore - return - value - of - write . patch \
file : / / 0010 - Do - not - hardcode - python - path - into - various - tools . patch \
file : / / 0001 - Set - host_machine - correctly - when - building - with - mingw3 . patch \
file : / / 0001 - Do - not - write - bindir - into - pkg - config - files . patch \
file : / / 0001 - meson - Run - atomics - test - on - clang - as - well . patch \
file : / / 0001 - gio - tests - resources . c - comment - out - a - build - host - only - .patch \
2021-05-05 08:45:55 -04:00
file : / / 0001 - gio - tests - codegen . py - bump - timeout - to - 100 - seconds . patch \
2020-07-08 10:42:25 -04:00
"
SRC_URI_append_class - native = " file://relocate-modules.patch "
2021-10-06 15:27:34 -04:00
SRC_URI [ sha256sum ] = " 200d7df811c5ba634afbf109f14bb40ba7fde670e89389885da14e27c0840742 "
2020-07-08 10:42:25 -04:00
# Find any meson cross files in FILESPATH that are relevant for the current
# build ( using siteinfo ) and add them to EXTRA_OEMESON .
inherit siteinfo
def find_meson_cross_files ( d ) :
if bb . data .inherits_class ( ' native ' , d ) :
return " "
2021-05-05 08:45:55 -04:00
thisdir = os . path .normpath ( d . getVar ( " THISDIR " ) )
2020-07-08 10:42:25 -04:00
import collections
sitedata = siteinfo_data ( d )
# filename - > found
files = collections . OrderedDict ( )
for path in d . getVar ( " FILESPATH " ) .split ( " : " ) :
for element in sitedata :
filename = os . path .normpath ( os . path .join ( path , " meson.cross.d " , element ) )
2021-05-05 08:45:55 -04:00
sanitized_path = filename . replace ( thisdir , " ${THISDIR} " )
if sanitized_path = = filename :
if os . path .exists ( filename ) :
bb . error ( " Cannot add '%s' to --cross-file, because it's not relative to THISDIR '%s' and sstate signature would contain this full path " % ( filename , thisdir ) )
continue
files [ filename . replace ( thisdir , " ${THISDIR} " ) ] = os . path .exists ( filename )
2020-07-08 10:42:25 -04:00
items = [ " --cross-file= " + k for k , v in files . items ( ) if v ]
d . appendVar ( " EXTRA_OEMESON " , " " + " " .join ( items ) )
items = [ " %s:%s " % ( k , " True " if v else " False " ) for k , v in files . items ( ) ]
d . appendVarFlag ( " do_configure " , " file-checksums " , " " + " " .join ( items ) )
python ( ) {
find_meson_cross_files ( d )
}