Is there wildcard mechanism for listing sources in node-gyp

前端 未结 4 1428
日久生厌
日久生厌 2021-02-05 12:41

I\'m writing binding.gyp file for my new node.js module. I have all my source files under src/ subdirectory. I would like to use all of them while buil

4条回答
  •  星月不相逢
    2021-02-05 12:55

    If anyone wants to include all sub files and folders within a certain folder (defined at end of line, here as "sources"):

    {
      "targets": [
        {
          "target_name": "addon",
          "sources": [ 
                "

    (based off, but not exactly: node.js fs.readdir recursive directory search)

提交回复
热议问题