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
|
|
@ -2,21 +2,7 @@
|
|||
import
|
||||
x
|
||||
|
||||
when defined(use_pkg_config) or defined(use_pkg_config_static):
|
||||
{.pragma: libx11, cdecl, importc.}
|
||||
when defined(use_pkg_config_static):
|
||||
{.passl: gorge("pkg-config x11 --static --libs").}
|
||||
else:
|
||||
{.passl: gorge("pkg-config x11 --libs").}
|
||||
else:
|
||||
when defined(macosx):
|
||||
const
|
||||
libX11* = "libX11.dylib"
|
||||
else:
|
||||
const
|
||||
libX11* = "libX11.so"
|
||||
|
||||
{.pragma: libx11, cdecl, dynlib: libX11, importc.}
|
||||
include "x11pragma.nim"
|
||||
|
||||
type
|
||||
cunsigned* = cint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue