-
Notifications
You must be signed in to change notification settings - Fork 0
/
svgnative.podspec
62 lines (55 loc) · 3.35 KB
/
svgnative.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
55
56
57
58
59
60
61
62
#
# 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 = 'svgnative'
s.version = '0.1.0'
s.summary = 'SVG Native viewer is a library that parses and renders SVG Native documents.'
# 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
SVG Native is an upcoming specification of the SVG WG based on SVG OpenType.
SVG Native will be a strict subset of SVG 1.1 and SVG 2.0.
DESC
s.homepage = 'https://github.com/SDWebImage/svgnative-Xcode'
s.license = { :type => 'Apache V2' }
s.author = { 'adobe' => 'https://adobe.com' }
s.source = { :git => 'https://github.com/SDWebImage/svgnative-Xcode.git', :tag => s.version.to_s, :submodules => true }
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.11'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '2.0'
s.source_files = ['svg-native-viewer/svgnative/include/**/*.{h,hpp}',
'svg-native-viewer/svgnative/src/**/*.{c,cc,cpp,hpp}',
'svg-native-viewer/third_party/cpp-base64/base64.{cpp}']
s.public_header_files = 'svg-native-viewer/svgnative/include/**/*.{h,hpp}'
s.header_mappings_dir = 'svg-native-viewer/svgnative/include'
s.exclude_files = ['svg-native-viewer/svgnative/src/xml/ExpatXMLParser.cpp',
'svg-native-viewer/svgnative/src/xml/RapidXMLParser.cpp',
'svg-native-viewer/svgnative/src/ports/cairo',
'svg-native-viewer/svgnative/src/ports/d2d',
'svg-native-viewer/svgnative/src/ports/gdiplus',
'svg-native-viewer/svgnative/src/ports/skia',
'svg-native-viewer/svgnative/src/ports/string',
'svg-native-viewer/svgnative/include/svgnative/ports/cairo',
'svg-native-viewer/svgnative/include/svgnative/ports/d2d',
'svg-native-viewer/svgnative/include/svgnative/ports/gdiplus',
'svg-native-viewer/svgnative/include/svgnative/ports/skia',
'svg-native-viewer/svgnative/include/svgnative/ports/string']
s.pod_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) USE_CG=1 BOOST_VARIANT_DETAIL_NO_SUBSTITUTE=1',
'HEADER_SEARCH_PATHS' => '$(inherited) ${PODS_TARGET_SRCROOT}/svg-native-viewer/svgnative/include ${PODS_TARGET_SRCROOT}/svg-native-viewer/svgnative/src ${PODS_TARGET_SRCROOT}/svg-native-viewer/third_party/boost_variant_property_tree ${PODS_TARGET_SRCROOT}/svg-native-viewer/third_party/cpp-base64'
}
s.user_target_xcconfig = {
'HEADER_SEARCH_PATHS' => '$(inherited) ${PODS_ROOT}/svgnative/svg-native-viewer/third_party/boost_variant_property_tree' # Hack because public header include <boost/variant.hpp>
}
s.preserve_paths = ['svg-native-viewer']
s.libraries = 'c++', 'xml2'
end