-
Notifications
You must be signed in to change notification settings - Fork 220
/
pjsip.podspec
103 lines (94 loc) · 6.89 KB
/
pjsip.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
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
Pod::Spec.new do |s|
s.name = "pjsip"
s.version = "2.9.0.2"
s.summary = "pjsip for iOS and macOS (OSX)"
s.homepage = "http://www.pjsip.org"
s.author = 'www.pjsip.org'
s.source = { :git => "https://github.com/chebur/pjsip.git", :tag => "#{s.version}" }
s.description = <<-DESC
PJSIP is a free and open source multimedia communication library written in C language implementing standard based protocols such as SIP, SDP, RTP, STUN, TURN, and ICE. It combines signaling protocol (SIP) with rich multimedia framework and NAT traversal functionality into high level API that is portable and suitable for almost any type of systems ranging from desktops, embedded systems, to mobile handsets.
PJSIP is both compact and feature rich. It supports audio, video, presence, and instant messaging, and has extensive documentation. PJSIP is very portable. On mobile devices, it abstracts system dependent features and in many cases is able to utilize the native multimedia capabilities of the device.
PJSIP has been developed by a small team working exclusively for the project since 2005, with participation of hundreds of developers from around the world, and is routinely tested at SIP Interoperability Event (SIPit) since 2007.
DESC
s.license = {
:type => 'Dual-License',
:text => <<-LICENSE
PJSIP source code ("The Software") is licensed under both General Public License (GPL) version 2 or later and a proprietary license that can be arranged with us. In practical sense, this means:
if you are developing Open Source Software (OSS) based on PJSIP, chances are you will be able to use PJSIP freely under GPL. But please double check here for OSS license compatibility with GPL.
Alternatively, if you are unable to release your application as Open Source Software, you may arrange alternative licensing with us. Just send your inquiry to licensing@teluu.com to discuss this option.
PJSIP may include third party software in its source code distribution. Third Party Software does not comprise part of "The Software". Please make sure that you comply with the licensing term of each software.
LICENSE
}
s.ios.deployment_target = '9.0'
s.ios.source_files =
s.ios.public_header_files = [
'build/pjproject/src/pjlib/include/**/*.h',
'build/pjproject/src/pjlib-util/include/**/*.h',
'build/pjproject/src/pjmedia/include/**/*.h',
'build/pjproject/src/pjnath/include/**/*.h',
'build/pjproject/src/pjsip/include/**/*.h',
'build/pjproject/src/pjsip/include/**/*.hpp'
]
s.ios.preserve_paths = [
'build/pjproject/src/pjlib/include/**/*',
'build/pjproject/src/pjlib-util/include/**/*',
'build/pjproject/src/pjmedia/include/**/*',
'build/pjproject/src/pjnath/include/**/*',
'build/pjproject/src/pjsip/include/**/*'
]
s.ios.vendored_libraries = [
# 'build/openh264/lib/*.a',
'build/openssl/lib/ios/*.a',
'build/opus/dependencies/lib/*.a',
'build/pjproject/src/pjlib/lib/*ios.a',
'build/pjproject/src/pjlib-util/lib/*ios.a',
'build/pjproject/src/pjmedia/lib/*ios.a',
'build/pjproject/src/pjnath/lib/*ios.a',
'build/pjproject/src/pjsip/lib/*ios.a',
'build/pjproject/src/third_party/lib/*ios.a'
]
s.ios.frameworks = 'UIKit', 'VideoToolbox', 'AudioToolbox', 'AVFoundation', 'OpenGLES', 'QuartzCore', 'CoreMedia', 'CoreVideo'
s.osx.deployment_target = '10.12'
s.osx.source_files =
s.osx.public_header_files = [
'build/pjproject/src/pjlib/include/**/*.h',
'build/pjproject/src/pjlib-util/include/**/*.h',
'build/pjproject/src/pjmedia/include/**/*.h',
'build/pjproject/src/pjnath/include/**/*.h',
'build/pjproject/src/pjsip/include/**/*.h',
'build/pjproject/src/pjsip/include/**/*.hpp'
]
s.osx.preserve_paths = [
'build/pjproject/src/pjlib/include/**/*',
'build/pjproject/src/pjlib-util/include/**/*',
'build/pjproject/src/pjmedia/include/**/*',
'build/pjproject/src/pjnath/include/**/*',
'build/pjproject/src/pjsip/include/**/*'
]
s.osx.vendored_libraries = [
# 'build/openh264/lib/*.a',
'build/openssl/lib/macos/*.a',
'build/opus/dependencies/lib/*.a',
'build/pjproject/src/pjlib/lib/*darwin18.6.0.a',
'build/pjproject/src/pjlib-util/lib/*darwin18.6.0.a',
'build/pjproject/src/pjmedia/lib/*darwin18.6.0.a',
'build/pjproject/src/pjnath/lib/*darwin18.6.0.a',
'build/pjproject/src/pjsip/lib/*darwin18.6.0.a',
'build/pjproject/src/third_party/lib/*darwin18.6.0.a'
]
s.osx.frameworks = 'AppKit', 'VideoToolbox', 'AudioToolbox', 'AVFoundation', 'CoreMedia', 'CoreVideo'
header_search_paths = [
'"$(PODS_ROOT)/Headers/Public/pjsip/pjlib/include"',
'"$(PODS_ROOT)/Headers/Public/pjsip/pjlib-util/include"',
'"$(PODS_ROOT)/Headers/Public/pjsip/pjmedia/include"',
'"$(PODS_ROOT)/Headers/Public/pjsip/pjnath/include"',
'"$(PODS_ROOT)/Headers/Public/pjsip/pjsip/include"'
]
s.xcconfig = {
'HEADER_SEARCH_PATHS' => header_search_paths.join(' '),
'GCC_PREPROCESSOR_DEFINITIONS' => 'PJ_AUTOCONF=1'
}
s.libraries = 'stdc++'
s.header_mappings_dir = 'build/pjproject/src'
s.requires_arc = false
end