-
Notifications
You must be signed in to change notification settings - Fork 9
/
MTGLDebug.podspec
executable file
·77 lines (61 loc) · 2.49 KB
/
MTGLDebug.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
Pod::Spec.new do |s|
s.name = "MTGLDebug"
s.version = "3.1.2"
s.summary = "An OpenGL Debugging tool for iOS"
s.description = "An OpenGL Debugging tool for iOS, provides the ability to track OpenGL resource memory usage and common incorrect usage of OpenGL API."
s.homepage = "https://github.com/meitu/MTGLDebug.git"
s.license = {
:type => 'Copyright',
:text => <<-LICENSE
@ 2008 - present Meitu, Inc. All rights reserved.
LICENSE
}
s.authors = { 'Xiaojun Zhang' => '[email protected]' , 'wzq' => '[email protected]' }
s.platform = :ios, '8.0'
s.source = { :git => "https://github.com/meitu/MTGLDebug.git", :tag => "#{s.version}" }
# without public hpp header by default (for swift).
s.default_subspec = 'ARC'
s.subspec 'ARC' do |spec|
spec.source_files = 'MTGLDebug/iOS/*.{h,hpp,c,mm,m}'
spec.public_header_files =
'MTGLDebug/iOS/MTGLDebug.h',
'MTGLDebug/iOS/MTGLDebugImpl.h',
'MTGLDebug/iOS/MTGLDebugObject.h',
'MTGLDebug/iOS/MTGLDebugObject+QuickLook.h'
spec.dependency 'MTGLDebug/MRC'
spec.ios.frameworks = 'Foundation', 'UIKit'
spec.requires_arc = true
end
s.subspec 'MRC' do |spec|
spec.public_header_files =
'MTGLDebug/Core/MTGLDebug_GL.h',
'MTGLDebug/Core/MTGLDebug_Platform.h'
spec.source_files = 'MTGLDebug/Core/*.{hpp,cpp,h,mm,c,m}'
spec.ios.frameworks = 'OpenGLES', 'CoreVideo', 'AVFoundation', 'CoreMedia', 'AudioToolbox', "CoreGraphics"
spec.requires_arc = false
spec.libraries = 'c++'
spec.pod_target_xcconfig = {
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++11',
'CLANG_CXX_LIBRARY' => 'libc++'
}
end
# use for test or need all header (hpp should be exclude while using in Swift)
s.subspec 'WithAllHeader' do |spec|
spec.source_files = 'MTGLDebug/iOS/**/*.{h,hpp,c,mm,m}'
spec.public_header_files = 'MTGLDebug/iOS/**/*.{h,hpp}'
spec.ios.frameworks = 'Foundation', 'UIKit'
spec.requires_arc = true
spec.subspec 'MRC' do |mrc|
mrc.source_files = 'MTGLDebug/Core/**/*.{h,hpp,cpp,c,mm,m}'
mrc.public_header_files = 'MTGLDebug/Core/**/*.{h,hpp}'
mrc.requires_arc = false
mrc.ios.frameworks = 'OpenGLES', 'CoreVideo', 'AVFoundation', 'CoreMedia', 'AudioToolbox', "CoreGraphics"
mrc.libraries = 'c++'
mrc.pod_target_xcconfig = {
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++11',
'CLANG_CXX_LIBRARY' => 'libc++'
}
end
end
s.dependency 'fishhook', '~> 0.2'
end