Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
9bb1a7d3
Commit
9bb1a7d3
authored
Aug 23, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Aug 23, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1234 from SpecLad:ios-plist
parents
cae44808
16814c7f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
18 deletions
+11
-18
CMakeLists.txt
CMakeLists.txt
+2
-0
OpenCVGenInfoPlist.cmake
cmake/OpenCVGenInfoPlist.cmake
+4
-0
Info.plist.in
platforms/ios/Info.plist.in
+2
-2
build_framework.py
platforms/ios/build_framework.py
+3
-16
No files found.
CMakeLists.txt
View file @
9bb1a7d3
...
...
@@ -497,6 +497,8 @@ include(cmake/OpenCVGenAndroidMK.cmake)
# Generate OpenCVСonfig.cmake and OpenCVConfig-version.cmake for cmake projects
include
(
cmake/OpenCVGenConfig.cmake
)
# Generate Info.plist for the IOS framework
include
(
cmake/OpenCVGenInfoPlist.cmake
)
# ----------------------------------------------------------------------------
# Summary:
...
...
cmake/OpenCVGenInfoPlist.cmake
0 → 100644
View file @
9bb1a7d3
if
(
IOS
)
configure_file
(
"
${
OpenCV_SOURCE_DIR
}
/platforms/ios/Info.plist.in"
"
${
CMAKE_BINARY_DIR
}
/ios/Info.plist"
)
endif
()
platforms/ios/Info.plist.in
View file @
9bb1a7d3
...
...
@@ -7,9 +7,9 @@
<key>
CFBundleIdentifier
</key>
<string>
org.opencv
</string>
<key>
CFBundleVersion
</key>
<string>
${VERSION}
</string>
<string>
${
OPENCV_LIB
VERSION}
</string>
<key>
CFBundleShortVersionString
</key>
<string>
${VERSION}
</string>
<string>
${
OPENCV_LIB
VERSION}
</string>
<key>
CFBundleSignature
</key>
<string>
????
</string>
<key>
CFBundlePackageType
</key>
...
...
platforms/ios/build_framework.py
View file @
9bb1a7d3
...
...
@@ -71,19 +71,11 @@ def put_framework_together(srcroot, dstroot):
os
.
makedirs
(
framework_dir
)
os
.
chdir
(
framework_dir
)
# determine OpenCV version (without subminor part)
tdir0
=
"../build/"
+
targetlist
[
0
]
cfg
=
open
(
tdir0
+
"/cvconfig.h"
,
"rt"
)
for
l
in
cfg
.
readlines
():
if
l
.
startswith
(
"#define VERSION"
):
opencv_version
=
l
[
l
.
find
(
"
\"
"
)
+
1
:
l
.
rfind
(
"."
)]
break
cfg
.
close
()
# form the directory tree
dstdir
=
"Versions/A"
os
.
makedirs
(
dstdir
+
"/Resources"
)
tdir0
=
"../build/"
+
targetlist
[
0
]
# copy headers
shutil
.
copytree
(
tdir0
+
"/install/include/opencv2"
,
dstdir
+
"/Headers"
)
...
...
@@ -91,13 +83,8 @@ def put_framework_together(srcroot, dstroot):
wlist
=
" "
.
join
([
"../build/"
+
t
+
"/lib/Release/libopencv_world.a"
for
t
in
targetlist
])
os
.
system
(
"lipo -create "
+
wlist
+
" -o "
+
dstdir
+
"/opencv2"
)
# form Info.plist
srcfile
=
open
(
srcroot
+
"/platforms/ios/Info.plist.in"
,
"rt"
)
dstfile
=
open
(
dstdir
+
"/Resources/Info.plist"
,
"wt"
)
for
l
in
srcfile
.
readlines
():
dstfile
.
write
(
l
.
replace
(
"${VERSION}"
,
opencv_version
))
srcfile
.
close
()
dstfile
.
close
()
# copy Info.plist
shutil
.
copyfile
(
tdir0
+
"/ios/Info.plist"
,
dstdir
+
"/Resources/Info.plist"
)
# make symbolic links
os
.
symlink
(
"A"
,
"Versions/Current"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment