From ff8d399b402673f9b6d7f135070dedd18f0a8ed4 Mon Sep 17 00:00:00 2001 From: Luke Hertert Date: Thu, 15 Oct 2015 15:43:31 -0400 Subject: [PATCH] Move to node_gyp for compiling ozw on windows I moved the compilation to node_gyp for open zwave. This lets you compile the stock openzwave project with whatever version of visual studio you have for whatever architecture you have. I also moved the expect location of the open zwave files to a central location to be more in line with the non-windows environment (~/AppData/Local/OpenZwave) and this location is stored in an environment variable. --- binding.gyp | 15 +++++++-------- ozw-windows-install.ps1 | 1 + src/openzwave.hpp | 1 - 3 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 ozw-windows-install.ps1 diff --git a/binding.gyp b/binding.gyp index 391f72df..46150374 100644 --- a/binding.gyp +++ b/binding.gyp @@ -40,22 +40,21 @@ "cflags": [ "-Wno-ignored-qualifiers -Wno-write-strings -Wno-unknown-pragmas" ], }], ['OS=="win"', { + "variables": { + "OZW_HOME": " #endif -#include #include #include "nan.h"