-
Notifications
You must be signed in to change notification settings - Fork 22
/
IGHTMLQuery.podspec
65 lines (52 loc) · 2.39 KB
/
IGHTMLQuery.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
63
64
65
Pod::Spec.new do |s|
s.name = "IGHTMLQuery"
s.version = "0.9.1"
s.summary = "IGHTMLQuery is a lightweight XML/HTML parser for iOS, built on top of libxml."
s.description = <<-DESC
IGHTMLQuery is a lightweight XML/HTML parser for iOS, built on top of libxml.
* XPath support for document searching.
* jQuery style chainable syntax.
* XML traversal and manipulation.
DESC
s.homepage = "https://github.com/siuying/IGHTMLQuery"
s.license = { :type => 'MIT', :file => 'LICENSE.txt' }
s.author = { "Francis Chong" => "[email protected]" }
s.source = { :git => "https://github.com/siuying/IGHTMLQuery.git", :tag => s.version.to_s }
s.library = 'xml2'
s.requires_arc = true
s.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2' }
s.default_subspec = 'Core'
s.ios.deployment_target = '7.0'
s.osx.deployment_target = '10.9'
s.subspec "Core" do |sp|
sp.ios.deployment_target = '7.0'
sp.osx.deployment_target = '10.9'
sp.source_files = 'IGHTMLQuery/Classes/**/*.{h,m}'
sp.exclude_files = ['IGHTMLQuery/Classes/JSContext+IGHTMLQueryRubyAdditions.{h,m}']
sp.dependency 'CSSSelectorConverter', '>= 1.2.0'
sp.private_header_files = "IGHTMLQuery/Classes/Private/*.h"
end
# Include IGHTMLQuery/JavaScript to enable JavaScriptCore support.
s.subspec "JavaScript" do |sp|
sp.ios.deployment_target = '7.0'
sp.osx.deployment_target = '10.9'
sp.prefix_header_contents = '#define IGHTMLQUERY_JAVSCRIPT_EXPORT'
sp.dependency 'CSSSelectorConverter', '>= 1.2.0'
sp.frameworks = 'JavaScriptCore'
sp.source_files = 'IGHTMLQuery/Classes/**/*.{h,m}'
sp.exclude_files = 'IGHTMLQuery/Classes/JSContext+IGHTMLQueryRubyAdditions.{h,m}'
sp.private_header_files = "IGHTMLQuery/Classes/Private/*.h"
end
# Include IGHTMLQuery/Ruby to enable Ruby support.
s.subspec "Ruby" do |sp|
sp.ios.deployment_target = '8.0'
sp.osx.deployment_target = '10.9'
sp.prefix_header_contents = "#define IGHTMLQUERY_JAVSCRIPT_EXPORT\n#define IGHTMLQUERY_RUBY_EXPORT"
sp.dependency 'CSSSelectorConverter', '>= 1.2.0'
sp.frameworks = 'JavaScriptCore'
sp.source_files = 'IGHTMLQuery/Classes/**/*.{h,m}'
sp.resources = 'IGHTMLQuery/JavaScript/*.js', 'IGHTMLQuery/Ruby/*.rb'
sp.dependency 'JavaScriptCoreOpalAdditions', '>= 0.5.1'
sp.private_header_files = "IGHTMLQuery/Classes/Private/*.h"
end
end