-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathQIMGeneralModule.podspec
More file actions
113 lines (83 loc) · 4.29 KB
/
QIMGeneralModule.podspec
File metadata and controls
113 lines (83 loc) · 4.29 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
Pod::Spec.new do |s|
s.name = "QIMGeneralModule"
s.version = "3.0.10211613"
s.summary = "Qunar chat App 6.0+ version QIMGeneralModule"
s.description = <<-DESC
Qunar QIMGeneralModule公共模块
DESC
s.homepage = "https://im.qunar.com"
s.license = "Copyright 2018 im.qunar.com"
s.author = { "Qunar IM" => "qtalk@qunar.com" }
s.source = { :git => "https://github.com/qunarcorp/libqimgeneralmodule-ios.git", :tag=> s.version.to_s}
s.ios.deployment_target = '9.0'
s.platform = :ios, "9.0"
s.source_files = "QIMGeneralModule/QIMGeneralModuleFramework.h"
$debug = ENV['debug']
s.subspec 'WebRTC' do |webrtc|
webrtc.resources = "QIMGeneralModule/WebRTC/RTC/icons/*.{png,jpg}", "QIMGeneralModule/WebRTC/RTC/sound/*.{mp3,wav}"
webrtc.source_files = 'QIMGeneralModule/WebRTC/**/*.{h,m,c}', 'QIMGeneralModule/WebRTC/RTC/**/*.{h,m,c}'
# webrtc.vendored_libraries = ['QIMGeneralModule/WebRTC/WebRTC/libWebRTC.a']
webrtc.public_header_files = 'QIMGeneralModule/WebRTC/**/*.{h}' 'QIMGeneralModule/WebRTC/RTC/**/*.{h}'
webrtc.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'QIMWebRTCEnable=1'}
webrtc.frameworks = 'VideoToolbox', 'GLKit', 'CoreTelephony', 'AVFoundation', 'UIKit', 'Foundation'
webrtc.dependency 'SocketRocket'
# 目前WebRTC支持iOS9的最高版本是1.1.26989
webrtc.dependency 'GoogleWebRTC', '1.1.26989'
webrtc.libraries = 'stdc++', 'bz2', 'resolv'
end
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1'
s.subspec 'Note' do |note|
note.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'QIMNoteEnable=1'}
note.public_header_files = 'QIMGeneralModule/QIMNotes/**/*.{h}'
note.source_files = ['QIMGeneralModule/QIMNotes/ARC/**/*.{h,m,c,mm}', 'QIMGeneralModule/QIMNotes/NoARC/**/*.{h,m,c,mm}']
note.requires_arc = false
note.requires_arc = ['QIMGeneralModule/QIMNotes/ARC/**/*.{h,m,c,mm}']
end
s.subspec 'Notify' do |notify|
notify.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'QIMNotifyEnable=1'}
notify.source_files = ['QIMGeneralModule/QIMNotify/**/*.{h,m,c}']
notify.public_header_files = 'QIMGeneralModule/QIMNotify/**/*.{h}'
end
s.subspec 'Log' do |log|
log.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'QIMLogEnable=1'}
log.source_files = ['QIMGeneralModule/QIMLocalLog/**/*.{h,m,c}']
log.public_header_files = 'QIMGeneralModule/QIMLocalLog/**/*.{h}'
end
# s.subspec 'QTLog' do |qtLog|
# qtLog.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'QIMLogEnable=1'}
# qtLog.source_files = ['QIMGeneralModule/QTLog/**/*.{h,m,c,cpp,mm}']
# qtLog.public_header_files = 'QIMGeneralModule/QIMLocalLog/**/*.{h}'
# qtLog.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => "c++11" }
# # qtLog.compiler_flags = folly_compiler_flags
# # qtLog.libraries = "stdc++"
# end
# s.subspec 'QTDB' do |qtdb|
# qtdb.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'QIMLogEnable=1'}
# qtdb.source_files = ['QIMGeneralModule/QTDataBase/**/*.{h,m,c,cpp,mm}']
# qtdb.public_header_files = 'QIMGeneralModule/QTDataBase/**/*.{h}'
# qtdb.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => "c++11" }
# qtdb.compiler_flags = folly_compiler_flags
# qtdb.libraries = "stdc++"
# end
s.subspec 'Calendars' do |calendar|
calendar.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'QIMCalendarEnable=1'}
calendar.source_files = ['QIMGeneralModule/QIMCalendars/**/*.{h,m,c}']
calendar.public_header_files = 'QIMGeneralModule/QIMCalendars/**/*.{h}'
end
s.subspec 'AutoMonitor' do |monitor|
monitor.source_files = 'QIMGeneralModule/QIMMonitor/**/*.{h,m}'
monitor.public_header_files = 'QIMGeneralModule/QIMMonitor/**/.h'
end
if $debug
puts 'debug QIMGeneralModule'
else
puts '线上release QIMGeneralModule依赖第三方库'
s.dependency 'QIMCommon', '~> 4.0'
s.dependency 'QIMOpenSSL'
s.dependency 'QIMKitVendor', '~> 4.0'
s.dependency 'QIMCommonCategories', '~> 4.0'
end
s.dependency 'SCLAlertView-Objective-C'
s.dependency 'Masonry'
s.frameworks = 'Foundation', 'UIKit', 'AVFoundation', 'CoreTelephony'
end