PHP 8.2.31
Preview: cmake_builder.rb Size: 472 B
//proc/thread-self/root/opt/alt/ruby31/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: 1 × Files: 7

Name Size Perms Modified Actions
- drwxr-xr-x 2025-05-13 07:36:00
Edit Download
6.04 KB lrw-r--r-- 2025-04-28 17:36:10
Edit Download
178 B lrw-r--r-- 2025-04-28 17:36:10
Edit Download
8.82 KB lrw-r--r-- 2025-04-28 17:36:10
Edit Download
472 B lrw-r--r-- 2025-04-28 17:36:10
Edit Download
566 B lrw-r--r-- 2025-04-28 17:36:10
Edit Download
2.18 KB lrw-r--r-- 2025-04-28 17:36:10
Edit Download
943 B lrw-r--r-- 2025-04-28 17:36:10
Edit Download

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