Files
RedBear-OS/recipes/libs/glib/source/tests/lib/glibconfig.py.in
T
vasilito facf0c92e0 feat: track all source trees in git — full fork offline-first model
Red Bear OS is a full fork. All sources must be available from git clone
with zero network access. Removed gitignore rules that excluded fetched
source trees under recipes/*/source/, local/recipes/kde/*/source/,
local/recipes/qt/*/source/, and vendor source trees.

Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded.

127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt
frameworks, mesa, wayland, DRM drivers, and every other recipe source.
2026-05-14 10:55:53 +01:00

30 lines
1007 B
Plaintext

# Copyright 2025 Simon McVittie
# SPDX-License-Identifier: LGPL-2.1-or-later
import os
from pathlib import Path
if "G_TEST_BUILDDIR" in os.environ:
# During build-time testing, we search the build tree.
# We can't use the value of G_TEST_BUILDDIR here because we don't
# know how deeply nested the current build directory is.
project_build_root = Path(__file__).resolve().parent.parent.parent
# Where to find GLib-2.0.gir, etc. as a list of Path, highest priority first
GIR_XML_SEARCH_PATHS = [
project_build_root / "girepository" / "introspection",
]
else:
# During as-installed testing, we search the final paths.
# This is a subset of the search path from girparser.c locate_gir(),
# with only the directories that are part of GLib's prefix,
# excluding XDG_DATA_HOME, XDG_DATA_DIRS and the hard-coded
# /usr/share fallback
GIR_XML_SEARCH_PATHS = [
Path(r"@glib_girdir@"),
Path(r"@glib_datadir@") / r"@gir_suffix@",
]