-
-
Notifications
You must be signed in to change notification settings - Fork 82
Closed
Description
Originally posted by @karreiro in #13
Question
The way we currently build the native extension involves two phasesβone with the Makefile in the root and another generated by ext/erbx/extconf.rb. While this setup works, it adds an extra point of failure for users compiling the gem from source.
What do you think about adjusting the directory structure to have a single compilation process based on ext/erbx/extconf.rb? We could move from this:
.
βββ Gemfile
βββ ext
β βββ erbx
β βββ extconf.rb
β βββ extension.c
β βββ extension.h
β βββ test
β β βββ lexer_test.rb
β β βββ test_helper.rb
β βββ test.rb
βββ src
β βββ array.c
β βββ ast.c
β βββ buffer.c
β βββ erbx.c
β βββ include
β β βββ array.h
β β βββ ...
β β βββ version.h
To something like this:
.
βββ Gemfile
βββ ext
β βββ erbx
β βββ erbx.c
β βββ erbx.h
β βββ extconf.rb
β βββ src
β βββ array.c
β βββ ast.c
β βββ ...
β βββ buffer.c
βββ lib
β βββ erbx
β β βββ erbx.bundle
β β βββ version.rb
β βββ erbx.rb
I think this change could simplify things and make the build process a bit safer. I do like the current style of the repository, but having just one Makefile, based on ext/erbx/extconf.rb seems like a more straightforward convention to follow.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels