Sha256: 2b43fcc38c0e0143043b175d78d9508e2b378c54511e7a7fc8f75aa964b0af2c

Contents?: true

Size: 607 Bytes

Versions: 6

Compression:

Stored size: 607 Bytes

Contents

require 'bundler/setup'
require 'mkmf-rice'
require 'rbconfig'

# Totally hack mkmf to make a unittest executable instead of a shared library
target_exe = "unittest#{RbConfig::CONFIG['EXEEXT']}"
$cleanfiles << target_exe

create_makefile(target_exe) do |conf|
  conf << "\n"
  conf << "#{target_exe}: $(OBJS)"
  conf << "\t$(ECHO) linking executable unittest"
  conf << "\t-$(Q)$(RM) $(@)"

  if IS_MSWIN
    conf << "\t$(Q) $(CXX) -Fe$(@) $(OBJS) $(LIBS) $(LOCAL_LIBS) -link $(ldflags) $(LIBPATH)"
  else
    conf << "\t$(Q) $(CXX) -o $@ $(OBJS) $(LIBPATH) $(LOCAL_LIBS) $(LIBS)"
  end

  conf << "\n"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rice-4.3.3 test/extconf.rb
rice-4.3.2 test/extconf.rb
rice-4.3.1 test/extconf.rb
rice-4.3.0 test/extconf.rb
rice-4.2.1 test/extconf.rb
rice-4.2.0 test/extconf.rb