Skip to content

Commit

Permalink
libjpeg-turbo for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Aug 19, 2014
1 parent 138abe9 commit 02d1140
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
['OS=="win"', {
'variables': {
'GTK_Root%': 'C:/GTK', # Set the location of GTK all-in-one bundle
'with_jpeg%': 'false',
'libjpeg_root%': 'C:/libjpeg-turbo',
'with_jpeg%': '<!("./util/exists.bat" C:/libjpeg-turbo)',
'with_gif%': 'false',
'with_pango%': 'false',
'with_freetype%': 'false'
Expand Down Expand Up @@ -141,7 +142,10 @@
'conditions': [
['OS=="win"', {
'libraries': [
'-l<(GTK_Root)/lib/jpeg.lib'
'-l<(libjpeg_root)/lib/jpeg-static.lib'
],
'include_dirs': [
'<(libjpeg_root)/include'
]
}, {
'libraries': [
Expand Down
2 changes: 2 additions & 0 deletions util/exists.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
if exist %1\ (echo true) else (echo false)

0 comments on commit 02d1140

Please sign in to comment.