Commit 24e80948 authored by Boris Bügling's avatar Boris Bügling

Merge pull request #4155 from aaresu/master

[Sandbox::FileAccessor] Add C++ Sources (.i)
parents 3479d34e 5493f14a
...@@ -12,6 +12,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -12,6 +12,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Thomas Kollbach](https://github.com/toto) [Thomas Kollbach](https://github.com/toto)
[#4130](https://github.com/CocoaPods/CocoaPods/issues/4130) [#4130](https://github.com/CocoaPods/CocoaPods/issues/4130)
* C or C++ preprocessor output files with `.i` extension now have their compiler
flags set correctly.
[Andrea Aresu](https://github.com/aaresu/)
## 0.39.0.beta.4 (2015-09-02) ## 0.39.0.beta.4 (2015-09-02)
......
...@@ -8,7 +8,7 @@ module Pod ...@@ -8,7 +8,7 @@ module Pod
# #
class FileAccessor class FileAccessor
HEADER_EXTENSIONS = Xcodeproj::Constants::HEADER_FILES_EXTENSIONS HEADER_EXTENSIONS = Xcodeproj::Constants::HEADER_FILES_EXTENSIONS
SOURCE_FILE_EXTENSIONS = (%w(.m .mm .c .cc .cxx .cpp .c++ .swift) + HEADER_EXTENSIONS).uniq.freeze SOURCE_FILE_EXTENSIONS = (%w(.m .mm .i .c .cc .cxx .cpp .c++ .swift) + HEADER_EXTENSIONS).uniq.freeze
GLOB_PATTERNS = { GLOB_PATTERNS = {
:readme => 'readme{*,.*}'.freeze, :readme => 'readme{*,.*}'.freeze,
......
...@@ -237,7 +237,7 @@ module Pod ...@@ -237,7 +237,7 @@ module Pod
file_patterns = ['Classes/*.{h,m,d}', 'Vendor', 'framework/Source/*.h'] file_patterns = ['Classes/*.{h,m,d}', 'Vendor', 'framework/Source/*.h']
options = { options = {
:exclude_patterns => ['Classes/**/osx/**/*', 'Resources/**/osx/**/*'], :exclude_patterns => ['Classes/**/osx/**/*', 'Resources/**/osx/**/*'],
:dir_pattern => '*{.m,.mm,.c,.cc,.cxx,.cpp,.c++,.swift,.h,.hh,.hpp,.ipp,.tpp}', :dir_pattern => '*{.m,.mm,.i,.c,.cc,.cxx,.cpp,.c++,.swift,.h,.hh,.hpp,.ipp,.tpp}',
:include_dirs => false, :include_dirs => false,
} }
@spec.exclude_files = options[:exclude_patterns] @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