-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnimssh2.cfg
53 lines (41 loc) · 1.1 KB
/
nimssh2.cfg
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
[n.global]
output = nimssh2
[n.include]
nimssh2/include
[n.exclude]
libssh2_config.h
[n.prepare]
gitremote = "https://github.com/libssh2/libssh2"
gitsparse = """
include/*
"""
[nimssh2/include/libssh2_config.h]
create = ""
[libssh2.h]
preprocess = true
defines = true
flags = "--stdcall --prefix:_"
pragma = "passL: \"-lssh2\""
pragma-win = "passL: \"-lws2_32 -lcrypto -lz -lwsock32 -lgdi32\""
pragma-lin = "passL: \"-lgcrypt -lgpg-error\""
pragma-win.static = "passL: \"-static\""
pragma-lin.static = "passL: \"-static\""
search.s = "typedef SOCKET libssh2_socket_t;"
replace.s = "typedef int libssh2_socket_t;"
[libssh2.nim]
search.t = " INNER_C_UNION"
replace.t = """ LIBSSH2_CHANNEL {.pure.} = object
LIBSSH2_LISTENER {.pure.} = object
LIBSSH2_SESSION {.pure.} = object
LIBSSH2_KNOWNHOSTS {.pure.} = object
LIBSSH2_AGENT {.pure.} = object
stat {.pure.} = object
stati64 {.pure.} = object
time_t {.importc: "time_t", header: "<time.h>".} = int
INNER_C_UNION"""
search.sz = "ssize_t"
replace.sz = "int"
search.of = "off_t"
replace.of = "int"
regex.c = """temp\-[\w]+\.nim"""
replace.c = "ssh2"