1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Description: Fix imports and shared libs for non-Linux platforms
--- a/setup.py
+++ b/setup.py
@@ -53,13 +53,13 @@ else:
"fitz._fitz",
["fitz/fitz.i"],
include_dirs=[ # we need the path of the MuPDF's headers
+ "/usr/include/mupdf",
"./mupdf/include",
"./mupdf/include/mupdf",
],
libraries=[ # these are needed in Windows
- "libmupdf",
- "libresources",
- "libthirdparty",
+ "mupdf",
+ "mujs", "harfbuzz", "jbig2dec", "jpeg", "freetype", "png16", "openjp2",
],
extra_link_args=["/NODEFAULTLIB:MSVCRT"],
# x86 dir of libmupdf.lib etc.
|