Update build_framework.py
This commit is contained in:
parent
5dd598fc6d
commit
16814c7fb1
@ -75,6 +75,7 @@ def put_framework_together(srcroot, dstroot):
|
|||||||
dstdir = "Versions/A"
|
dstdir = "Versions/A"
|
||||||
os.makedirs(dstdir + "/Resources")
|
os.makedirs(dstdir + "/Resources")
|
||||||
|
|
||||||
|
tdir0 = "../build/" + targetlist[0]
|
||||||
# copy headers
|
# copy headers
|
||||||
shutil.copytree(tdir0 + "/install/include/opencv2", dstdir + "/Headers")
|
shutil.copytree(tdir0 + "/install/include/opencv2", dstdir + "/Headers")
|
||||||
|
|
||||||
@ -83,7 +84,7 @@ def put_framework_together(srcroot, dstroot):
|
|||||||
os.system("lipo -create " + wlist + " -o " + dstdir + "/opencv2")
|
os.system("lipo -create " + wlist + " -o " + dstdir + "/opencv2")
|
||||||
|
|
||||||
# copy Info.plist
|
# copy Info.plist
|
||||||
shutil.copyfile("../build/ios/Info.plist", dstdir + "/Resources/Info.plist")
|
shutil.copyfile(tdir0 + "/ios/Info.plist", dstdir + "/Resources/Info.plist")
|
||||||
|
|
||||||
# make symbolic links
|
# make symbolic links
|
||||||
os.symlink("A", "Versions/Current")
|
os.symlink("A", "Versions/Current")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user