Permalink
Browse files

defined variables to specify where anttweakbar is installed

  • Loading branch information...
mikeseven committed Nov 17, 2014
1 parent b4dbc70 commit 50e7e86d4b6f54213613acfe8a4036f8fa24c28c
Showing with 6 additions and 3 deletions.
  1. +6 −3 binding.gyp
View
@@ -4,7 +4,10 @@
},
'conditions': [
# Replace gyp platform with node platform, blech
['platform == "mac"', {'variables': {'platform': 'darwin'}}],
['platform == "mac"', {'variables': {
'platform': 'darwin',
'ANTTWEAKBAR_ROOT': '/usr/local/Cellar/anttweakbar/1.16',
}}],
['platform == "win"', {'variables': {'platform': 'win32'}}],
],
'targets': [
@@ -23,8 +26,8 @@
'conditions': [
['OS=="linux"', {'libraries': ['-lAntTweakBar', '<!@(pkg-config --libs glfw3 glew)']}],
['OS=="mac"', {
'include_dirs': [ '<!@(pkg-config glfw3 glew --cflags-only-I | sed s/-I//g)','-I/usr/local/Cellar/anttweakbar/1.16/include'],
'libraries': [ '<!@(pkg-config --libs glfw3 glew)', '-L/usr/local/Cellar/anttweakbar/1.16/lib', '-lAntTweakBar', '-framework OpenGL']
'include_dirs': [ '<!@(pkg-config glfw3 glew --cflags-only-I | sed s/-I//g)','-I<(ANTTWEAKBAR_ROOT)/include'],
'libraries': [ '<!@(pkg-config --libs glfw3 glew)', '-L<(ANTTWEAKBAR_ROOT)/lib', '-lAntTweakBar', '-framework OpenGL']
}],
['OS=="win"', {
'include_dirs': [

0 comments on commit 50e7e86

Please sign in to comment.