forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibHTML: Make it possible to build LibHTML on the host.
- "make" builds the normal Serenity libhtml.a - "make -f Makefile.host" builds a test program for the host machine.
- Loading branch information
1 parent
04b2082
commit 7e1cb86
Showing
12 changed files
with
101 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
#else | ||
#include <stdio.h> | ||
#define kprintf printf | ||
#define dbgprintf printf | ||
#endif |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#include <LibCore/CFile.h> | ||
#include <errno.h> | ||
#include <fcntl.h> | ||
#include <stdio.h> | ||
#include <unistd.h> | ||
|
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,20 @@ | ||
all: tho | ||
|
||
CXXFLAGS = -W -Wall -O -g -I. -I../ -std=c++17 | ||
|
||
EXTRA_OBJS = \ | ||
../AK/StringImpl.o \ | ||
../AK/String.o \ | ||
../AK/StringBuilder.o \ | ||
../AK/StringView.o \ | ||
../LibCore/CEventLoop.o \ | ||
../LibCore/CObject.o \ | ||
../LibCore/CEvent.o \ | ||
../LibCore/CIODevice.o \ | ||
../LibCore/CFile.o | ||
|
||
include Makefile.shared | ||
|
||
tho: $(OBJS) | ||
$(CXX) -o $@ $(LDFLAGS) $(OBJS) | ||
|
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,45 @@ | ||
LIBHTML_OBJS = \ | ||
DOM/Node.o \ | ||
DOM/ParentNode.o \ | ||
DOM/Element.o \ | ||
DOM/Document.o \ | ||
DOM/Text.o \ | ||
CSS/Selector.o \ | ||
CSS/StyleSheet.o \ | ||
CSS/StyleRule.o \ | ||
CSS/StyleDeclaration.o \ | ||
CSS/StyleValue.o \ | ||
CSS/DefaultStyleSheetSource.o \ | ||
Parser/HTMLParser.o \ | ||
Parser/CSSParser.o \ | ||
Layout/LayoutNode.o \ | ||
Layout/LayoutText.o \ | ||
Layout/LayoutBlock.o \ | ||
Layout/LayoutInline.o \ | ||
Layout/LayoutDocument.o \ | ||
Layout/LayoutStyle.o \ | ||
Frame.o \ | ||
Dump.o | ||
|
||
GENERATED_SOURCES = \ | ||
CSS/DefaultStyleSheetSource.cpp | ||
|
||
TEST_OBJS = test.o | ||
TEST_PROGRAM = tho | ||
|
||
OBJS = $(EXTRA_OBJS) $(LIBHTML_OBJS) $(TEST_OBJS) | ||
|
||
LIBRARY = libhtml.a | ||
DEFINES += -DUSERLAND | ||
|
||
CSS/DefaultStyleSheetSource.cpp: CSS/Default.css Scripts/GenerateStyleSheetSource.sh | ||
@echo "GENERATE $@"; Scripts/GenerateStyleSheetSource.sh default_stylesheet_source $< > $@ | ||
|
||
.cpp.o: | ||
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $< | ||
|
||
-include $(OBJS:%.o=%.d) | ||
|
||
clean: | ||
@echo "CLEAN"; rm -f $(TEST_PROGRAM) $(LIBRARY) $(OBJS) *.d $(GENERATED_SOURCES) | ||
|
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