{
  "name": "mnm",
  "description": "Make Node Module is a build tool for making native node.js modules.",
  "author": {
    "name": "Joe Ferner",
    "email": "joe.ferner@nearinfinity.com"
  },
  "keywords": [
    "native",
    "waf",
    "node-waf",
    "compile",
    "build"
  ],
  "version": "0.0.4",
  "engines": {
    "node": ">=0.6.0"
  },
  "maintainers": [
    {
      "name": "Jeff Kunkle",
      "email": "jeff.kunkle@nearinfinity.com"
    },
    {
      "name": "Joe Ferner",
      "email": "joe.ferner@nearinfinity.com"
    }
  ],
  "bugs": {
    "url": "https://github.com/nearinfinity/node-mnm/issues"
  },
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git://github.com/nearinfinity/node-mnm.git"
  },
  "main": "./index.js",
  "readme": "# mnm\n\nMake Node Module is a build tool for making native node.js modules.\n\n## Installation\n\n```bash\n$ npm install mnm\n```\n\n## Quick Examples\n\n```javascript\nvar builder = new Builder();\n\nbuilder.appendUnique('CXXFLAGS', ['-fno-builtin']);\nbuilder.appendIncludeDir('src/');\nbuilder.appendSourceDir('./src');\nbuilder.target = \"mynativemodule_bindings\";\n\nbuilder.run();\n```\n\n## Realworld Examples\n\n * [node-java](https://github.com/nearinfinity/node-java) - A node.js to Java bridge.\n * [node-shark](https://github.com/nearinfinity/node-shark) - Wrapper around libwireshark providing network packet dissection.\n * [node-oracle](https://github.com/nearinfinity/node-oracle) - node.js driver to connect with an oracle database.\n\n# Index\n\n## command line arguments\n * [-v](#cmdline_verbose) - Verbose\n * [-Wall](#cmdline_showWarnings) - Show Warnings\n\n## builder\n * [appendLinkerLibrary](#builder_appendLinkerLibrary)\n * [appendLinkerSearchDir](#builder_appendLinkerSearchDir)\n * [appendIncludeDir](#builder_appendIncludeDir)\n * [appendUnique](#builder_appendUnique)\n * [appendSourceDir](#builder_appendSourceDir)\n * [appendSource](#builder_appendSource)\n * [compile](#builder_compile)\n * [link](#builder_link)\n * [compileAndLink](#builder_compileAndLink)\n * [run](#builder_run)\n\n# API Documentation\n\n<a name=\"cmdline\"/>\n## command line\n\n<a name=\"cmdline_verbose\" />\n### verbose -v or --verbose\n\nPrints the command lines being executed along with other verbose output.\n\n<a name=\"cmdline_showWarnings\" />\n### -Wall or --showWarnings\n\nAdds the -Wall flag to the compile and prints all compiler warnings.\n\n<a name=\"builder\"/>\n## builder\n\n<a name=\"builder_appendLinkerLibrary\" />\n### builder.appendLinkerLibrary(libname)\n\nAdds a library to the linker.\n\n__Arguments__\n\n * libname - The name of the library to add. This string should not contain the lib prefix or the extension.\n\n__Example__\n\n    builder.appendLinkerLibrary('ssl');\n\n<a name=\"builder_appendLinkerSearchDir\" />\n### builder.appendLinkerSearchDir(dir)\n\nAdds a library to the linker search path.\n\n__Arguments__\n\n * dir - The directory to add to the search path.\n\n__Example__\n\n    builder.appendLinkerSearchDir('/usr/local/lib');\n\n<a name=\"builder_appendIncludeDir\" />\n### builder.appendIncludeDir(dir)\n\nAdds a path to the list of include search directories.\n\n__Arguments__\n\n * dir - The directory to add to the search path.\n\n__Example__\n\n    builder.builder_appendIncludeDir('/src');\n\n<a name=\"builder_appendUnique\" />\n### builder.appendUnique(flagGroup, flags)\n\nAdds a flag or flags to a flag group.\n\n__Arguments__\n\n * flagGroup - The flag group to add the flags to. This should be LINKFLAGS or CXXFLAGS.\n * flags - A single string or array of strings to add to the group.\n\n__Example__\n\n    builder.appendUnique('CXXFLAGS', '-Wall');\n    builder.appendUnique('CXXFLAGS', ['-Idir1', '-Idir2']);\n\n<a name=\"builder_appendSourceDir\" />\n### builder.appendSourceDir(dir)\n\nAdds a source code directory to the list of compilable items. All files with the extensions cpp, c, cxx will be added to the compile step.\n\n__Arguments__\n\n * dir - The path to the directory containing the source files.\n\n__Example__\n\n    builder.appendSourceDir('./src');\n\n<a name=\"builder_appendSource\" />\n### builder.appendSource(fileName)\n\nAdds a single source file to the list of compilable items.\n\n__Arguments__\n\n * fileName - The name of the file to compile.\n\n__Example__\n\n    builder.appendSource('./src/myModule.cpp');\n\n<a name=\"builder_compile\" />\n### builder.compile([callback])\n\nPerforms the compile.\n\n__Arguments__\n\n * callback (optional) - An optional callback to be called when the compile is complete.\n\n__Example__\n\n    builder.compile();\n\n<a name=\"builder_link\" />\n### builder.link([callback])\n\nPerforms the link.\n\n__Arguments__\n\n * callback (optional) - An optional callback to be called when the link is complete.\n\n__Example__\n\n    builder.link();\n\n<a name=\"builder_compileAndLink\" />\n### builder.compileAndLink([callback])\n\nPerforms the compile and link.\n\n__Arguments__\n\n * callback (optional) - An optional callback to be called when the compile and link is complete.\n\n__Example__\n\n    builder.compileAndLink();\n\n<a name=\"builder_run\" />\n### builder.run([options], [callback])\n\nRun the builder. If no options are specified will use command line arguments to determine what to do.\n\n__Arguments__\n\n * options (optional) - An object containing the following options\n  * verbose - true to be verbose\n  * showWarnings - true to show all compiler warnings\n  * action - set to one of the following actions\n   * build - compile and link the project\n   * compile - just perform the compile step.\n   * link - just perform the link step.\n * callback (optional) - An optional callback to be called when the run is complete.\n\n__Example__\n\n    builder.compileAndLink();\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2012 Near Infinity Corporation\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
  "readmeFilename": "README.md",
  "homepage": "https://github.com/nearinfinity/node-mnm",
  "_id": "mnm@0.0.4",
  "_shasum": "9fa2859b5c05705475764996bb85262a8975167d",
  "_resolved": "/usr/obj/node-mnm-0.0.4/mnm-0.0.4.tgz",
  "_from": "/usr/obj/node-mnm-0.0.4/mnm-0.0.4.tgz"
}
