forked from fpillet/NSLogger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNSLogger.podspec
41 lines (35 loc) · 1.91 KB
/
NSLogger.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
Pod::Spec.new do |s|
s.name = 'NSLogger'
s.version = '1.5.1'
s.license = 'BSD'
s.summary = 'A modern, flexible logging tool.'
s.homepage = 'https://github.com/fpillet/NSLogger'
s.author = { 'Florent Pillet' => 'fpillet@gmail.com' }
s.source = { :git => 'https://github.com/fpillet/NSLogger.git', :tag => 'v1.5.1' }
s.screenshot = "https://github.com/fpillet/NSLogger/raw/master/Screenshots/mainwindow.png"
s.description = 'NSLogger is a high perfomance logging utility which displays traces emitted by ' \
'client applications running on Mac OS X or iOS (iPhone OS). It replaces your ' \
'usual NSLog()-based traces and provides powerful additions like display ' \
'filtering, image and binary logging, traces buffering, timing information, etc. ' \
'Download a prebuilt desktop viewer from https://github.com/fpillet/NSLogger/releases'
s.ios.frameworks = 'CFNetwork', 'SystemConfiguration'
s.osx.frameworks = 'CFNetwork', 'SystemConfiguration', 'CoreServices'
s.default_subspec = 'Standard'
# the 'Standard' subspec is the default: unused NSLogger functions will be stripped
# from the final build
s.subspec 'Standard' do |standard|
standard.source_files = 'Client Logger/iOS/*.{h,m}'
standard.xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '${inherited} NSLOGGER_WAS_HERE=1 NSLOGGER_BUILD_USERNAME="${USER}"'
}
end
# the 'NoStrip' subspec prevents unused functions from being stripped by the linker.
# this is useful when other frameworks linked into the application dynamically look for
# NSLogger functions and use them if present.
s.subspec 'NoStrip' do |nostrip|
nostrip.source_files = 'Client Logger/iOS/*.{h,m}'
nostrip.xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '${inherited} NSLOGGER_WAS_HERE=1 NSLOGGER_BUILD_USERNAME="${USER}" NSLOGGER_ALLOW_NOSTRIP=1'
}
end
end