Skip to content

Commit 897bf23

Browse files
committed
Enable freetype for windows
1 parent 46a26de commit 897bf23

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

binding.gyp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
'with_jpeg%': 'false',
77
'with_gif%': 'false',
88
'with_pango%': 'false',
9-
'with_freetype%': 'false'
9+
'with_freetype%': 'true'
1010
}
1111
}, { # 'OS!="win"'
1212
'variables': {
@@ -106,7 +106,13 @@
106106
],
107107
'conditions': [
108108
['OS=="win"', {
109-
# No support for windows right now.
109+
'libraries' : [
110+
'-l<(GTK_Root)/lib/freetype.lib',
111+
],
112+
'include_dirs': [
113+
'<(GTK_Root)/include/cairo',
114+
'<(GTK_Root)/include/freetype2'
115+
]
110116
}, { # 'OS!="win"'
111117
'include_dirs': [ # tried to pass through cflags but failed.
112118
# Need to include the header files of cairo AND freetype.

0 commit comments

Comments
 (0)