32 lines
755 B
Plaintext
32 lines
755 B
Plaintext
|
{
|
||
|
"targets": [
|
||
|
{
|
||
|
"target_name": "fontmanager",
|
||
|
"sources": [ "src/FontManager.cc" ],
|
||
|
"include_dirs" : [
|
||
|
"<!(node -e \"require('nan')\")"
|
||
|
],
|
||
|
"conditions": [
|
||
|
['OS=="mac"', {
|
||
|
"sources": ["src/FontManagerMac.mm"],
|
||
|
"link_settings": {
|
||
|
"libraries": ["CoreText.framework", "Foundation.framework"]
|
||
|
}
|
||
|
}],
|
||
|
['OS=="win"', {
|
||
|
"sources": ["src/FontManagerWindows.cc"],
|
||
|
"link_settings": {
|
||
|
"libraries": ["Dwrite.lib"]
|
||
|
}
|
||
|
}],
|
||
|
['OS=="linux"', {
|
||
|
"sources": ["src/FontManagerLinux.cc"],
|
||
|
"link_settings": {
|
||
|
"libraries": ["-lfontconfig"]
|
||
|
}
|
||
|
}]
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|