ruby-win32/lib/ruby/gems/1.8/gems/mongrel_service-0.3.4-x86-mswin32/tools/freebasic.rb
# this method will fix nested libraries and defines
# also, if main_file is missing (or wasn't set) will shift the first one
# as main

this method will fix nested libraries and defines
also, if main_file is missing (or wasn't set) will shift the first one
as main
this method will fix nested libraries and defines also if main_file is missing ( or wasn ' t set ) will shift the first one as main
def do_cleanup
        @defines.flatten!
        @defines.uniq! if @defines.length > 1
        if @type == :executable
          @main_file = @sources.shift unless defined?(@main_file)
        end
        @build_path = '.' if @build_path == ''
        @sources.uniq! if @sources.length > 1
        @libraries.flatten!
        @libraries.uniq! if @libraries.length > 1
        @search_path.flatten!
        @search_path.uniq! if @search_path.length > 1
        @libraries_path.flatten!
        @libraries_path.uniq! if @libraries_path.length > 1
        unless defined?(@output_name)
          executable(@name)
        end
      end
def do_cleanup @defines . flatten! @defines . uniq! if @defines . length > 1 if @type == :executable @main_file = @sources . shift unless defined? ( @main_file ) end @build_path = '.' if @build_path == '' @sources . uniq! if @sources . length > 1 @libraries . flatten! @libraries . uniq! if @libraries . length > 1 @search_path . flatten! @search_path . uniq! if @search_path . length > 1 @libraries_path . flatten! @libraries_path . uniq! if @libraries_path . length > 1 unless defined? ( @output_name ) executable ( @name ) end end
this method will fix nested libraries and defines
also, if main_file is missing (or wasn't set) will shift the first one
as main
this method will fix nested libraries and defines also if main_file is missing ( or wasn ' t set ) will shift the first one as main
# remove duplicated definitions, flatten 
 # set main_file
 # empty path? must be corrected
 # remove duplicates from sources
 # now the libraries
 # search path
 # libraries path
 # if no target was set, default to executable
