{
    "targets": [
        {
            "target_name": "pyjs-native",
            "sources": [
                "src/pyjs.cc",
                "src/jsobject.cc",
                "src/typeconv.cc",
                "src/gil-lock.cc",
                "src/pyjsfunction.cc",
                "src/pymodule.cc",
                "src/error.cc"
            ],
            "include_dirs" : [
                "<!(node -e \"require('nan')\")"
            ],
            "conditions": [
                ["OS=='win'", {

                }, {
                    "cflags": [
                        "<!(python3-config --includes)"
                    ],
                    "ldflags": [
                        "<!(python3-config --ldflags)"
                    ]
                }]
            ]
        }
    ]
}

{
    "targets": [
        {
            "target_name": "pyjs-native",
            "sources": [
                "src/pyjs.cc",
                "src/jsobject.cc",
                "src/typeconv.cc",
                "src/gil-lock.cc",
                "src/pyjsfunction.cc",
                "src/pymodule.cc",
                "src/error.cc"
            ],
            "include_dirs" : [
                "<!(node -e \"require('nan')\")"
            ],
            "conditions": [
                ["OS=='win'", {

                }, ["OS=='osx'", {
                    "xcode_settings": {
                        "OTHER_CFLAGS": [
                            "<!(python3-config --includes)"
                        ],
                        "OTHER_LDFLAGS": [
                            "<!(python3-config --ldflags)"
                        ]
                    }
                }, {
                    "cflags": [
                        "<!(python3-config --includes)"
                    ],
                    "ldflags": [
                        "<!(python3-config --ldflags)"
                    ]
                }]]
            ]
        }
    ]
}

support for mac?