mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Compile extension with houdini
This commit is contained in:
parent
b3e1cbccbb
commit
db25217032
1 changed files with 10 additions and 0 deletions
|
@ -1,4 +1,14 @@
|
||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
|
|
||||||
|
houdini_dir = File.expand_path('./houdini', __dir__)
|
||||||
|
$INCFLAGS << " -I#{houdini_dir}"
|
||||||
$CFLAGS << ' -Wall -Wextra'
|
$CFLAGS << ' -Wall -Wextra'
|
||||||
|
|
||||||
|
$srcs = %w[hamlit.c]
|
||||||
|
Dir[File.join(houdini_dir, '*.c')].each do |path|
|
||||||
|
src = File.basename(path)
|
||||||
|
FileUtils.ln_s(File.join(houdini_dir, src), src, force: true)
|
||||||
|
$srcs << src
|
||||||
|
end
|
||||||
|
|
||||||
create_makefile('hamlit/hamlit')
|
create_makefile('hamlit/hamlit')
|
||||||
|
|
Loading…
Reference in a new issue