File: application.rb

package info (click to toggle)
mkvtoolnix 92.0-1
  • links: PTS
  • area: main
  • in suites: trixie
  • size: 58,620 kB
  • sloc: cpp: 216,810; ruby: 11,403; xml: 8,058; ansic: 6,885; sh: 4,884; python: 1,041; perl: 191; makefile: 113; awk: 16; javascript: 4
file content (18 lines) | stat: -rw-r--r-- 466 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class Application < Target
  def initialize(exe)
    super exe + c(:EXEEXT)
    @namespace = :apps
  end

  def create_specific
    libraries :rpcrt4, :if => c?(:MINGW)

    namespace :apps do
      desc @desc if @aliases.empty? && !@desc.blank?
      file @target => @dependencies do |t|
        runq "link", t.name, "#{c(:CXX)} #{$flags[:ldflags]} #{$system_libdirs} -o #{t.name} #{@objects.join(" ")} #{@libraries.join(" ")}"
      end
    end
    self
  end
end