-
Notifications
You must be signed in to change notification settings - Fork 4
/
libdav1d.podspec
48 lines (41 loc) · 2.27 KB
/
libdav1d.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
#
# Be sure to run `pod lib lint TestLibrary.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'libdav1d'
s.version = '1.2.0'
s.summary = 'dav1d is an AV1 decoder :)'
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
dav1d is a new AV1 cross-platform decoder, open-source, and focused on speed and correctness.
DESC
s.homepage = 'https://github.com/videolan/dav1d'
s.license = { :type => 'BSD 2-clause' }
s.author = { 'Alliance for Open Media' => 'https://aomedia.org' }
s.source = { :git => 'https://github.com/SDWebImage/libdav1d-Xcode.git', :tag => s.version.to_s, :submodules => true }
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '2.0'
s.source_files = 'dav1d/src/**/*.{h,c}', 'dav1d/include/**/*.h', 'generate/*.h', 'generate/tmpl_16/*.c', 'generate/tmpl_arm/*.S',
s.public_header_files = 'dav1d/include/dav1d/*.h', 'generate/version.h'
s.exclude_files = 'dav1d/src/ppc', 'dav1d/src/win32', 'dav1d/src/x86', 'dav1d/src/ext', 'dav1d/include/compat'
s.pod_target_xcconfig = {
'USE_HEADERMAP' => 'NO',
'GCC_WARN_UNINITIALIZED_AUTOS' => 'NO',
'HEADER_SEARCH_PATHS' => '$(inherited) ${PODS_ROOT}/libdav1d/dav1d ${PODS_TARGET_SRCROOT}/dav1d ${PODS_ROOT}/libdav1d/dav1d/include ${PODS_TARGET_SRCROOT}/dav1d/include ${PODS_ROOT}/libdav1d/generate ${PODS_TARGET_SRCROOT}/generate'
}
# hack to fix the header include issue from CocoaPods. This effect the static library target form, but not multiple projects
s.prepare_command = <<-CMD
cp './generate/version.h' './dav1d/include/dav1d/version.h'
CMD
s.preserve_paths = 'dav1d', 'generate'
end