forked from ap4y/OrigamiEngine
-
Notifications
You must be signed in to change notification settings - Fork 1
/
OrigamiEngine.podspec
71 lines (61 loc) · 3.12 KB
/
OrigamiEngine.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
66
67
68
69
70
71
Pod::Spec.new do |s|
s.name = "OrigamiEngine"
s.version = "1.0.15"
s.summary = "Lightweight iOS/OSX audio engine with flac, cue, mp3, m4a, m3u support."
s.homepage = "https://github.com/khaitu/OrigamiEngine.git"
s.license = 'MIT'
s.author = { "ap4y" => "[email protected]" }
s.source = { :git => "https://github.com/khaitu/OrigamiEngine.git", :submodules => true }
s.default_subspec = 'Core'
s.requires_arc = true
s.ios.deployment_target = '5.0'
s.osx.deployment_target = '10.7'
s.subspec 'Core' do |core|
core.source_files = 'OrigamiEngine/*.{h,m}', 'OrigamiEngine/Plugins/{CoreAudio,Cue,File,HTTP,M3U}*.{h,m}'
core.ios.frameworks = 'AudioToolbox', 'AVFoundation'
core.osx.frameworks = 'AudioToolbox', 'AVFoundation', 'AudioUnit'
end
s.subspec 'Flac' do |flac|
flac.dependency 'OrigamiEngine/Core'
flac.source_files = 'OrigamiEngine/Plugins/FlacDecoder.{h,m}'
flac.frameworks = 'Flac'
flac.ios.preserve_paths = 'Audio-Frameworks/bin/flac/FLAC.framework'
flac.ios.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/OrigamiEngine/Audio-Frameworks/bin/flac/"' }
flac.osx.preserve_paths = 'Audio-Frameworks/bin/flac/Flac_OSX/FLAC.framework'
flac.osx.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/OrigamiEngine/Audio-Frameworks/bin/flac/FLAC_OSX"' }
end
s.subspec 'Opus' do |opus|
opus.dependency 'OrigamiEngine/Core'
opus.source_files = 'OrigamiEngine/Plugins/OpusFileDecoder.{h,m}'
opus.frameworks = 'Ogg', 'Opus', 'OpusFile'
opus.ios.preserve_paths = [
'Audio-Frameworks/bin/ogg/Ogg.framework',
'Audio-Frameworks/bin/opus/Opus.framework',
'Audio-Frameworks/bin/opusfile/OpusFile.framework',
'Audio-Frameworks/bin/opus/include',
]
opus.ios.xcconfig = {
'FRAMEWORK_SEARCH_PATHS' => [
'"$(SDKROOT)/Developer/Library/Frameworks"',
'"$(DEVELOPER_LIBRARY_DIR)/Frameworks"',
'"$(PODS_ROOT)/OrigamiEngine/Audio-Frameworks/bin/ogg/"',
'"$(PODS_ROOT)/OrigamiEngine/Audio-Frameworks/bin/opus/"',
'"$(PODS_ROOT)/OrigamiEngine/Audio-Frameworks/bin/opusfile/"'
].join(' '),
'HEADER_SEARCH_PATHS' => '"$(PODS_ROOT)/OrigamiEngine/Audio-Frameworks/bin/opus/include"'
}
opus.osx.preserve_paths = [
'Audio-Frameworks/bin/ogg/Ogg.framework',
'Audio-Frameworks/bin/ogg/MacOS/Ogg.framework',
'Audio-Frameworks/bin/opus/MacOS/Opus.framework',
'Audio-Frameworks/bin/opusfile/MacOS/OpusFile.framework'
]
opus.osx.xcconfig = {
'FRAMEWORK_SEARCH_PATHS' => [
'"$(PODS_ROOT)/OrigamiEngine/Audio-Frameworks/bin/ogg/MacOS"',
'"$(PODS_ROOT)/OrigamiEngine/Audio-Frameworks/bin/opus/MacOS"',
'"$(PODS_ROOT)/OrigamiEngine/Audio-Frameworks/bin/opusfile/MacOS"'
].join(' ')
}
end
end