Commit d863ecf2 authored by Boris Bügling's avatar Boris Bügling

Merge pull request #4490 from dnkoutso/master

Track .def files as sources
parents c12cc39d ddc30310
......@@ -8,6 +8,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Enhancements
* Add support to track `.def` sources.
[Dimitris Koutsogiorgas](https://github.com/dnkoutso)
[#4490](https://github.com/CocoaPods/CocoaPods/pull/4490)
* `Pod::Installer::PostInstallHooksContext` now offers access to the `sandbox`
object.
[Marcelo Fabri](https://github.com/marcelofabri)
......
......@@ -8,7 +8,7 @@ module Pod
#
class FileAccessor
HEADER_EXTENSIONS = Xcodeproj::Constants::HEADER_FILES_EXTENSIONS
SOURCE_FILE_EXTENSIONS = (%w(.m .mm .i .c .cc .cxx .cpp .c++ .swift) + HEADER_EXTENSIONS).uniq.freeze
SOURCE_FILE_EXTENSIONS = (%w(.m .mm .i .c .cc .cxx .cpp .c++ .swift .def) + HEADER_EXTENSIONS).uniq.freeze
GLOB_PATTERNS = {
:readme => 'readme{*,.*}'.freeze,
......
......@@ -237,7 +237,7 @@ module Pod
file_patterns = ['Classes/*.{h,m,d}', 'Vendor', 'framework/Source/*.h']
options = {
:exclude_patterns => ['Classes/**/osx/**/*', 'Resources/**/osx/**/*'],
:dir_pattern => '*{.m,.mm,.i,.c,.cc,.cxx,.cpp,.c++,.swift,.h,.hh,.hpp,.ipp,.tpp,.hxx}',
:dir_pattern => '*{.m,.mm,.i,.c,.cc,.cxx,.cpp,.c++,.swift,.def,.h,.hh,.hpp,.ipp,.tpp,.hxx}',
: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