From: Vadim Pisarevsky Date: Sun, 10 Jun 2012 08:27:48 +0000 (+0000) Subject: always remove libopencv_world.a before building framework to always include the up... X-Git-Tag: accepted/2.0/20130307.220821~364^2~657 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=139e790fbf5e054e426d3e65a2ca145c8303ad84;p=profile%2Fivi%2Fopencv.git always remove libopencv_world.a before building framework to always include the up-to-date code into the framework binary. --- diff --git a/ios/build_framework.py b/ios/build_framework.py index f6a6970..e5c8b16 100755 --- a/ios/build_framework.py +++ b/ios/build_framework.py @@ -46,6 +46,12 @@ def build_opencv(srcroot, buildroot, target): os.system("cmake %s ." % (cmakeargs,)) else: os.system("cmake %s %s" % (cmakeargs, srcroot)) + + for wlib in [builddir + "/modules/world/UninstalledProducts/libopencv_world.a", + builddir + "/lib/Release/libopencv_world.a"]: + if os.path.isfile(wlib): + os.remove(wlib) + os.system("xcodebuild -parallelizeTargets -jobs 8 -sdk %s -configuration Release -target ALL_BUILD" % target.lower()) os.system("xcodebuild -sdk %s -configuration Release -target install install" % target.lower()) os.chdir(currdir)