Mercurial > games > semicongine
comparison semiconginev2/old/thirdparty/x11/x11pragma.nim @ 1218:56781cc0fc7c compiletime-tests
did: renamge main package
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 17 Jul 2024 21:01:37 +0700 |
| parents | semicongine/old/thirdparty/x11/x11pragma.nim@239adab121a3 |
| children |
comparison
equal
deleted
inserted
replaced
| 1217:f819a874058f | 1218:56781cc0fc7c |
|---|---|
| 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.} |
