Commit 1bf21c70 authored by Kyle Fuller's avatar Kyle Fuller

[Sandbox::FileAccessor] Add C++ Sources (.cxx, .c++)

parent 28c5c44d
......@@ -12,8 +12,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Marius Rackwitz](https://github.com/mrackwitz)
[#3440](https://github.com/CocoaPods/CocoaPods/issues/3440)
* C++ source files with `.cc` extension now have their compiler flags set correctly.
* C++ source files with `.cc`, `.cxx` and `.c++` extensions now have their
compiler flags set correctly.
[Chongyu Zhu](https://github.com/lembacon)
[Kyle Fuller](https://github.com/kylef)
* Fix an issue when installing Pods with executable files or broken symlinks
when installing a Pod.
......
......@@ -8,7 +8,7 @@ module Pod
#
class FileAccessor
HEADER_EXTENSIONS = Xcodeproj::Constants::HEADER_FILES_EXTENSIONS
SOURCE_FILE_EXTENSIONS = (%w(.m .mm .c .cc .cpp .swift) + HEADER_EXTENSIONS).uniq.freeze
SOURCE_FILE_EXTENSIONS = (%w(.m .mm .c .cc .cxx .cpp .c++ .swift) + HEADER_EXTENSIONS).uniq.freeze
GLOB_PATTERNS = {
:readme => 'readme{*,.*}'.freeze,
......
......@@ -211,7 +211,7 @@ module Pod
file_patterns = ['Classes/*.{h,m,d}', 'Vendor']
options = {
:exclude_patterns => ['Classes/**/osx/**/*', 'Resources/**/osx/**/*'],
:dir_pattern => '*{.m,.mm,.c,.cc,.cpp,.swift,.h,.hh,.hpp,.ipp,.tpp}',
:dir_pattern => '*{.m,.mm,.c,.cc,.cxx,.cpp,.c++,.swift,.h,.hh,.hpp,.ipp,.tpp}',
:include_dirs => false,
}
@spec.exclude_files = options[:exclude_patterns]
......
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