PHP 8.2.31
Preview: cmake_builder.rb Size: 444 B
/proc/thread-self/root/opt/alt/ruby26/lib64/ruby/2.6.0/rubygems/ext/cmake_builder.rb

# frozen_string_literal: true
require 'rubygems/command'

class Gem::Ext::CmakeBuilder < Gem::Ext::Builder
  def self.build(extension, dest_path, results, args=[], lib_dir=nil)
    unless File.exist?('Makefile')
      cmd = "cmake . -DCMAKE_INSTALL_PREFIX=#{dest_path}"
      cmd << " #{Gem::Command.build_args.join ' '}" unless Gem::Command.build_args.empty?

      run cmd, results
    end

    make dest_path, results

    results
  end
end

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
6.73 KB lrw-r--r-- 2022-04-12 11:50:11
Edit Download
144 B lrw-r--r-- 2022-04-12 11:50:11
Edit Download
444 B lrw-r--r-- 2022-04-12 11:50:11
Edit Download
514 B lrw-r--r-- 2022-04-12 11:50:11
Edit Download
2.87 KB lrw-r--r-- 2022-04-12 11:50:11
Edit Download
820 B lrw-r--r-- 2022-04-12 11:50:11
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).