Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 012b849

Browse files
Merge pull request justadudewhohacks#489 from justadudewhohacks/piercus-wiki-autobuild-flags
Update README.md
2 parents f8b0ced + cab3d17 commit 012b849

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@ If you do not want to set up OpenCV on your own you can simply let this package
113113
$ npm install --save opencv4nodejs
114114
```
115115

116+
### Auto build flags
117+
118+
You can customize the autobuild flags using *OPENCV4NODEJS_AUTOBUILD_FLAGS="<flags>"*.
119+
Flags must be space-separated.
120+
121+
This is an advanced customization and you should have knowledge regarding the OpenCV compilation flags.
122+
123+
For example `export OPENCV4NODEJS_AUTOBUILD_FLAGS="-DBUILD_LIST=dnn"` will build only modules required for `dnn` and reduced the size of the opencv package. Flags added by default are listed [here](https://github.com/justadudewhohacks/npm-opencv-build/blob/master/install/setup-opencv.js#L63)
124+
116125
## Manual build
117126
Setting up OpenCV on your own will require you to set an environment variable: *OPENCV4NODEJS_DISABLE_AUTOBUILD=1*.
118127

0 commit comments

Comments
 (0)