forked from facebookarchive/FBAllocationTracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFBAllocationTracker.podspec
43 lines (37 loc) · 1.48 KB
/
FBAllocationTracker.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
Pod::Spec.new do |s|
s.name = "FBAllocationTracker"
s.version = "0.1.5"
s.summary = "Interface for tracking allocations and generations of objects"
s.homepage = "https://github.com/facebook/FBAllocationTracker"
s.license = "BSD"
s.author = { "Grzegorz Pstrucha" => "gricha@fb.com" }
s.ios.deployment_target = '7.0'
s.osx.deployment_target = '10.10'
s.source = {
:git => "https://github.com/facebook/FBAllocationTracker.git",
:tag => "0.1.5"
}
s.source_files = "FBAllocationTracker", "FBAllocationTracker/**/*.{h,m,mm}"
mrr_files = [
'FBAllocationTracker/NSObject+FBAllocationTracker.h',
'FBAllocationTracker/NSObject+FBAllocationTracker.mm',
'FBAllocationTracker/Generations/FBAllocationTrackerNSZombieSupport.h',
'FBAllocationTracker/Generations/FBAllocationTrackerNSZombieSupport.mm'
]
files = Pathname.glob("FBAllocationTracker/**/*.{h,m,mm}")
files = files.map {|file| file.to_path}
files = files.reject {|file| mrr_files.include?(file)}
s.requires_arc = files
s.osx.compiler_flags = '-fobjc-weak'
s.public_header_files = [
'FBAllocationTracker/FBAllocationTracker.h',
'FBAllocationTracker/FBAllocationTrackerManager.h',
'FBAllocationTracker/FBAllocationTrackerSummary.h',
'FBAllocationTracker/FBAllocationTrackerDefines.h',
]
s.framework = "Foundation"
s.library = 'c++'
s.test_spec 'Tests' do |test_spec|
test_spec.source_files = 'FBAllocationTrackerTests/*.mm'
end
end