1191
|
1 # included from xlib bindings
|
|
2
|
|
3
|
|
4 when defined(use_pkg_config) or defined(use_pkg_config_static):
|
|
5 {.pragma: libx11, cdecl, importc.}
|
|
6 {.pragma: libx11c, cdecl.}
|
|
7 when defined(use_pkg_config_static):
|
|
8 {.passl: gorge("pkg-config x11 --static --libs").}
|
|
9 else:
|
|
10 {.passl: gorge("pkg-config x11 --libs").}
|
|
11 else:
|
|
12 when defined(macosx):
|
|
13 const
|
|
14 libX11* = "libX11.dylib"
|
|
15 else:
|
|
16 const
|
|
17 libX11* = "libX11.so(|.6)"
|
|
18
|
|
19 {.pragma: libx11, cdecl, dynlib: libX11, importc.}
|
|
20 {.pragma: libx11c, cdecl, dynlib: libX11.}
|