-
-
Notifications
You must be signed in to change notification settings - Fork 899
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nokogumbo-import: restructure as a mini_portile recipe
- move nokogumbo.c to ext/nokogiri/gumbo.c - remove the nokogumbo extension - treat the gumbo parser as a mini_portile recipe I'm not 100% sure this is the right thing to do, but let's see how far I get on cross-compiling before I give up.
- Loading branch information
1 parent
fc5ae1c
commit 0f22de1
Showing
7 changed files
with
78 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# this Makefile is used by ext/nokogiri/extconf.rb | ||
# to enable a mini_portile2 recipe to build the gumbo parser | ||
.PHONY: clean | ||
|
||
override CFLAGS += -std=c99 -Wall | ||
|
||
gumbo_objs := $(patsubst %.c,%.o,$(wildcard *.c)) | ||
|
||
libgumbo.a: $(gumbo_objs) | ||
ar rcs $@ $^ | ||
|
||
clean: | ||
rm -f $(gumbo_objs) libgumbo.a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters