Commit 0ec2185c authored by Takeru Chuganji's avatar Takeru Chuganji

Calculate relative path if header_dir is specified

parent a72ce8bc
...@@ -58,12 +58,22 @@ module Pod ...@@ -58,12 +58,22 @@ module Pod
generator.headers.concat module_map_additional_headers generator.headers.concat module_map_additional_headers
end end
create_umbrella_header(native_target) do |generator| create_umbrella_header(native_target) do |generator|
generator.imports += if header_mappings_dir generator.imports += file_accessors.flat_map do |file_accessor|
file_accessors.flat_map(&:public_headers).map do |pathname| header_dir = if !target.requires_frameworks? && dir = file_accessor.spec_consumer.header_dir
pathname.relative_path_from(header_mappings_dir) Pathname.new(dir)
end end
file_accessor.public_headers.map do |public_header|
public_header = if header_mappings_dir
public_header.relative_path_from(header_mappings_dir)
else else
file_accessors.flat_map(&:public_headers).map(&:basename) public_header.basename
end
if header_dir
public_header = header_dir.join(public_header)
end
public_header
end
end end
end end
end end
......
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