summary refs log tree commit diff stats
path: root/tests/deps/x11-1.0/x11pragma.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/deps/x11-1.0/x11pragma.nim')
-rw-r--r--tests/deps/x11-1.0/x11pragma.nim20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/deps/x11-1.0/x11pragma.nim b/tests/deps/x11-1.0/x11pragma.nim
new file mode 100644
index 000000000..b4c876cf0
--- /dev/null
+++ b/tests/deps/x11-1.0/x11pragma.nim
@@ -0,0 +1,20 @@
+# included from xlib bindings
+
+
+when defined(use_pkg_config) or defined(use_pkg_config_static):
+    {.pragma: libx11, cdecl, importc.}
+    {.pragma: libx11c, cdecl.}
+    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(|.6)"
+
+    {.pragma: libx11, cdecl, dynlib: libX11, importc.}
+    {.pragma: libx11c, cdecl, dynlib: libX11.}
ang/Nim/commit/tests/vm/ttouintconv.nim?h=devel&id=26d02c9120c54e0c1a92e08b9b571a89c9f1d4ff'>26d02c912 ^
000b8afd2 ^
26d02c912 ^



000b8afd2 ^
26d02c912 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77