2010-07-25 20:43:57 +00:00
|
|
|
class Application < Target
|
|
|
|
def initialize(exe)
|
|
|
|
super exe + c(:EXEEXT)
|
2010-07-27 07:25:02 +00:00
|
|
|
@namespace = :apps
|
2010-07-25 20:43:57 +00:00
|
|
|
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|
|
2016-03-26 11:34:52 +00:00
|
|
|
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
|
2010-07-25 20:43:57 +00:00
|
|
|
end
|
|
|
|
self
|
|
|
|
end
|
|
|
|
end
|