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 Feb 22, 2015
1 parent eb8f50b commit e6be9ae
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 e6be9ae

Please sign in to comment.