GCDWebServer.podspec 1.5 KB

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