cocoapods-packager-ext 0.0.35 → 0.0.39
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: b16d76f32b0b7b59eb3b83e52d11ab527aa43a8e69e3e7c143e12940490c0f08
|
4
|
+
data.tar.gz: e247f9e36013617ebdb8838a8e41fc6e84b03091a0e2d036327113aeea824076
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 355011736958b8e2806766ed83d77a17dfa89b11e227b2d5db3fba04358fccac38be736f11943d555fc6579ee33f00ea6ad6e54d9108153246fd3ee5c8bfb1b7
|
7
|
+
data.tar.gz: 833e373bef5a9cccb689cf659688953d6af73a6849603725da17d10539d26f993a5c5ef6320b4ae2d45e221df5798bde1415ddcdb25d991255a809be98293916
|
@@ -89,6 +89,29 @@ module Pod
|
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
92
|
+
alias compile_t compile
|
93
|
+
def compile
|
94
|
+
if ENV['GCC_PREPROCESSOR_DEFINITIONS']
|
95
|
+
defines = "GCC_PREPROCESSOR_DEFINITIONS='$(inherited) PodsDummy_Pods_#{@spec.name}=PodsDummy_PodPackage_#{@spec.name} #{ENV['GCC_PREPROCESSOR_DEFINITIONS']}'"
|
96
|
+
UI.puts "Set GCC_PREPROCESSOR_DEFINITIONS:#{defines}"
|
97
|
+
else
|
98
|
+
defines = "GCC_PREPROCESSOR_DEFINITIONS='$(inherited) PodsDummy_Pods_#{@spec.name}=PodsDummy_PodPackage_#{@spec.name}'"
|
99
|
+
end
|
100
|
+
defines << ' ' << @spec.consumer(@platform).compiler_flags.join(' ')
|
101
|
+
|
102
|
+
if @platform.name == :ios
|
103
|
+
options = ios_build_options
|
104
|
+
end
|
105
|
+
|
106
|
+
xcodebuild(defines, options)
|
107
|
+
|
108
|
+
if @mangle
|
109
|
+
return build_with_mangling(options)
|
110
|
+
end
|
111
|
+
|
112
|
+
defines
|
113
|
+
end
|
114
|
+
|
92
115
|
def static_linker_defines
|
93
116
|
static_libs = static_libs_in_sandbox('build') + static_libs_in_sandbox('build-sim')
|
94
117
|
static_libs = static_libs.map { |path| Pathname("#{Dir.pwd}/#{path}").parent.to_s }
|
@@ -241,6 +264,7 @@ MAP
|
|
241
264
|
end
|
242
265
|
|
243
266
|
command = "xcodebuild #{defines} #{args} CONFIGURATION_BUILD_DIR=#{build_dir} clean build -configuration #{config} -target #{target} -project #{project_root}/Pods.xcodeproj 2>&1"
|
267
|
+
UI.puts "exec command: #{command}"
|
244
268
|
output = `#{command}`.lines.to_a
|
245
269
|
|
246
270
|
if $?.exitstatus != 0
|
@@ -18,12 +18,29 @@ module Pod
|
|
18
18
|
|
19
19
|
archs = []
|
20
20
|
dynamic_target = Pod::PodTarget.new(dynamic_sandbox, BuildType.dynamic_framework, static_target.user_build_configurations, archs, platform, static_target.specs, static_target.target_definitions, file_accessors)
|
21
|
+
ln_source_to_dynamic_target(static_installer,dynamic_sandbox)
|
21
22
|
dynamic_target
|
22
23
|
end
|
23
24
|
alias copy_dynamic_target_t copy_dynamic_target
|
24
25
|
def copy_dynamic_target(static_sandbox, _dynamic_target, dynamic_sandbox)
|
25
|
-
|
26
|
-
|
26
|
+
if Dir.exist? static_sandbox.root+@spec.name
|
27
|
+
command = "ln -sf #{static_sandbox.root}/#{@spec.name} #{dynamic_sandbox.root}"
|
28
|
+
`#{command}`
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def ln_source_to_dynamic_target(static_installer, dynamic_sandbox)
|
33
|
+
if not Dir.exist? static_installer.sandbox.root+@spec.name
|
34
|
+
file_accessors = static_installer.pod_targets.select { |t| t.pod_name == @spec.name }.flat_map(&:file_accessors)
|
35
|
+
if file_accessors && file_accessors.length > 0
|
36
|
+
source_root = file_accessors[0].path_list.root
|
37
|
+
command = "ln -sf #{source_root} #{dynamic_sandbox.root}/#{@spec.name}"
|
38
|
+
`#{command}`
|
39
|
+
else
|
40
|
+
UI.puts "#{@spec.name} 根目录找不到"
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
27
44
|
end
|
28
45
|
|
29
46
|
alias write_pod_project_t write_pod_project
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-packager-ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.39
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kyle.zhou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|