Skip to content

Instantly share code, notes, and snippets.

@genotrance
Created November 8, 2017 08:13
Show Gist options
  • Save genotrance/bb5787c79f6cd2bf7043e4e36e9ed964 to your computer and use it in GitHub Desktop.
Save genotrance/bb5787c79f6cd2bf7043e4e36e9ed964 to your computer and use it in GitHub Desktop.
Nimgen config file for libvirt
[n.global]
output = libvirt
filter = libvirt
[n.include]
libvirt/include
[n.exclude]
libvirt-common.h
[libvirt/include/libvirt/libvirt-common.h]
create = ""
[libvirt/libvirt-host.h]
search = VIR_EXPORT_VAR
replace = extern
noprocess = true
[libvirt/libvirt.h]
preprocess = true
defines = true
recurse = true
ppflags = "-D__VIR_LIBVIRT_H_INCLUDES__"
search = "# define __VIR_LIBVIRT_H_INCLUDES__"
replace = """
# ifndef __VIR_LIBVIRT_H_INCLUDES__
# #define __VIR_LIBVIRT_H_INCLUDES__
# endif
"""
dynlib.win = libvirt.dll
dynlib.lin = libvirt.so
dynlib.mac = libvirt.dylib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment