#
# Be sure to run `pod lib lint FFmpegTutorial.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'FFmpegTutorial'
  s.version          = '0.4.5'
  s.summary          = '适合 iOS/macOS 开发人员学习的 FFmpeg 教程.'
  s.description      = <<-DESC
  为了让更多零基础的 iOS/macOS 开发人员少走弯路，我编写了这个 FFmpeg 学习教程，最终的目标是封装一个播放器。
                       DESC

  s.homepage         = 'https://debugly.cn/FFmpegTutorial/'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'MattReach' => 'qianlongxu@gmail.com' }
  s.source           = { :git => 'https://github.com/debugly/FFmpegTutorial.git', :tag => s.version.to_s }

  s.ios.deployment_target = '9.0'
  s.osx.deployment_target = '10.11'
  s.static_framework = true
  
  s.subspec 'common' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/common/**/*.{h,m}'
    ss.public_header_files = [
      'FFmpegTutorial/Classes/common/*.h',
      'FFmpegTutorial/Classes/common/hud/*.h',
      'FFmpegTutorial/Classes/common/headers/public/*.h'
    ]
    ss.private_header_files = 'FFmpegTutorial/Classes/common/headers/private/*.h'
  end

  s.subspec '0x01' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/0x01/*.{h,m}'
    ss.public_header_files = 'FFmpegTutorial/Classes/0x01/*.h'
  end
  
  s.subspec '0x02' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/0x02/*.{h,m}'
    ss.public_header_files = 'FFmpegTutorial/Classes/0x02/*.h'
  end

  s.subspec '0x03' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/0x03/*.{h,m}'
    ss.public_header_files = 'FFmpegTutorial/Classes/0x03/*.h'
  end

  s.subspec '0x04' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/0x04/*.{h,m}'
    ss.public_header_files = 'FFmpegTutorial/Classes/0x04/*.h'
  end

  s.subspec '0x05' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/0x05/*.{h,m}'
    ss.public_header_files = 'FFmpegTutorial/Classes/0x05/*.h'
  end

  s.subspec '0x06' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/0x06/*.{h,m}'
    ss.public_header_files = 'FFmpegTutorial/Classes/0x06/*.h'
  end

  s.subspec '0x10' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/0x10/*.{h,m}'
    ss.public_header_files = 'FFmpegTutorial/Classes/0x10/FFPlayer0x10.h'
  end

  s.subspec '0x11' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/0x11/*.{h,m}'
    ss.public_header_files = 'FFmpegTutorial/Classes/0x11/FFPlayer0x11.h'
  end

  s.subspec '0x12' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/0x12/*.{h,m}'
    ss.public_header_files = 'FFmpegTutorial/Classes/0x12/FFPlayer0x12.h'
  end

  s.subspec '0x13' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/0x13/*.{h,m}'
    ss.public_header_files = 'FFmpegTutorial/Classes/0x13/FFPlayer0x13.h'
  end

  s.subspec '0x14' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/0x14/*.{h,m}'
    ss.public_header_files = 'FFmpegTutorial/Classes/0x14/FFPlayer0x14.h'
  end

  s.subspec '0x15' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/0x15/*.{h,m}'
    ss.public_header_files = 'FFmpegTutorial/Classes/0x15/FFPlayer0x15.h'
  end

  s.subspec '0x16' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/0x16/*.{h,m}'
    ss.public_header_files = 'FFmpegTutorial/Classes/0x16/FFPlayer0x16.h'
  end

  s.subspec '0x20' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/0x20/*.{h,m}'
    ss.public_header_files = 'FFmpegTutorial/Classes/0x20/FFPlayer0x20.h'
  end

  s.subspec '0x30' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/0x30/*.{h,m}'
    ss.public_header_files = 'FFmpegTutorial/Classes/0x30/FFPlayer0x30.h'
  end

  s.subspec '0x31' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/0x31/*.{h,m}'
    ss.public_header_files = 'FFmpegTutorial/Classes/0x31/FFPlayer0x31.h'
  end

  s.subspec '0x32' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/0x32/*.{h,m}'
    ss.public_header_files = 'FFmpegTutorial/Classes/0x32/FFPlayer0x32.h'
  end

  s.subspec '0x40' do |ss|
    ss.source_files = 'FFmpegTutorial/Classes/0x40/*.{h,m}'
    ss.public_header_files = 'FFmpegTutorial/Classes/0x40/FFPlayer0x40.h'
  end

  s.dependency 'MRFFmpegPod'
  s.osx.framework = 'OpenGL'
  s.ios.framework = 'OpenGLES'

end
