Repository navigation
Added BUILD_LIST - #9893
Added BUILD_LIST#9893
Conversation
|
Implementation looks good to me. But current name seems confusing ("whitelist" usually should not disable anything).
BTW, there are internal CMake vars: /cc @vpisarev |
|
Ping, another variant for variable name is |
|
In my opinion, word whitelist is quite intuitive, for example it can be defined as follows (source):
I also like variants |
|
I vote for |
176b4d7 to
5b17410
Compare
|
Renamed. |
|
The bindings generator seems to generate bindings even for the modules that are not being built. Any Idea on how to handle it? Or is there a configuration option that needs to be set additionally? Update: False Alarm. But the issue is that if I include |
|
wow i vote for it too |
|
May I ask if it's enough to create a normal CMakeList.txt file and then run "cmake -DBUILD_LIST=mgcodecs,videoio,highgui" so that opencv will work as expected, which means, all modules are turned off except those in the options? But after I did so on my MacBook (with macOS 10.15.1), why did I get a warning saying that Trace: YES (with Intel ITT) Other third-party libraries: OpenCL: YES (no extra features) I felt that it meant at least OpenCL and IPP were not turned off. Is that correct? So did I use this option in a wrong way or is it simply because cmake doesn't work well with macOS 10.15+? Thanks! |
This pullrequest changes
adds ability to build only modules which you really need:
Notes:
-DBUILD_LIST=dnn,imgcodecs; don't forget to escape shell's special characters-DBUILD_LIST=dnn\;imgcodecs-DBUILD_LIST=dnn,imgcodecs,videoio,highgui-DBUILD_opencv_world=ONoption-DBUILD_LIST=dnn,ts-DBUILD_EXAMPLES=ONoption and enable dependent modules as follows:flann,imgcodecs,videoio,highgui,ml,video,objdetect,photo,features2d,calib3d,stitching,videostab,shapednn,imgcodecs,videoio,highguisome_module,imgcodecs,videoio,highgui-DBUILD_LIST=dnn,imgcodecs,python3,java(java has hidden dependency on imgcodecs, it should be fixed)ocv_define_module(<module> <required_deps> OPTIONAL <optional_deps>) are not taken in account so you should enable them manually