Track .def files as sources

parent 67d29d0b
...@@ -8,6 +8,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -8,6 +8,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Enhancements ##### 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` * `Pod::Installer::PostInstallHooksContext` now offers access to the `sandbox`
object. object.
[Marcelo Fabri](https://github.com/marcelofabri) [Marcelo Fabri](https://github.com/marcelofabri)
......
...@@ -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 .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 = { 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,.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, :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