Files
GCDWebServer/GCDWebServer.podspec
cuong mac mini m2 b84e6149d6 Clean up podspec: drop redundant libxml2 flag and requires_arc
- Remove `-I$(SDKROOT)/usr/include/libxml2` from the WebDAV subspec: the
  modern SDK ships a libxml2 module map that resolves <libxml/parser.h>
  with no extra header search path (verified via pod lib lint).
- Remove all `requires_arc = true` declarations: ARC is the CocoaPods
  default and the sources already enforce it with #error guards. They
  were leftovers from when GCDWebServer <= 3.1 supported MRC.
- Remove the leftover pod trunk template comment block.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-08 16:03:51 +07:00

41 lines
1.4 KiB
Ruby

Pod::Spec.new do |s|
s.name = 'GCDWebServer'
s.version = '3.5.4'
s.author = { 'Pierre-Olivier Latour' => 'info@pol-online.net' }
s.license = { :type => 'BSD', :file => 'LICENSE' }
s.homepage = 'https://github.com/swisspol/GCDWebServer'
s.summary = 'Lightweight GCD based HTTP server for OS X & iOS (includes web based uploader & WebDAV server)'
s.source = { :git => 'https://github.com/swisspol/GCDWebServer.git', :tag => s.version.to_s }
s.ios.deployment_target = '16.0'
s.tvos.deployment_target = '16.0'
s.osx.deployment_target = '12.0'
s.default_subspec = 'Core'
s.subspec 'Core' do |cs|
cs.source_files = 'GCDWebServer/**/*.{h,m}'
cs.private_header_files = "GCDWebServer/Core/GCDWebServerPrivate.h"
cs.ios.library = 'z'
cs.ios.frameworks = 'CoreServices', 'CFNetwork'
cs.tvos.library = 'z'
cs.tvos.frameworks = 'CoreServices', 'CFNetwork'
cs.osx.library = 'z'
cs.osx.framework = 'SystemConfiguration'
end
s.subspec 'WebDAV' do |cs|
cs.dependency 'GCDWebServer/Core'
cs.source_files = 'GCDWebDAVServer/*.{h,m}'
cs.ios.library = 'xml2'
cs.tvos.library = 'xml2'
cs.osx.library = 'xml2'
end
s.subspec 'WebUploader' do |cs|
cs.dependency 'GCDWebServer/Core'
cs.source_files = 'GCDWebUploader/*.{h,m}'
cs.resource = "GCDWebUploader/GCDWebUploader.bundle"
end
end