diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-04-12 16:24:34 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-04-13 14:13:31 +0200 |
commit | 48be72fb64202cb52d5ebe3a4c931aa925276b6d (patch) | |
tree | 798dada1ad918874ec264270f20a71e895087887 /scripts | |
parent | c3400385a878c71ab9e60b7cfb88b437234ac353 (diff) | |
download | mupdf-48be72fb64202cb52d5ebe3a4c931aa925276b6d.tar.xz |
Change generated files to be C instead of headers.
Remove AdobeCA.p7c from autogenerated files. Just include the
array in the source.
Simplifies makefile dependencies and makes the sizes of each
bit of data easier to look at.
It also paves the way for eventually using objcopy to create binary
objects for the fonts instead of needing to use hexdump.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/cmapdump.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/cmapdump.c b/scripts/cmapdump.c index 4da2e329..eb84cb4c 100644 --- a/scripts/cmapdump.c +++ b/scripts/cmapdump.c @@ -75,7 +75,8 @@ main(int argc, char **argv) return 1; } - fprintf(fo, "/* This is an automatically generated file. Do not edit. */\n"); + fprintf(fo, "/* This is an automatically generated file. Do not edit. */\n\n"); + fprintf(fo, "#include \"mupdf/pdf.h\"\n"); for (i = 2; i < argc; i++) { @@ -148,7 +149,7 @@ main(int argc, char **argv) fprintf(fo, "\n};\n\n"); } - fprintf(fo, "static pdf_cmap cmap_%s = {\n", name); + fprintf(fo, "pdf_cmap pdf_cmap_%s = {\n", name); fprintf(fo, "\t{-1, pdf_drop_cmap_imp}, "); fprintf(fo, "\"%s\", ", cmap->cmap_name); fprintf(fo, "\"%s\", 0, ", cmap->usecmap_name); |