From b8e0bfd3762f64779f032def6260841f38f70dc7 Mon Sep 17 00:00:00 2001 From: Spongman Date: Tue, 10 Apr 2018 16:50:36 -0700 Subject: [PATCH 1/2] fix VS2017 build --- binding.gyp | 39 ++++++++++++++++++++++++++++++--------- src/glew/gles2glewimpl.cc | 2 ++ 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/binding.gyp b/binding.gyp index 7801d88..3207117 100644 --- a/binding.gyp +++ b/binding.gyp @@ -1,4 +1,21 @@ { + 'conditions': [ + ['OS=="win"', { + 'variables': { + 'has_glfw': 'true', + 'has_nexus': '', + 'has_bcm': '', + 'has_raspbian': '' + } + }, { # 'OS!="win"' + 'variables': { + 'has_glfw': ' #include #include +#ifndef _WIN32 #include +#endif #include #include "../gles2impl.h" From fc1d9639e371019a344ca87609c9ebfd0093a12f Mon Sep 17 00:00:00 2001 From: Spongman Date: Tue, 10 Apr 2018 16:55:26 -0700 Subject: [PATCH 2/2] require node-glfw for building --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 6309fdb..0b1f754 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,9 @@ "dependencies": { "nan": "^2.1.0" }, + "devDependencies": { + "node-glfw": "^0.4.6" + }, "engines": { "node" : ">=4.0.0" },