Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
4acf59d4
Commit
4acf59d4
authored
Feb 15, 2018
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PodTarget] Place generated module maps for static libraries in the public headers path
parent
cd554f43
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
target.rb
lib/cocoapods/target.rb
+0
-4
pod_target.rb
lib/cocoapods/target/pod_target.rb
+14
-0
No files found.
lib/cocoapods/target.rb
View file @
4acf59d4
...
@@ -158,11 +158,7 @@ module Pod
...
@@ -158,11 +158,7 @@ module Pod
#
#
def
module_map_path
def
module_map_path
basename
=
"
#{
label
}
.modulemap"
basename
=
"
#{
label
}
.modulemap"
if
requires_frameworks?
||
!
respond_to?
(
:build_headers
)
support_files_dir
+
basename
support_files_dir
+
basename
else
build_headers
.
root
+
product_module_name
+
basename
end
end
end
# @return [Pathname] the absolute path of the bridge support file.
# @return [Pathname] the absolute path of the bridge support file.
...
...
lib/cocoapods/target/pod_target.rb
View file @
4acf59d4
...
@@ -377,6 +377,20 @@ module Pod
...
@@ -377,6 +377,20 @@ module Pod
root_spec
.
name
root_spec
.
name
end
end
# @return [Pathname] the absolute path of the LLVM module map file that
# defines the module structure for the compiler.
#
def
module_map_path
basename
=
"
#{
label
}
.modulemap"
if
requires_frameworks?
super
elsif
file_accessors
.
any?
(
&
:module_map
)
build_headers
.
root
+
product_module_name
+
basename
else
sandbox
.
public_headers
.
root
+
product_module_name
+
basename
end
end
# @param [String] bundle_name
# @param [String] bundle_name
# The name of the bundle product, which is given by the +spec+.
# The name of the bundle product, which is given by the +spec+.
#
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment