mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00

This is a simple command that can be used to display HTML from a given file, or from the standard input, in an HtmlView. It replaces the `tho` (test HTML output) command.
44 lines
1 KiB
Text
44 lines
1 KiB
Text
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/StyleProperties.o \
|
|
CSS/StyleResolver.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/ComputedStyle.o \
|
|
HtmlView.o \
|
|
Dump.o
|
|
|
|
GENERATED_SOURCES = \
|
|
CSS/DefaultStyleSheetSource.cpp
|
|
|
|
OBJS = $(EXTRA_OBJS) $(LIBHTML_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 $(LIBRARY) $(OBJS) *.d $(GENERATED_SOURCES)
|
|
|