diff options
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0_2.66.7.bb')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0_2.66.7.bb | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.66.7.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.66.7.bb new file mode 100644 index 0000000000..15e9dbaf6f --- /dev/null +++ b/meta/recipes-core/glib-2.0/glib-2.0_2.66.7.bb | |||
@@ -0,0 +1,51 @@ | |||
1 | require glib.inc | ||
2 | |||
3 | PE = "1" | ||
4 | |||
5 | SHRT_VER = "${@oe.utils.trim_version("${PV}", 2)}" | ||
6 | |||
7 | SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \ | ||
8 | file://run-ptest \ | ||
9 | file://0001-Fix-DATADIRNAME-on-uclibc-Linux.patch \ | ||
10 | file://Enable-more-tests-while-cross-compiling.patch \ | ||
11 | file://0001-Remove-the-warning-about-deprecated-paths-in-schemas.patch \ | ||
12 | file://0001-Install-gio-querymodules-as-libexec_PROGRAM.patch \ | ||
13 | file://0001-Do-not-ignore-return-value-of-write.patch \ | ||
14 | file://0010-Do-not-hardcode-python-path-into-various-tools.patch \ | ||
15 | file://0001-Set-host_machine-correctly-when-building-with-mingw3.patch \ | ||
16 | file://0001-Do-not-write-bindir-into-pkg-config-files.patch \ | ||
17 | file://0001-meson-Run-atomics-test-on-clang-as-well.patch \ | ||
18 | file://0001-gio-tests-resources.c-comment-out-a-build-host-only-.patch \ | ||
19 | file://0001-gio-tests-codegen.py-bump-timeout-to-100-seconds.patch \ | ||
20 | file://0001-tests-codegen.py-removing-unecessary-print-statement.patch \ | ||
21 | " | ||
22 | |||
23 | SRC_URI_append_class-native = " file://relocate-modules.patch" | ||
24 | |||
25 | SRC_URI[sha256sum] = "09f158769f6f26b31074e15b1ac80ec39b13b53102dfae66cfe826fb2cc65502" | ||
26 | |||
27 | # Find any meson cross files in FILESPATH that are relevant for the current | ||
28 | # build (using siteinfo) and add them to EXTRA_OEMESON. | ||
29 | inherit siteinfo | ||
30 | def find_meson_cross_files(d): | ||
31 | if bb.data.inherits_class('native', d): | ||
32 | return "" | ||
33 | |||
34 | corebase = d.getVar("COREBASE") | ||
35 | import collections | ||
36 | sitedata = siteinfo_data(d) | ||
37 | # filename -> found | ||
38 | files = collections.OrderedDict() | ||
39 | for path in d.getVar("FILESPATH").split(":"): | ||
40 | for element in sitedata: | ||
41 | filename = os.path.normpath(os.path.join(path, "meson.cross.d", element)) | ||
42 | files[filename.replace(corebase, "${COREBASE}")] = os.path.exists(filename) | ||
43 | |||
44 | items = ["--cross-file=" + k for k,v in files.items() if v] | ||
45 | d.appendVar("EXTRA_OEMESON", " " + " ".join(items)) | ||
46 | items = ["%s:%s" % (k, "True" if v else "False") for k,v in files.items()] | ||
47 | d.appendVarFlag("do_configure", "file-checksums", " " + " ".join(items)) | ||
48 | |||
49 | python () { | ||
50 | find_meson_cross_files(d) | ||
51 | } | ||