Permalink
Browse files

Merge pull request #9 from Maratyszcza/develop

Makes life easier for Windows users
  • Loading branch information...
mikeseven committed Aug 7, 2014
2 parents 9a7c4cf + 5389a4d commit 1782171fff4391993681b711a032c72f9baa6c0d
Showing with 44 additions and 13 deletions.
  1. +3 −0 .gitmodules
  2. +4 −3 README.md
  3. +34 −10 binding.gyp
  4. +1 −0 deps
  5. +2 −0 src/common.h
View
@@ -0,0 +1,3 @@
[submodule "deps"]
path = deps
url = https://github.com/mikeseven/node-native-graphics-deps.git
View
@@ -30,9 +30,10 @@ Install GLEW and make sure its tests programs are working such as visualinfo. Yo
Now you can install node-glfw, the usual way: npm install node-glfw.
Installation (Windows)
-------------------------
Copy all deps/*.lib into your <Visual Studio>/VC/lib for 32-bit libraries, and <Visual Studio>/VC/lib/amd64 for 64-bit libraries.
Copy all deps/*.dll into <Windows>/System32.
----------------------
Have Visual Studio (Express version works fine) installed.
Windows dependencies are bundled with this package, so `npm install node-glfw` should work out-of-box.
Notes
-----
View
@@ -25,17 +25,41 @@
['OS=="mac"', {
'libraries': ['-lAntTweakBar', '<(module_root_dir)/deps/darwin/libglfw3.a', '-lGLEW', '-framework OpenGL'],
}],
['OS=="win"', {
'libraries': [
'AntTweakBar64.lib',
'glew64s.lib',
'glfw3dll.lib',
'opengl32.lib'
['OS=="win"',
{
'include_dirs': [
'./deps/glew/include',
'./deps/glfw/include',
'./deps/AntTweakBar/include'
],
'library_dirs': [
'./deps/glew/windows/lib/<(target_arch)',
'./deps/glfw/windows/lib-msvc120/<(target_arch)',
'./deps/AntTweakBar/windows/lib/'
],
'libraries': [
'glew32.lib',
'glfw3dll.lib',
'opengl32.lib'
],
'defines' : [
'WIN32_LEAN_AND_MEAN',
'VC_EXTRALEAN'
],
'defines' : [
'WIN32_LEAN_AND_MEAN',
'VC_EXTRALEAN'
]
'cflags' : [
'/O2','/Oy','/GL','/GF','/Gm-','/EHsc','/MT','/GS','/Gy','/GR-','/Gd'
],
'ldflags' : [
'/OPT:REF','/OPT:ICF','/LTCG'
],
'conditions': [
['target_arch=="ia32"', {
'libraries': ['AntTweakBar.lib']
}],
['target_arch=="x64"', {
'libraries': ['AntTweakBar64.lib']
}]
]
},
],
],
1 deps
Submodule deps added at 8b55b2
View
@@ -7,7 +7,9 @@
#define COMMON_H_
// OpenGL Graphics Includes
#ifndef _WIN32
#define GLEW_STATIC
#endif
#include <GL/glew.h>
#define GLFW_NO_GLU

0 comments on commit 1782171

Please sign in to comment.