Merge pull request #38930 from xeji/qemu-gtk

qemu: add option to build with gtk support
This commit is contained in:
Jörg Thalheim 2018-04-17 12:44:56 +01:00 committed by GitHub
commit f21e931c98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,7 @@
, seccompSupport ? stdenv.isLinux, libseccomp
, pulseSupport ? !stdenv.isDarwin, libpulseaudio
, sdlSupport ? !stdenv.isDarwin, SDL2
, gtkSupport ? !xenSupport, gtk3, gettext, gnome3
, vncSupport ? true, libjpeg, libpng
, spiceSupport ? !stdenv.isDarwin, spice, spice-protocol
, usbredirSupport ? spiceSupport, usbredir
@ -55,6 +56,7 @@ stdenv.mkDerivation rec {
++ optionals numaSupport [ numactl ]
++ optionals pulseSupport [ libpulseaudio ]
++ optionals sdlSupport [ SDL2 ]
++ optionals gtkSupport [ gtk3 gettext gnome3.vte ]
++ optionals vncSupport [ libjpeg libpng ]
++ optionals spiceSupport [ spice-protocol spice ]
++ optionals usbredirSupport [ usbredir ]
@ -110,6 +112,7 @@ stdenv.mkDerivation rec {
++ optional hostCpuOnly "--target-list=${hostCpuTargets}"
++ optional stdenv.isDarwin "--enable-cocoa"
++ optional stdenv.isLinux "--enable-linux-aio"
++ optional gtkSupport "--enable-gtk"
++ optional xenSupport "--enable-xen"
++ optional openGLSupport "--enable-opengl"
++ optional virglSupport "--enable-virglrenderer";