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
f7587b16
Commit
f7587b16
authored
Sep 28, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[LocalPod] Added support for .hpp headers.
Closes #244.
parent
67541e5e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
CHANGELOG.md
CHANGELOG.md
+3
-1
local_pod.rb
lib/cocoapods/local_pod.rb
+6
-6
No files found.
CHANGELOG.md
View file @
f7587b16
## Master
[
CocoaPods
](
https://github.com/CocoaPods/CocoaPods/compare/0.14.0...master
)
[
CocoaPods
](
https://github.com/CocoaPods/CocoaPods/compare/0.14.0...master
)
•
[
Xcodeproj
](
https://github.com/CocoaPods/Xcodeproj/compare/0.3.3...master
)
###### Enhancements
-
Pod
`install`
will update the specs repo only if needed.
...
...
@@ -34,6 +34,8 @@
[
#514
](
https://github.com/CocoaPods/CocoaPods/issues/514
)
-
Forcing UTF-8 encoding on licenses generation in Ruby 1.9.
[
#530
](
https://github.com/CocoaPods/CocoaPods/issues/530
)
-
Added support for
`.hpp`
headers.
[
#244
](
https://github.com/CocoaPods/CocoaPods/issues/244
)
## 0.14.0
...
...
lib/cocoapods/local_pod.rb
View file @
f7587b16
...
...
@@ -238,7 +238,7 @@ module Pod
# {Specification}.
#
def
source_files_by_spec
options
=
{
:glob
=>
'*.{h,m,mm,c,cpp}'
}
options
=
{
:glob
=>
'*.{h,
hpp,
m,mm,c,cpp}'
}
paths_by_spec
(
:source_files
,
options
)
end
...
...
@@ -260,7 +260,7 @@ module Pod
def
header_files_by_spec
result
=
{}
source_files_by_spec
.
each
do
|
spec
,
paths
|
headers
=
paths
.
select
{
|
f
|
f
.
extname
==
'.h'
}
headers
=
paths
.
select
{
|
f
|
f
.
extname
==
'.h'
||
f
.
extname
==
'.hpp'
}
result
[
spec
]
=
headers
unless
headers
.
empty?
end
result
...
...
@@ -274,7 +274,7 @@ module Pod
# 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
'
)
public_headers
=
paths_by_spec
(
:public_header_files
,
:glob
=>
'*.
{h,hpp}
'
)
build_headers
=
header_files_by_spec
result
=
{}
...
...
@@ -377,7 +377,7 @@ module Pod
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'
}
build_h
=
source_f
.
select
{
|
f
|
f
.
extname
==
'.h'
||
f
.
extname
==
'.hpp'
}
result
+=
build_h
unless
build_h
.
empty?
end
end
...
...
@@ -431,7 +431,7 @@ module Pod
# (the files the need to compiled) of the pod.
#
def
implementation_files
relative_source_files
.
select
{
|
f
|
f
.
extname
!=
'.h
'
}
relative_source_files
.
reject
{
|
f
|
f
.
extname
==
'.h'
||
f
.
extname
==
'.hpp
'
}
end
# @return [Pathname] The path of the pod relative from the sandbox.
...
...
@@ -474,7 +474,7 @@ module Pod
# included in the linker search paths.
#
def
headers_excluded_from_search_paths
options
=
{
:glob
=>
'*.
h
'
}
options
=
{
:glob
=>
'*.
{h,hpp}
'
}
paths
=
paths_by_spec
(
:exclude_header_search_paths
,
options
)
paths
.
values
.
compact
.
uniq
end
...
...
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