Skip to content

Commit

Permalink
Build static libs (#33)
Browse files Browse the repository at this point in the history
* Modify macOS node-gyp bindings to use libraw threadsafe static lib.

* Add scripts for packaging and releasing binaries.

* Remove redundant config from binding file.
  • Loading branch information
justinkambic committed May 1, 2021
1 parent 07a7451 commit cbc2e37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 2 additions & 5 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,12 @@
"cflags_cc!": ["-fno-exceptions"],
"conditions": [
['OS=="mac"', {
"libraries": ["/usr/local/lib/libraw_r.dylib"],
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
}
}],
['OS=="linux"', {
"libraries": ["/usr/local/lib/libraw_r.a", "/usr/local/lib/libjpeg.a"],
}]
]
],
"libraries": ["/usr/local/lib/libraw_r.a", "/usr/local/lib/libjpeg.a"],
}
]
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
"generate-docs": "typedoc --plugin typedoc-plugin-markdown --hideBreadcrumbs true --tsconfig ./tsconfig.json ./src/libraw.ts && rm ./docs/README.md",
"lint": "eslint . --ext .ts",
"install": "node-pre-gyp install --fallback-to-build",
"package-release": "tsc && node-pre-gyp clean && node-pre-gyp rebuild && node-pre-gyp testbinary && node-pre-gyp package && npm run test",
"publish-release": "node-pre-gyp-github publish",
"test": "jest",
"test-watch": "jest --watch"
},
Expand Down

0 comments on commit cbc2e37

Please sign in to comment.