GCDWebServer.podspec 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.5'
  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.private_header_files = "GCDWebServer/Core/GCDWebServerPrivate.h"
  22. cs.requires_arc = true
  23. cs.ios.library = 'z'
  24. cs.ios.frameworks = 'MobileCoreServices', 'CFNetwork'
  25. cs.osx.library = 'z'
  26. cs.osx.framework = 'SystemConfiguration'
  27. cs.compiler_flags = '-DNDEBUG' # TODO: Only set this for Release configuration
  28. end
  29. s.subspec 'WebDAV' do |cs|
  30. cs.dependency 'GCDWebServer/Core'
  31. cs.source_files = 'GCDWebDAVServer/*.{h,m}'
  32. cs.requires_arc = true
  33. cs.ios.library = 'xml2'
  34. cs.osx.library = 'xml2'
  35. cs.compiler_flags = '-I$(SDKROOT)/usr/include/libxml2'
  36. end
  37. s.subspec 'WebUploader' do |cs|
  38. cs.dependency 'GCDWebServer/Core'
  39. cs.source_files = 'GCDWebUploader/*.{h,m}'
  40. cs.requires_arc = true
  41. cs.resource = "GCDWebUploader/GCDWebUploader.bundle"
  42. end
  43. end