-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnimclipboard.cfg
42 lines (31 loc) · 1006 Bytes
/
nimclipboard.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
[n.global]
output = nimclipboard
[n.include]
$output/include
[n.prepare]
git = "https://github.com/jtanx/libclipboard"
[libclipboard.h]
preprocess = true
defines = true
search = "#include \"libclipboard-config.h\""
comment = 1
ppflags-win = "-DLIBCLIPBOARD_BUILD_WIN32"
ppflags-lin = "-DLIBCLIPBOARD_BUILD_X11"
ppflags-mac = "-DLIBCLIPBOARD_BUILD_COCOA"
compile = "$output/src/clipboard_common.c"
compile-win = "$output/src/clipboard_win32.c"
compile-lin = "$output/src/clipboard_x11.c"
compile-mac = "$output/src/clipboard_cocoa.c"
pragma-win = "passC: \"-DLIBCLIPBOARD_BUILD_WIN32\""
pragma-lin = "passC: \"-DLIBCLIPBOARD_BUILD_X11 -std=gnu11\", passL: \"-lxcb -lpthread\""
pragma-mac = "passC: \"-DLIBCLIPBOARD_BUILD_COCOA -x objective-c\""
pragma-mac.2 = "passL: \"-framework Cocoa\""
[libclipboard.nim]
search.c = type
replace.c = "type\n clipboard_c* = object\n"
search.b = _Bool
replace.b = bool
search.t = uint32_t
replace.t = uint32
regex.2 = """temp\-[\w]+\.nim"""
replace.2 = "clip"