Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add support for .hh header files #576

Merged
merged 2 commits into from

2 participants

@jonathanpenn

Need to support .hh files as headers to use the live555 rtp library.
Followed the pattern of this commit:

f7587b1

That fixed issue #244 solving the same situation for .hpp headers.

Jonathan Penn Add support for .hh headers
Need to support .hh files as headers to use the live555 rtp library.
Followed the pattern of this commit:

CocoaPods/CocoaPods@f7587b1

That fixed issue #244 solving the same situation for .hpp headers.
cb2c8a7
@jonathanpenn jonathanpenn referenced this pull request in CocoaPods/Xcodeproj
Merged

Support .hh files as headers #32

Jonathan Penn Update changelog bd5105e
@jonathanpenn

Updated the changelog as requested by @irrationalfab in CocoaPods/Xcodeproj#32.

@fabiopelosin
Owner

Looks good, I'm merging it. Let me know if you would like push access.

@fabiopelosin fabiopelosin merged commit 3e0ea47 into from
@jonathanpenn
@fabiopelosin
Owner

Welcome aboard :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 5, 2012
  1. Add support for .hh headers

    Jonathan Penn authored
    Need to support .hh files as headers to use the live555 rtp library.
    Followed the pattern of this commit:
    
    CocoaPods/CocoaPods@f7587b1
    
    That fixed issue #244 solving the same situation for .hpp headers.
Commits on Oct 8, 2012
  1. Update changelog

    Jonathan Penn authored
This page is out of date. Refresh to see the latest.
Showing with 11 additions and 6 deletions.
  1. +5 −0 CHANGELOG.md
  2. +6 −6 lib/cocoapods/local_pod.rb
View
5 CHANGELOG.md
@@ -2,6 +2,11 @@
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.15.1...master)
+###### Bug fixes
+
+- Added support for `.hh` headers.
+ [#576](https://github.com/CocoaPods/CocoaPods/pull/576)
+
## 0.15.1
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.15.0...0.15.1)
View
12 lib/cocoapods/local_pod.rb
@@ -240,7 +240,7 @@ def relative_source_files_by_spec
# {Specification}.
#
def source_files_by_spec
- options = {:glob => '*.{h,hpp,m,mm,c,cpp}'}
+ options = {:glob => '*.{h,hpp,hh,m,mm,c,cpp}'}
paths_by_spec(:source_files, options)
end
@@ -262,7 +262,7 @@ def relative_header_files
def header_files_by_spec
result = {}
source_files_by_spec.each do |spec, paths|
- headers = paths.select { |f| f.extname == '.h' || f.extname == '.hpp' }
+ headers = paths.select { |f| f.extname == '.h' || f.extname == '.hpp' || f.extname == '.hh' }
result[spec] = headers unless headers.empty?
end
result
@@ -276,7 +276,7 @@ def header_files_by_spec
# header files (i.e. the build ones) are intended to be public.
#
def public_header_files_by_spec
- public_headers = paths_by_spec(:public_header_files, :glob => '*.{h,hpp}')
+ public_headers = paths_by_spec(:public_header_files, :glob => '*.{h,hpp,hh}')
build_headers = header_files_by_spec
result = {}
@@ -379,7 +379,7 @@ def documentation_headers
if (public_h = public_headers[spec]) && !public_h.empty?
result += public_h
elsif (source_f = source_files[spec]) && !source_f.empty?
- build_h = source_f.select { |f| f.extname == '.h' || f.extname == '.hpp' }
+ build_h = source_f.select { |f| f.extname == '.h' || f.extname == '.hpp' || f.extname == '.hh' }
result += build_h unless build_h.empty?
end
end
@@ -433,7 +433,7 @@ def requires_arc?
# (the files the need to compiled) of the pod.
#
def implementation_files
- relative_source_files.reject { |f| f.extname == '.h' || f.extname == '.hpp' }
+ relative_source_files.reject { |f| f.extname == '.h' || f.extname == '.hpp' || f.extname == '.hh' }
end
# @return [Pathname] The path of the pod relative from the sandbox.
@@ -476,7 +476,7 @@ def headers_sandbox
# included in the linker search paths.
#
def headers_excluded_from_search_paths
- options = { :glob => '*.{h,hpp}' }
+ options = { :glob => '*.{h,hpp,hh}' }
paths = paths_by_spec(:exclude_header_search_paths, options)
paths.values.compact.uniq
end
Something went wrong with that request. Please try again.