Upgrade to Pro — share decks privately, control downloads, hide ads and more …

node-gyp - BayNode Meetup September 6, 2012

tootallnate
September 06, 2012

node-gyp - BayNode Meetup September 6, 2012

Slides from my talk at BayNode on September 6, 2012. Talked about the history of node.js' build system and introduced node-gyp.

tootallnate

September 06, 2012
Tweet

More Decks by tootallnate

Other Decks in Technology

Transcript

  1. node-gyp
    Building your Node.js
    addons since v0.6!
    Nathan Rajlich
    BayNode
    September 2012

    View Slide

  2. About me

    View Slide

  3. About me
    * My name is Nathan Rajlich

    View Slide

  4. About me
    * My name is Nathan Rajlich
    * I’m an engineer at LearnBoost

    View Slide

  5. About me
    * My name is Nathan Rajlich
    * I’m an engineer at LearnBoost
    * I’m one of the Node.js core comitters

    View Slide

  6. About me
    * My name is Nathan Rajlich
    * I’m an engineer at LearnBoost
    * I’m one of the Node.js core comitters
    * I enjoy running C/C++ code in Node.js

    View Slide

  7. History of
    Node’s Build System

    View Slide

  8. History of
    Node’s Build System

    View Slide

  9. History of
    Node’s Build System

    View Slide

  10. History of
    Node’s Build System

    View Slide

  11. History of
    Node’s Build System

    View Slide

  12. History of
    Node’s Build System

    View Slide

  13. History of
    Node’s Build System

    View Slide

  14. History of
    Node’s Build System

    View Slide

  15. History of
    Node’s Build System

    View Slide

  16. History of
    Node’s Build System

    View Slide

  17. History of
    Node’s Build System

    View Slide

  18. History of
    Node’s Build System

    View Slide

  19. History of
    Node’s Build System

    View Slide

  20. History of
    Node’s Build System

    View Slide

  21. History of
    Node’s Build System

    View Slide

  22. History of
    Node’s Build System

    View Slide

  23. History of
    Node’s Build System

    View Slide

  24. History of
    Node’s Build System

    View Slide

  25. History of
    Node’s Build System

    View Slide

  26. History of
    Node’s Build System

    View Slide

  27. History of
    Node’s Build System

    View Slide

  28. node-gyp is born!

    View Slide

  29. node-gyp
    invokes
    “gyp”
    invokes “MSVC”
    or “make”

    View Slide

  30. node-gyp
    invokes
    “clean”, “configure”
    and “build” together

    View Slide

  31. node-gyp

    View Slide

  32. node-gyp
    * You DON’T need to install node-gyp

    View Slide

  33. node-gyp
    * You DON’T need to install node-gyp
    * It comes bundled with “npm” as of v1.1.6

    View Slide

  34. node-gyp
    * You DON’T need to install node-gyp
    * It comes bundled with “npm” as of v1.1.6
    * When you run “npm install” on a module with a
    “binding.gyp” file in it, then npm will use its
    own internal copy of node-gyp to build it.

    View Slide

  35. go to iTerm 2!

    View Slide