text: {
    "targets": [{
      "target_name": "secp256k1",
      "variables": {
        "conditions": [
          [
            "OS=='win'", {
              "with_gmp%": "false"
            }, {
              "with_gmp%": "<!(utils/has_lib.sh gmpxx && utils/has_lib.sh gmp)"
            }
          ]
        ]
      },
      "sources": [
        "./src/addon.cc",
        "./src/privatekey.cc",
        "./src/publickey.cc",
        "./src/signature.cc",
        "./src/ecdsa.cc",
        "./src/ecdh.cc",
        "./src/secp256k1-src/src/secp256k1.c",
        "./src/secp256k1-src/contrib/lax_der_parsing.c",
        "./src/secp256k1-src/contrib/lax_der_privatekey_parsing.c"
      ],
      "include_dirs": [
        "./src/secp256k1-src",
        "./src/secp256k1-src/contrib",
        "./src/secp256k1-src/include",
        "./src/secp256k1-src/src",
        "<!(node -e \"require('nan')\")",
        "/usr/local/include"
      ],
      "defines": [
        "ENABLE_MODULE_ECDH=1",
        "ENABLE_MODULE_RECOVERY=1"
      ],
      "cflags": [
        "-Wall",
        "-Wno-maybe-uninitialized",
        "-Wno-nonnull-compare",
        "-Wno-uninitialized",
        "-Wno-unused-function",
        "-Wextra"
      ],
      "cflags_cc+": [
        "-std=c++0x"
      ],
      "conditions": [
        [
          "with_gmp=='true'", {
            "defines": [
              "HAVE_LIBGMP=1",
              "USE_NUM_GMP=1",
              "USE_FIELD_INV_NUM=1",
              "USE_SCALAR_INV_NUM=1"
            ],
            "libraries": [
              "-lgmpxx",
              "-lgmp"
            ]
          }, {
            "defines": [
              "USE_NUM_NONE=1",
              "USE_FIELD_INV_BUILTIN=1",
              "USE_SCALAR_INV_BUILTIN=1"
            ]
          }
        ],
        [
          "target_arch=='x64' and OS!='win'", {
            "defines": [
              "HAVE___INT128=1",
              "USE_ASM_X86_64=1",
              "USE_FIELD_5X52=1",
              "USE_FIELD_5X52_INT128=1",
              "USE_SCALAR_4X64=1"
            ]
          }, {
            "defines": [
              "USE_FIELD_10X26=1",
              "USE_SCALAR_8X32=1"
            ]
          }
        ],
        [
          "OS=='mac'", {
            "libraries": [
              "-L/usr/local/lib"
            ],
            "xcode_settings": {
              "MACOSX_DEPLOYMENT_TARGET": "10.7",
              "OTHER_CPLUSPLUSFLAGS": [
                "-stdlib=libc++"
              ]
            }
          }
        ]
      ]
    }]
  }
  