forked from bakhtiyork/opencv-xf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OpenCVXF.podspec
54 lines (50 loc) · 1.51 KB
/
OpenCVXF.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
48
49
50
51
52
53
54
Pod::Spec.new do |spec|
spec.name = "OpenCVXF"
spec.version = "4.3.0"
spec.summary = "OpenCV framework"
spec.description = "From https://github.com/opencv/opencv"
spec.homepage = "https://opencv.org/"
spec.license = { :type => '3-clause BSD', :file => 'LICENSE' }
spec.author = "https://opencv.org/"
spec.source = { :git => "https://github.com/bakhtiyork/opencv-xf.git" }
# iOS
spec.ios.deployment_target = "14.0"
spec.ios.frameworks = [
"Accelerate",
"AssetsLibrary",
"AVFoundation",
"CoreGraphics",
"CoreMedia",
"CoreVideo",
"Foundation",
"QuartzCore",
"UIKit"
]
# OSX
spec.osx.deployment_target = "11.0"
spec.osx.frameworks = [
"Accelerate",
"AVFoundation",
"CoreGraphics",
"CoreMedia",
"CoreVideo",
"Foundation",
"OpenCL",
"QuartzCore"
]
spec.prepare_command = <<-CMD
cat opencv2.xcframework.zip.* > opencv2.xcframework.zip
unzip -o opencv2.xcframework.zip
CMD
spec.source_files = "opencv2.xcframework/ios-arm64_armv7/opencv2.framework/Versions/A/Headers/**/*{.h,.hpp}"
spec.header_dir = "opencv2"
spec.header_mappings_dir = "opencv2.xcframework/ios-arm64_armv7/opencv2.framework/Versions/A/Headers"
spec.preserve_paths = "opencv2.xcframework"
spec.vendored_frameworks = "opencv2.xcframework"
spec.requires_arc = false
spec.libraries = "c++"
spec.pod_target_xcconfig = {
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
"CLANG_CXX_LIBRARY" => "libc++",
}
end