mkvtoolnix/rake.d/application.rb

19 lines
466 B
Ruby
Raw Normal View History

class Application < Target
def initialize(exe)
super exe + c(:EXEEXT)
2010-07-27 07:25:02 +00:00
@namespace = :apps
end
def create_specific
2010-07-28 07:27:17 +00:00
libraries :rpcrt4, :if => c?(:MINGW)
2010-07-27 07:25:02 +00:00
namespace :apps do
desc @desc if @aliases.empty? && !@desc.empty?
file @target => @dependencies do |t|
runq "link", t.name, "#{c(:CXX)} #{$flags[:ldflags]} #{$system_libdirs} -o #{t.name} #{@objects.join(" ")} #{@libraries.join(" ")}"
2010-07-27 07:25:02 +00:00
end
end
self
end
end