Mercurial > games > semicongine
comparison semiconginev2/thirdparty/x11/x11pragma.nim @ 1227:4d97cfc4888b
merge
author | sam <sam@basx.dev> |
---|---|
date | Wed, 17 Jul 2024 23:45:43 +0700 |
parents | 56781cc0fc7c |
children |
comparison
equal
deleted
inserted
replaced
1170:2addc5f6804f | 1227:4d97cfc4888b |
---|---|
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.} |