Merge pull request #75697 from georgewhewell/add-kodi-gbm
kodi: add option for GBM backend
This commit is contained in:
commit
4e3d5eb1f7
@ -31,6 +31,7 @@
|
|||||||
, vdpauSupport ? true, libvdpau ? null
|
, vdpauSupport ? true, libvdpau ? null
|
||||||
, useWayland ? false, wayland ? null, wayland-protocols ? null
|
, useWayland ? false, wayland ? null, wayland-protocols ? null
|
||||||
, waylandpp ? null, libxkbcommon ? null
|
, waylandpp ? null, libxkbcommon ? null
|
||||||
|
, useGbm ? false, mesa ? null, libinput ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert dbusSupport -> dbus != null;
|
assert dbusSupport -> dbus != null;
|
||||||
@ -185,6 +186,11 @@ in stdenv.mkDerivation {
|
|||||||
wayland waylandpp
|
wayland waylandpp
|
||||||
# Not sure why ".dev" is needed here, but CMake doesn't find libxkbcommon otherwise
|
# Not sure why ".dev" is needed here, but CMake doesn't find libxkbcommon otherwise
|
||||||
libxkbcommon.dev
|
libxkbcommon.dev
|
||||||
|
]
|
||||||
|
++ lib.optional useGbm [
|
||||||
|
libxkbcommon.dev
|
||||||
|
mesa.dev
|
||||||
|
libinput.dev
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -207,6 +213,9 @@ in stdenv.mkDerivation {
|
|||||||
] ++ lib.optional useWayland [
|
] ++ lib.optional useWayland [
|
||||||
"-DCORE_PLATFORM_NAME=wayland"
|
"-DCORE_PLATFORM_NAME=wayland"
|
||||||
"-DWAYLAND_RENDER_SYSTEM=gl"
|
"-DWAYLAND_RENDER_SYSTEM=gl"
|
||||||
|
] ++ lib.optional useGbm [
|
||||||
|
"-DCORE_PLATFORM_NAME=gbm"
|
||||||
|
"-DGBM_RENDER_SYSTEM=gles"
|
||||||
];
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
@ -22674,6 +22674,8 @@ in
|
|||||||
|
|
||||||
kodiPlainWayland = callPackage ../applications/video/kodi { useWayland = true; };
|
kodiPlainWayland = callPackage ../applications/video/kodi { useWayland = true; };
|
||||||
|
|
||||||
|
kodiGBM = callPackage ../applications/video/kodi { useGbm = true; };
|
||||||
|
|
||||||
kodiPlugins = recurseIntoAttrs (callPackage ../applications/video/kodi/plugins.nix {});
|
kodiPlugins = recurseIntoAttrs (callPackage ../applications/video/kodi/plugins.nix {});
|
||||||
|
|
||||||
kodi = wrapKodi {
|
kodi = wrapKodi {
|
||||||
@ -22684,6 +22686,10 @@ in
|
|||||||
kodi = kodiPlainWayland;
|
kodi = kodiPlainWayland;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
kodi-gbm = wrapKodi {
|
||||||
|
kodi = kodiGBM;
|
||||||
|
};
|
||||||
|
|
||||||
kodi-cli = callPackage ../tools/misc/kodi-cli { };
|
kodi-cli = callPackage ../tools/misc/kodi-cli { };
|
||||||
|
|
||||||
kodi-retroarch-advanced-launchers =
|
kodi-retroarch-advanced-launchers =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user