Sha256: 4be43f0fd23eddb124c1bc35216006028e2b9bbbfe98820302804aaa1d36a436

Contents?: true

Size: 1.42 KB

Versions: 16

Compression:

Stored size: 1.42 KB

Contents

# -*- encoding: UTF-8 -*-

module CSD
  module Application
    module Minisip
      module Component
        module HDVIPER
          class << self
            
            # This method processes HDVIPER.
            #
            def compile
              UI.debug "#{self}.compile was called"
              if Path.hdviper.directory? and !Options.reveal
                UI.warn "HDVIPER will not be processed, because the directory #{Path.hdviper.enquote} already exists."
              else
                checkout
                configure_and_make
              end
            end
            
            # This method informs about the HDVIPER process.
            #
            def introduction
            end
            
            # This method downloads the HDVIPER source code.
            #
            def checkout
              Cmd.git_clone('HDVIPER', 'http://github.com/csd/libraries.git', Path.hdviper)
            end
            
            # This method compiles HDVIPER, given that HDVIPER was downloaded before.
            #
            def configure_and_make
              UI.info "Compiling HDVIPER".green.bold
              Cmd.cd Path.hdviper_x264, :internal => true
              Cmd.run('./configure')
              Cmd.run('make')
              Cmd.cd Path.hdviper_x264_test_x264api, :internal => true
              Cmd.run('make')
            end
          
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
csd-0.3.3 lib/csd/application/minisip/component/hdviper.rb
csd-0.3.2 lib/csd/application/minisip/component/hdviper.rb
csd-0.3.1 lib/csd/application/minisip/component/hdviper.rb
csd-0.3.0 lib/csd/application/minisip/component/hdviper.rb
csd-0.2.2 lib/csd/application/minisip/component/hdviper.rb
csd-0.2.1 lib/csd/application/minisip/component/hdviper.rb
csd-0.2.0 lib/csd/application/minisip/component/hdviper.rb
csd-0.1.18 lib/csd/application/minisip/component/hdviper.rb
csd-0.1.17 lib/csd/application/minisip/component/hdviper.rb
csd-0.1.16 lib/csd/application/minisip/component/hdviper.rb
csd-0.1.15 lib/csd/application/minisip/component/hdviper.rb
csd-0.1.14 lib/csd/application/minisip/component/hdviper.rb
csd-0.1.13 lib/csd/application/minisip/component/hdviper.rb
csd-0.1.12 lib/csd/application/minisip/component/hdviper.rb
csd-0.1.11 lib/csd/application/minisip/component/hdviper.rb
csd-0.1.10 lib/csd/application/minisip/component/hdviper.rb