mirror of
https://github.com/simon987/libscan.git
synced 2025-04-05 12:23:00 +00:00
bugfix, mupdf build command tweak
This commit is contained in:
parent
0b683bf760
commit
842681a0a9
@ -41,6 +41,7 @@ find_package(ZLIB REQUIRED)
|
||||
|
||||
include(ExternalProject)
|
||||
find_program(MAKE_EXE NAMES gmake nmake make)
|
||||
set(MUPDF_CFLAGS "-fPIC -DFZ_ENABLE_JS=0 -DFZ_ENABLE_ICC=0")
|
||||
ExternalProject_Add(
|
||||
mupdf
|
||||
# TODO: use master branch ?
|
||||
@ -55,8 +56,7 @@ ExternalProject_Add(
|
||||
PREFIX "third-party/ext_mupdf"
|
||||
BINARY_DIR "third-party/ext_mupdf/src/mupdf"
|
||||
|
||||
BUILD_COMMAND CFLAGS=-fPIC HAVE_CURL=no HAVE_GLUT=no ${MAKE_EXE} -j 4 --silent
|
||||
&& ar d build/release/libmupdf-third.a jutils.o jdinput.o jdmarker.o jdmaster.o
|
||||
BUILD_COMMAND export CFLAGS=${MUPDF_CFLAGS} && HAVE_CURL=no HAVE_GLUT=no USE_SYSTEM_LIBJPEG=yes ${MAKE_EXE} -j 3 --silent
|
||||
)
|
||||
SET(MUPDF_LIB_DIR ${CMAKE_CURRENT_BINARY_DIR}/third-party/ext_mupdf/src/mupdf/build/release/)
|
||||
SET(MUPDF_INC_DIR ${CMAKE_CURRENT_BINARY_DIR}/third-party/ext_mupdf/src/mupdf/include/)
|
||||
|
@ -2,7 +2,6 @@
|
||||
#include "../scan.h"
|
||||
#include "../util.h"
|
||||
#include "../arc/arc.h"
|
||||
#include "../ebook/ebook.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <archive.h>
|
||||
|
@ -2,7 +2,7 @@
|
||||
#define SCAN_CBR_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "../scan.h"
|
||||
#include "../ebook/ebook.h"
|
||||
|
||||
typedef struct {
|
||||
scan_ebook_ctx_t ebook_ctx;
|
||||
|
@ -144,17 +144,12 @@ typedef struct parse_job_t {
|
||||
doc->meta_tail->next = meta;\
|
||||
doc->meta_tail = meta;\
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "arc/arc.h"
|
||||
#include "cbr/cbr.h"
|
||||
#include "ebook/ebook.h"
|
||||
#include "font/font.h"
|
||||
#include "media/media.h"
|
||||
#include "ooxml/ooxml.h"
|
||||
#include "text/text.h"
|
||||
#include "util.h"
|
||||
|
||||
typedef void (*store_callback_t)(char *key, size_t key_len, char *buf, size_t buf_len);
|
||||
typedef void (*logf_callback_t)(char *filepath, int level, char *format, ...);
|
||||
typedef void (*log_callback_t)(char *filepath, int level, char *str);
|
||||
typedef void (*parse_callback_t)(parse_job_t *job);
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user