{
  "targets": [{
    "target_name": "addon",
    "sources": [
      "./*.cpp"
    ],
    "include_dirs" : ["<!(node -e \"require('nan')\")"]
  }]
}

{
  "targets": [{
    "target_name": "addon",
    "sources": [
      "./*.cpp",
      "../code/SoftRenderer/*.cpp"
    ],
    "include_dirs" : ["<!(node -e \"require('nan')\")","../code/SoftRenderer/"],
    "libraries": [ "winmm.lib" ]
  }]
}

add gyp config to build library