Sha256: 6793a063bf8bd6ae1503fc1fbe08a661d90062e3dba552cf24839958dddce944

Contents?: true

Size: 511 Bytes

Versions: 7

Compression:

Stored size: 511 Bytes

Contents

require 'mkmf'

houdini_dir = File.expand_path('./houdini', __dir__)
$INCFLAGS << " -I#{houdini_dir}"
$CFLAGS   << ' -Wall -Wextra'

$srcs = %w[hamlit.c]
Dir[File.join(houdini_dir, '*.c')].each do |path|
  src = File.basename(path)
  begin
    FileUtils.ln_s(path, src, force: true)
  rescue NotImplementedError
    # For the error on windows:
    # symlink() function is unimplemented on this machine (NotImplementedError)
    FileUtils.cp(path, src)
  end
  $srcs << src
end

create_makefile('hamlit/hamlit')

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hamlit-2.2.4 ext/hamlit/extconf.rb
hamlit-2.4.0 ext/hamlit/extconf.rb
hamlit-2.3.1 ext/hamlit/extconf.rb
hamlit-2.3.0 ext/hamlit/extconf.rb
hamlit-2.2.3 ext/hamlit/extconf.rb
hamlit-2.2.2 ext/hamlit/extconf.rb
hamlit-2.2.1 ext/hamlit/extconf.rb