annotate semiconginev2/thirdparty/x11/x11pragma.nim @ 1225:27cd1c21290e compiletime-tests

did: refactor resources
author sam <sam@basx.dev>
date Wed, 17 Jul 2024 22:20:59 +0700
parents 56781cc0fc7c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
1 # included from xlib bindings
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
4 when defined(use_pkg_config) or defined(use_pkg_config_static):
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
5 {.pragma: libx11, cdecl, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
6 {.pragma: libx11c, cdecl.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
7 when defined(use_pkg_config_static):
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
8 {.passl: gorge("pkg-config x11 --static --libs").}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
9 else:
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
10 {.passl: gorge("pkg-config x11 --libs").}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
11 else:
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
12 when defined(macosx):
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
13 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
14 libX11* = "libX11.dylib"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
15 else:
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
16 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
17 libX11* = "libX11.so(|.6)"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
18
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
19 {.pragma: libx11, cdecl, dynlib: libX11, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
20 {.pragma: libx11c, cdecl, dynlib: libX11.}