feat: ports - netsurf with the monkey frontend
Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_018Ae69wJS7sueQMUwNxV3nX
This commit is contained in:
@@ -32,6 +32,10 @@ PORT_PC_VERSION := 0.4.2
|
||||
PORT_HEADER_ROOT := $(UPSTREAM)/include
|
||||
PORT_HEADERS := $(shell find $(UPSTREAM)/include -name '*.h' 2>/dev/null)
|
||||
|
||||
# libdom.pc.in already names -ldom itself, so its LIBRARIES placeholder is for
|
||||
# the dependencies the enabled bindings pull in -- here, the hubbub binding.
|
||||
PORT_PC_LIBS := -lhubbub -lparserutils -lwapcaplet
|
||||
|
||||
include ../../mk/port.mk
|
||||
|
||||
NS_MAKE_ARGS_EXTRA := \
|
||||
@@ -39,6 +43,20 @@ NS_MAKE_ARGS_EXTRA := \
|
||||
WITH_EXPAT_BINDING=no \
|
||||
WITH_LIBXML_BINDING=no
|
||||
|
||||
# The hubbub binding's public headers live under bindings/, not include/, and
|
||||
# upstream installs them to include/dom/bindings/hubbub/ (see
|
||||
# bindings/hubbub/Makefile). PORT_HEADERS only walks include/, so stage these
|
||||
# explicitly -- NetSurf's content/handlers/html includes dom/bindings/hubbub/parser.h.
|
||||
BINDING_HDRS := \
|
||||
$(PORT_SYSROOT_INC)/dom/bindings/hubbub/parser.h \
|
||||
$(PORT_SYSROOT_INC)/dom/bindings/hubbub/errors.h
|
||||
|
||||
$(PORT_SYSROOT_INC)/dom/bindings/hubbub/%.h: $(UPSTREAM)/bindings/hubbub/%.h
|
||||
@mkdir -p $(dir $@)
|
||||
cp $< $@
|
||||
|
||||
install-lib: $(BINDING_HDRS)
|
||||
|
||||
.PHONY: all clean
|
||||
all: install-lib
|
||||
|
||||
|
||||
Reference in New Issue
Block a user