cocoapods-bb-xcframework 0.2.6.1 → 0.2.6.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be757b65dcad2eee788c536a5546173235e0763e8e55df3a935811554de77afd
|
4
|
+
data.tar.gz: 485a105ead0d091f645b49ad59a0da64afe3d4510ab2654e4215dfbb007fb7ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 161d22ffdf76f7af4753ebdbd8866b54c754855700d4b833b38cf80495690e98a18482e55bf1abca9ffaa99631279fe91cc581a9cc1cfac06d8d66b4250563d5
|
7
|
+
data.tar.gz: b65ef5e847ace4cb2ac17d9e1c52c4e61fc8a839758aa839e1e4a019b109c64e8bc9687beacb07c606ba8fd26be007b93cb1c3714004875e4207fc60ca37102d
|
@@ -84,7 +84,26 @@ module Pod
|
|
84
84
|
key = configuration[0]
|
85
85
|
if key == 'frameworks'
|
86
86
|
val = configuration[1]
|
87
|
-
|
87
|
+
if val.is_a? String
|
88
|
+
other_flags << "-framework #{val} "
|
89
|
+
elsif val.is_a? Array
|
90
|
+
val.uniq.each do |item|
|
91
|
+
other_flags << "-framework #{item} "
|
92
|
+
end
|
93
|
+
else
|
94
|
+
UI.puts "framework configuration:#{configuration} val:#{val}"
|
95
|
+
end
|
96
|
+
elsif key == 'libraries'
|
97
|
+
val = configuration[1]
|
98
|
+
if val.is_a? String
|
99
|
+
other_flags << "-l #{val} "
|
100
|
+
elsif val.is_a? Array
|
101
|
+
val.uniq.each do |item|
|
102
|
+
other_flags << "-l #{item} "
|
103
|
+
end
|
104
|
+
else
|
105
|
+
UI.puts "libraries configuration:#{configuration} val:#{val}"
|
106
|
+
end
|
88
107
|
end
|
89
108
|
end
|
90
109
|
end
|
@@ -113,6 +132,11 @@ module Pod
|
|
113
132
|
UI.puts "configuration other_flags: #{other_flags}"
|
114
133
|
configuration.build_settings['OTHER_LDFLAGS'] = "#{other_flags}"
|
115
134
|
end
|
135
|
+
if support_dynamic
|
136
|
+
configuration.build_settings['MACH_O_TYPE'] = 'mh_dylib'
|
137
|
+
else
|
138
|
+
configuration.build_settings['MACH_O_TYPE'] = 'staticlib'
|
139
|
+
end
|
116
140
|
end
|
117
141
|
end
|
118
142
|
end
|
@@ -6,7 +6,7 @@ module Pod
|
|
6
6
|
include XcodeProjHelper
|
7
7
|
include PodUtil
|
8
8
|
include Config::Mixin
|
9
|
-
def initialize(installer, source_dir, sandbox_root, spec, configuration, symbols=true, support_maccatalyst=true
|
9
|
+
def initialize(installer, source_dir, sandbox_root, spec, configuration, symbols=true, support_maccatalyst=true)
|
10
10
|
# def initialize(platform, installer, source_dir, sandbox_root, spec, config)
|
11
11
|
# @platform = platform
|
12
12
|
@installer = installer
|
@@ -21,35 +21,20 @@ module Pod
|
|
21
21
|
@outputs = Hash.new
|
22
22
|
@symbols = symbols
|
23
23
|
@support_maccatalyst = support_maccatalyst
|
24
|
-
@support_dynamic = support_dynamic
|
25
24
|
end
|
26
25
|
|
27
26
|
def build
|
28
27
|
UI.puts("Building framework #{@spec} with configuration #{@configuration}")
|
29
|
-
UI.puts "Work dir is :#{@sandbox_root} isSymbols:#{@symbols}
|
28
|
+
UI.puts "Work dir is :#{@sandbox_root} isSymbols:#{@symbols}"
|
30
29
|
# defines = "GCC_PREPROCESSOR_DEFINITIONS='$(inherited) PodsDummy_Pods_#{@spec.name}=PodsDummy_PodPackage_#{@spec.name}'"
|
31
30
|
defines = ""
|
32
31
|
if @configuration == 'Debug'
|
33
|
-
|
34
|
-
defines << 'GCC_GENERATE_DEBUGGING_SYMBOLS=YES ONLY_ACTIVE_ARCH=NO MACH_O_TYPE=mh_dylib'
|
35
|
-
else
|
36
|
-
defines << 'GCC_GENERATE_DEBUGGING_SYMBOLS=YES ONLY_ACTIVE_ARCH=NO MACH_O_TYPE=staticlib'
|
37
|
-
end
|
32
|
+
defines << 'GCC_GENERATE_DEBUGGING_SYMBOLS=YES ONLY_ACTIVE_ARCH=NO'
|
38
33
|
else
|
39
34
|
if @symbols
|
40
|
-
|
41
|
-
defines << 'GCC_GENERATE_DEBUGGING_SYMBOLS=YES MACH_O_TYPE=mh_dylib'
|
42
|
-
else
|
43
|
-
defines << 'GCC_GENERATE_DEBUGGING_SYMBOLS=YES MACH_O_TYPE=staticlib'
|
44
|
-
end
|
45
|
-
# defines << "GCC_GENERATE_DEBUGGING_SYMBOLS=YES" # Release模式需要符号表应于问题排查(二进制切源码操作) by hm 21/10/13
|
35
|
+
defines << "GCC_GENERATE_DEBUGGING_SYMBOLS=YES" # Release模式需要符号表应于问题排查(二进制切源码操作) by hm 21/10/13
|
46
36
|
else
|
47
|
-
|
48
|
-
defines << 'GCC_GENERATE_DEBUGGING_SYMBOLS=NO MACH_O_TYPE=mh_dylib'
|
49
|
-
else
|
50
|
-
defines << 'GCC_GENERATE_DEBUGGING_SYMBOLS=NO MACH_O_TYPE=staticlib'
|
51
|
-
end
|
52
|
-
# defines << "GCC_GENERATE_DEBUGGING_SYMBOLS=NO" # 去除符号表
|
37
|
+
defines << "GCC_GENERATE_DEBUGGING_SYMBOLS=NO" # 去除符号表
|
53
38
|
end
|
54
39
|
end
|
55
40
|
|