How can I change the configuration when compiling an iOS framework using the build_framework.py
script which ships with the OpenCV package?
In detail, I want to disable "libpng" support and altered the cmakeargs part as follows:
cmakeargs = ("-GXcode " +
"-DCMAKE_BUILD_TYPE=Release -DBUILD_PNG=OFF" +
"-DCMAKE_TOOLCHAIN_FILE=%s/platforms/ios/cmake/Toolchains/Toolchain-%s_Xcode.cmake " +
"-DCMAKE_C_FLAGS=\"-Wno-implicit-function-declaration\" " +
"-DCMAKE_INSTALL_PREFIX=install") % (srcroot, target)
But the option -DBUILD_PNG=OFF
is ignored and libpng is included. How can I change the configuration in the script?
The actual correct parameter is: