GCDWebServer.podspec 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # http://guides.cocoapods.org/syntax/podspec.html
  2. # Verify Podspec with:
  3. # sudo gem update cocoapods
  4. # pod spec lint GCDWebServer.podspec --verbose
  5. # Add to source line:
  6. # :tag => s.version.to_s
  7. Pod::Spec.new do |s|
  8. s.name = 'GCDWebServer'
  9. s.version = '2.3'
  10. s.author = { 'Pierre-Olivier Latour' => 'info@pol-online.net' }
  11. s.license = { :type => 'BSD', :file => 'LICENSE' }
  12. s.homepage = 'https://github.com/swisspol/GCDWebServer'
  13. s.summary = 'Lightweight GCD based HTTP server for OS X & iOS (includes web based uploader & WebDAV server)'
  14. s.source = { :git => 'https://github.com/swisspol/GCDWebServer.git' }
  15. s.ios.deployment_target = '5.0'
  16. s.osx.deployment_target = '10.7'
  17. s.requires_arc = true
  18. s.default_subspec = 'Core'
  19. s.subspec 'Core' do |cs|
  20. cs.source_files = 'GCDWebServer/**/*.{h,m}'
  21. cs.requires_arc = true
  22. cs.ios.library = 'z'
  23. cs.ios.frameworks = 'MobileCoreServices', 'CFNetwork'
  24. cs.osx.library = 'z'
  25. cs.osx.framework = 'SystemConfiguration'
  26. cs.compiler_flags = '-DNDEBUG' # TODO: Only set this for Release configuration
  27. end
  28. s.subspec 'WebDAV' do |cs|
  29. cs.dependency 'GCDWebServer/Core'
  30. cs.source_files = 'GCDWebDAVServer/*.{h,m}'
  31. cs.requires_arc = true
  32. cs.ios.library = 'xml2'
  33. cs.osx.library = 'xml2'
  34. cs.compiler_flags = '-I$(SDKROOT)/usr/include/libxml2'
  35. end
  36. s.subspec 'WebUploader' do |cs|
  37. cs.dependency 'GCDWebServer/Core'
  38. cs.source_files = 'GCDWebUploader/*.{h,m}'
  39. cs.requires_arc = true
  40. cs.resource = "GCDWebUploader/GCDWebUploader.bundle"
  41. end
  42. end