PHP 8.2.31
Preview: cmake_builder.rb Size: 446 B
//proc/thread-self/root/opt/alt/ruby27/share/rubygems/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
5.88 KB lrw-r--r-- 2023-03-30 12:34:08
Edit Download
144 B lrw-r--r-- 2023-03-30 12:34:08
Edit Download
446 B lrw-r--r-- 2023-03-30 12:34:08
Edit Download
514 B lrw-r--r-- 2023-03-30 12:34:08
Edit Download
2.89 KB lrw-r--r-- 2023-03-30 12:34:08
Edit Download
860 B lrw-r--r-- 2023-03-30 12:34:08
Edit Download

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