diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-03-29 22:25:09 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-04-24 16:47:43 +0200 |
commit | 51b8205a513e86c62121a927a067632c1a933839 (patch) | |
tree | c2882a6c253a715bfc2ea72854c75350f0b2024b /Makefile | |
parent | 67a7449fc1f186f318942b9c6b8d66d4458b7d87 (diff) | |
download | mupdf-51b8205a513e86c62121a927a067632c1a933839.tar.xz |
Remove need for namedump by using macros and preprocessor.
Add a PDF_NAME(Foo) macro that evaluates to a pdf_obj for /Foo.
Use the C preprocessor to create the enum values and string table
from one include file instead of using a separate code generator tool.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 2 insertions, 19 deletions
@@ -147,7 +147,7 @@ PKCS7_SRC += $(wildcard source/helpers/pkcs7/pkcs7-openssl.c) endif FITZ_SRC_HDR := $(wildcard source/fitz/*.h) -PDF_SRC_HDR := $(wildcard source/pdf/*.h) source/pdf/pdf-name-table.h +PDF_SRC_HDR := $(wildcard source/pdf/*.h) XPS_SRC_HDR := $(wildcard source/xps/*.h) SVG_SRC_HDR := $(wildcard source/svg/*.h) HTML_SRC_HDR := $(wildcard source/html/*.h) @@ -177,23 +177,6 @@ $(THREAD_OBJ) : $(THREAD_HDR) $(PKCS7_OBJ) : $(FITZ_HDR) $(PDF_HDR) $(PKCS7_HDR) $(SIGNATURE_OBJ) : $(PKCS7_HDR) -# --- Generated PDF name tables --- - -NAMEDUMP_EXE := $(OUT)/scripts/namedump.exe - -include/mupdf/pdf.h : include/mupdf/pdf/name-table.h -NAME_GEN := include/mupdf/pdf/name-table.h source/pdf/pdf-name-table.h -$(NAME_GEN) : resources/pdf/names.txt - $(QUIET_GEN) $(NAMEDUMP_EXE) resources/pdf/names.txt $(NAME_GEN) - -ifneq "$(CROSSCOMPILE)" "yes" -$(NAME_GEN) : $(NAMEDUMP_EXE) -endif - -$(OUT)/source/pdf/pdf-object.o : source/pdf/pdf-name-table.h - -generate: $(NAME_GEN) - # --- Generated embedded font files --- HEXDUMP_EXE := $(OUT)/scripts/hexdump.exe @@ -522,7 +505,7 @@ all: libs apps clean: rm -rf $(OUT) nuke: - rm -rf build/* generated $(NAME_GEN) + rm -rf build/* generated release: $(MAKE) build=release |