-
Notifications
You must be signed in to change notification settings - Fork 13
/
OpenCV-Dynamic.podspec
47 lines (43 loc) · 1.57 KB
/
OpenCV-Dynamic.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Pod::Spec.new do |s|
s.name = 'OpenCV-Dynamic'
s.version = '4.0.1'
s.summary = 'OpenCV (Computer Vision) for iOS as a dynamic framework.'
s.description = <<-DESC
OpenCV: open source computer vision library
Homepage: http://opencv.org
Online docs: http://docs.opencv.org
Q&A forum: http://answers.opencv.org
Dev zone: http://code.opencv.org
DESC
s.homepage = 'https://github.com/legoless/opencv-dynamic'
s.license = { :type => '3-clause BSD', :file => 'LICENSE' }
s.authors = 'opencv.org'
s.source = { :git => 'https://github.com/legoless/opencv-dynamic.git', :tag => s.version.to_s }
s.ios.deployment_target = "8.0"
s.source_files = "opencv2.framework/Headers/**/*{.h,.hpp}"
#s.public_header_files = "opencv2.framework/Headers/**/*{.h,.hpp}"
s.preserve_paths = "opencv2.framework"
#s.header_dir = "opencv2"
#s.header_mappings_dir = "opencv2.framework/Versions/A/Headers/"
s.vendored_frameworks = "opencv2.framework"
s.requires_arc = false
s.libraries = [ 'stdc++' ]
s.frameworks = [
"Accelerate",
"AssetsLibrary",
"AVFoundation",
"CoreGraphics",
"CoreImage",
"CoreMedia",
"CoreVideo",
"Foundation",
"QuartzCore",
"UIKit"
]
s.prepare_command = <<-CMD
git submodule init
git submodule update
/usr/bin/python opencv/platforms/ios/build_framework.py ios --dynamic
cp -a ./ios/opencv2.framework ./opencv2.framework
CMD
end