forked from foliojs/font-manager
-
Notifications
You must be signed in to change notification settings - Fork 13
/
binding.gyp
42 lines (42 loc) · 1.06 KB
/
binding.gyp
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
{
"targets": [
{
"target_name": "fontmanager",
"sources": [
"src/FontDescriptor.cc",
"src/FontManager.cc"
],
"include_dirs": [
"<!(node -p \"require('node-addon-api').include_dir\")"
],
"defines": [
"NAPI_DISABLE_CPP_EXCEPTIONS",
"NODE_ADDON_API_ENABLE_MAYBE"
],
"conditions": [
['OS=="mac"', {
"sources": ["src/FontManagerMac.mm"],
"link_settings": {
"libraries": ["CoreText.framework", "Foundation.framework"]
},
"cflags+": ["-fvisibility=hidden"],
"xcode_settings": {
"GCC_SYMBOLS_PRIVATE_EXTERN": "YES", # -fvisibility=hidden
}
}],
['OS=="win"', {
"sources": ["src/FontManagerWindows.cc"],
"link_settings": {
"libraries": ["Dwrite.lib"]
}
}],
['OS=="linux"', {
"sources": ["src/FontManagerLinux.cc"],
"link_settings": {
"libraries": ["-lfontconfig"]
}
}]
]
}
]
}