# // This is a generated file, modify: generate/templates/binding.gyp.

{
  "targets": [
    {
      "target_name": "nodegit",

      "dependencies": [
        "<(module_root_dir)/vendor/libgit2.gyp:libgit2"
      ],

      "sources": [
        "src/nodegit.cc",
        "src/wrapper.cc",
        "src/functions/copy.cc",
        "src/str_array_converter.cc",
        {% each %}
          {% if type != "enum" %}
            "src/{{ name }}.cc",
          {% endif %}
        {% endeach %}
      ],

      "include_dirs": [
        "vendor/libv8-convert",
        "<!(node -e \"require('nan')\")"
      ],

      "cflags": [
        "-Wall",
        "-std=c++11"
      ],

      "conditions": [
        [
          "OS=='mac'", {
            "xcode_settings": {
              "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
              "MACOSX_DEPLOYMENT_TARGET": "10.7",

              "WARNING_CFLAGS": [
                "-Wno-unused-variable",
                "-Wint-conversions",
                "-Wmissing-field-initializers"
              ],
              "OTHER_CPLUSPLUSFLAGS" : [
                "-std=gnu++11",
                "-stdlib=libc++"
              ],
              "OTHER_LDFLAGS": [
                "-stdlib=libc++"
              ]
            }
          }
        ]
      ]
    }
  ]
}

@@ -1254,32 +1254,214 @@
   %7D%0A          %7D%0A
+        %5D, %5B%0A          %22OS=='win'%22, %7B%0A            %22cflags%22: %5B%0A              %22/EHsc%22%0A            %5D,%0A            %22defines%22: %5B%0A            %22_HAS_EXCEPTIONS=1%22%0A            %5D%0A          %7D%0A
         %5D%0A      

Fix iojs build in windows