PageRenderTime 18ms CodeModel.GetById 9ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/IronPython_Main/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.9.1/rubygems/ext/ext_conf_builder.rb

#
Ruby | 24 lines | 11 code | 8 blank | 5 comment | 0 complexity | b77310ed64176b023020fd56e84a976b MD5 | raw file
 1#--
 2# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
 3# All rights reserved.
 4# See LICENSE.txt for permissions.
 5#++
 6
 7require 'rubygems/ext/builder'
 8require 'rubygems/command'
 9
10class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
11
12  def self.build(extension, directory, dest_path, results)
13    cmd = "#{Gem.ruby} #{File.basename extension}"
14    cmd << " #{Gem::Command.build_args.join ' '}" unless Gem::Command.build_args.empty?
15
16    run cmd, results
17
18    make dest_path, results
19
20    results
21  end
22
23end
24