Commit 052fe4eb authored by Samuel Giddins's avatar Samuel Giddins

[Target] Place umbrella headers / module maps in the headers directory

Only for static libs at the moment, but this means the relative paths found in the module map will be importable
parent c8dcdb30
...@@ -146,14 +146,18 @@ module Pod ...@@ -146,14 +146,18 @@ module Pod
# module map. # module map.
# #
def umbrella_header_path def umbrella_header_path
support_files_dir + "#{label}-umbrella.h" module_map_path.parent + "#{label}-umbrella.h"
end end
# @return [Pathname] the absolute path of the LLVM module map file that # @return [Pathname] the absolute path of the LLVM module map file that
# defines the module structure for the compiler. # defines the module structure for the compiler.
# #
def module_map_path def module_map_path
support_files_dir + "#{product_module_name}.modulemap" if requires_frameworks? || !respond_to?(:build_headers)
support_files_dir + "#{product_module_name}.modulemap"
else
build_headers.root + product_module_name + "#{label}.modulemap"
end
end end
# @return [Pathname] the absolute path of the bridge support file. # @return [Pathname] the absolute path of the bridge support file.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment