return virtio_exit_pci(pci_dev);
}
+#ifndef _WIN32\r
extern VirtIODevice *virtio_gl_init(DeviceState *dev);
static int virtio_gl_init_pci(PCIDevice *pci_dev)
{
virtio_init_pci(proxy, vdev);
return 0;
}
+#endif\r
static PCIDeviceInfo virtio_info[] = {
{
},
.qdev.reset = virtio_pci_reset,
},{
+#ifndef _WIN32\r
.qdev.name = "virtio-gl-pci",
.qdev.alias = "virtio-gl",
.qdev.size = sizeof(VirtIOPCIProxy),
},
.qdev.reset = virtio_pci_reset,
},{
+#endif\r
/* end of list */
}
};
GL_CFLAGS := -Wall -g -O2 -fno-strict-aliasing
endif
+ifndef CONFIG_WIN32\r
###########################################################
## Build openGL
# i386
endif #($(TARGET_ARCH), i386)
###########################################################
+endif #CONFIG_WIN32\r
# maru loader
obj-y += emulator.o emul_state.o process.o option.o maru_signal.o maru_sdl.o
#ifdef CONFIG_MARU
#define VIRTIOGL_DEV_NAME "virtio-gl-pci"
-extern int gl_acceleration_capability_check (void);
#endif
static const char *data_dir;
uint8_t qemu_extra_params_fw[2];
//virtio-gl
+#ifndef _WIN32
+extern int gl_acceleration_capability_check (void);
int enable_gl = 1;
+#endif
typedef struct FWBootEntry FWBootEntry;
{
DeviceState *dev;
+#ifndef _WIN32
// virtio-gl pci device
if (!enable_gl) {
// ignore virtio-gl-pci device, even if users set it in option.
return 0;
}
}
+#endif
dev = qdev_device_add(opts);
if (!dev)
qemu_opts_parse(olist, "accel=kvm", 0);
break;
case QEMU_OPTION_enable_gl:
+#ifndef _WIN32\r
enable_gl = 1;
+#endif\r
break;
case QEMU_OPTION_machine:
olist = qemu_find_opts("machine");
}
loc_set_none();
+#ifndef _WIN32\r
if (enable_gl && (gl_acceleration_capability_check () != 0)) {
enable_gl = 0;
fprintf (stderr, "Warn: GL acceleration was disabled due to the fail of GL check!\n");
}
}
}
+#endif\r
/* Open the logfile at this point, if necessary. We can't open the logfile