# Add your copyright and license header
#
{
  "targets": [
    {
      "target_name": "widlNanAddon",
      "sources": [
        "addon.cpp",

        "gen/nan__student.cpp",

        "gen/nan__student2.cpp",

        "gen/nan__student3.cpp",

        "gen/nan__student4.cpp",

        "student.cpp",

        "student2.cpp",

        "student3.cpp",

        "student4.cpp",

      ],
      "include_dirs": [
        "<!(node -e \"require('nan')\")",
        "."
      ],
      "cflags!": [
        "-fno-exceptions"
      ],
      "cflags": [
        "-std=c++11"
      ],
      "cflags_cc!": [
        "-fno-exceptions"
      ],
      "libraries": [
      ],
      "xcode_settings": {
        "OTHER_CFLAGS": [
          "-std=c++11"
        ]
      },
      "conditions": [
        [
          "OS!=\"win\"",
          {
            "cflags+": [
              "-std=c++11"
            ],
            "cflags_c+": [
              "-std=c++11"
            ],
            "cflags_cc+": [
              "-std=c++11"
            ]
          }
        ],
        [
          "OS==\"mac\"",
          {
            "xcode_settings": {
              "OTHER_CPLUSPLUSFLAGS": [
                "-std=c++11",
                "-stdlib=libc++"
              ],
              "OTHER_LDFLAGS": [
                "-stdlib=libc++"
              ],
              "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
              "MACOSX_DEPLOYMENT_TARGET": "10.8"
            }
          }
        ]
      ]
    }
  ]
}
