-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathcog-meson.inc
19 lines (16 loc) · 941 Bytes
/
cog-meson.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
inherit meson
PACKAGECONFIG[dbus] = "-Dcog_dbus_control=system -Dcog_dbus_system_owner=${COG_DBUS_OWN_USER},-Dcog_dbus_control=user"
PACKAGECONFIG[drm] = ",,wpebackend-fdo libdrm virtual/libgbm libinput"
PACKAGECONFIG[gtk4] = ",,gtk4"
PACKAGECONFIG[headless] = ",,wpebackend-fdo"
PACKAGECONFIG[soup2] = "-Dwpe_api=1.0,,libsoup-2.4"
PACKAGECONFIG[weston-direct-display] = "-Dwayland_weston_direct_display=true,-Dwayland_weston_direct_display=false,weston"
PACKAGECONFIG[wl] = ",,wpebackend-fdo"
# possible platforms: drm, headless, wayland (COG_PLATFORM_WL)
python __anonymous() {
packageconfig = (d.getVar("PACKAGECONFIG") or "").split()
available_platforms = {'drm': 'drm', 'gtk4': 'gtk4', 'headless': 'headless', 'wl': 'wayland'}
platforms = [platform for flag, platform in available_platforms.items() if flag in packageconfig]
if platforms:
d.appendVar("EXTRA_OEMESON", f" -Dplatforms={','.join(platforms)}")
}