Sha256: 7d584208bb863ef9342114360bc4a8da1ad75fb76ca04d5ae6987df57ce93c87

Contents?: true

Size: 736 Bytes

Versions: 21

Compression:

Stored size: 736 Bytes

Contents

require 'rbconfig'

ruby_executable = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['RUBY_INSTALL_NAME'] + RbConfig::CONFIG['EXEEXT'])

generator = ''

if RbConfig::CONFIG['host_os'] =~ /mingw/
  generator = '-G "MSYS Makefiles"'
elsif RbConfig::CONFIG['host_os'] =~ /cygwin/
  generator = '-G "Unix Makefiles"'
elsif RbConfig::CONFIG['host_os'] =~ /mswin/
  generator = '-G "NMake Makefiles"'
end

current_dir = File.dirname(__FILE__)
exec format(
  'cmake %s -DCMAKE_INSTALL_PREFIX=../../ -DRUBY_EXECUTABLE=%s %s %s/../ ',
  generator,
  ruby_executable,
  ARGV.join(' '),
  current_dir)



# require 'mkmf'
# puts "mkmf sadfkj"
# extension_name = 'pixo_native'
# dir_config(extension_name)
# create_makefile(extension_name)

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
pixo-0.4.5 ext/libpixgem/extconf.rb
pixo-0.4.4 ext/libpixgem/extconf.rb
pixo-0.4.3 ext/libpixgem/extconf.rb
pixo-0.4.2 ext/libpixgem/extconf.rb
pixo-0.4.1 ext/libpixgem/extconf.rb
pixo-0.4.0 ext/libpixgem/extconf.rb
pixo-0.3.2 ext/libpixgem/extconf.rb
pixo-0.3.1 ext/libpixgem/extconf.rb
pixo-0.3.0 ext/libpixgem/extconf.rb
pixo-0.2.6 ext/libpixgem/extconf.rb
pixo-0.2.5 ext/libpixgem/extconf.rb
pixo-0.2.4 ext/libpixgem/extconf.rb
pixo-0.2.3 ext/libpixgem/extconf.rb
pixo-0.2.2 ext/libpixgem/extconf.rb
pixo-0.2.1 ext/libpixgem/extconf.rb
pixo-0.2.0 ext/libpixgem/extconf.rb
pixo-0.1.4 ext/libpixgem/extconf.rb
pixo-0.1.3 ext/libpixgem/extconf.rb
pixo-0.1.2 ext/libpixgem/extconf.rb
pixo-0.1.1 ext/libpixgem/extconf.rb