PHP 8.2.31
Preview: cmake_builder.rb Size: 472 B
//proc/thread-self/root/opt/alt/ruby30/share/rubygems/rubygems/ext/cmake_builder.rb

# frozen_string_literal: true

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

      run cmd, results, class_name, cmake_dir
    end

    make dest_path, results, cmake_dir

    results
  end
end

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
5.63 KB lrw-r--r-- 2024-06-26 13:55:21
Edit Download
178 B lrw-r--r-- 2024-06-26 13:55:21
Edit Download
472 B lrw-r--r-- 2024-06-26 13:55:21
Edit Download
566 B lrw-r--r-- 2024-06-26 13:55:21
Edit Download
3.31 KB lrw-r--r-- 2024-06-26 13:55:21
Edit Download
943 B lrw-r--r-- 2024-06-26 13:55:21
Edit Download

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