Moved complex pragmas for xlib and cairo into separate included files. Fixed xkb bindings.
This commit is contained in:
parent
f54cb2e323
commit
02ca9e3b59
8 changed files with 263 additions and 322 deletions
|
|
@ -7,17 +7,7 @@
|
|||
import
|
||||
cairo, x, xlib, xrender
|
||||
|
||||
when defined(use_pkg_config) or defined(use_pkg_config_static):
|
||||
{.pragma: libcairo, cdecl.}
|
||||
else:
|
||||
when defined(windows):
|
||||
const LIB_CAIRO* = "libcairo-2.dll"
|
||||
elif defined(macosx):
|
||||
const LIB_CAIRO* = "libcairo.dylib"
|
||||
else:
|
||||
const LIB_CAIRO* = "libcairo.so(|.2)"
|
||||
{.pragma: libcairo, cdecl, dynlib: LIB_CAIRO.}
|
||||
|
||||
include "cairo_pragma.nim"
|
||||
|
||||
proc xlib_surface_create*(dpy: PDisplay, drawable: TDrawable, visual: PVisual,
|
||||
width, height: int32): PSurface{.cdecl,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue