/gyp

Third party gyp

Primary LanguagePythonMIT LicenseMIT

gyp

use

  1. download third party, sh third-party.sh

  2. config your binding.gyp

    if dependent on zlib, you can add the following code to binding.gyp

    "dependencies": [
        "./gyp/zlib.gyp:zlib"
    ]

    Sample:

    {
        "targets": [{
            "target_name": "addon",
            
            ...
    
            "dependencies": [
                "./gyp/zlib.gyp:zlib"
            ]
    
            ...
            
        }]
    }

F&Q

  • for windows

    • require cygwin, need wget
    • giflib, 'not found unistd.h', you can delete #include <unistd.h>
    • libjpeg-turbo, must require CMAKE, can download from http://www.cmake.org/download/
  • for Linux / Mac

    • require wgetcmake