HGGitLab

Commit 00139f32 authored by luoliangyi's avatar luoliangyi

解决mupdf库自动导出第三方函数符号的问题

parent 2d48ae80
......@@ -53,13 +53,7 @@
<Add option="-L../../../../third_party/libzip/uos/amd64/lib -lzip" />
<Add option="-L../../../../third_party/tinyxml2/uos/amd64/lib -ltinyxml2" />
<Add option="-L../../../../third_party/zlib/uos/amd64/lib -lz" />
<Add option="-Wl,--exclude-libs=libjpeg.a" />
<Add option="-Wl,--exclude-libs=libnsbmp.a" />
<Add option="-Wl,--exclude-libs=libpng16.a" />
<Add option="-Wl,--exclude-libs=libtiff.a" />
<Add option="-Wl,--exclude-libs=libzip.a" />
<Add option="-Wl,--exclude-libs=libtinyxml2.a" />
<Add option="-Wl,--exclude-libs=libz.a" />
<Add option="-Wl,--exclude-libs,ALL" />
</Linker>
<Unit filename="../../../../imgfmt/HGBmp.cpp" />
<Unit filename="../../../../imgfmt/HGBmp.h" />
......
......@@ -32,7 +32,7 @@
<Add option="-Wall" />
</Compiler>
<Linker>
<Add option="-L../../../../release/bin/uos/amd64/ -lHGBase -lHGImgFmt -lpdf -lmupdf" />
<Add option="-L../../../../release/bin/uos/amd64/ -lHGBase -lHGImgFmt -lmupdf -lpdf" />
</Linker>
<Unit filename="main.cpp" />
<Extensions>
......
No preview for this file type
......@@ -239,7 +239,7 @@ int fz_is_valid_blend_colorspace(fz_context *ctx, fz_colorspace *cs);
unless they are kept first.
*/
fz_colorspace *fz_device_gray(fz_context *ctx);
fz_colorspace *fz_device_rgb(fz_context *ctx);
__attribute__ ((visibility ("default"))) fz_colorspace *fz_device_rgb(fz_context *ctx);
fz_colorspace *fz_device_bgr(fz_context *ctx);
fz_colorspace *fz_device_cmyk(fz_context *ctx);
fz_colorspace *fz_device_lab(fz_context *ctx);
......
......@@ -190,7 +190,7 @@ fz_context *fz_clone_context(fz_context *ctx);
buffered warnings are flushed (see fz_flush_warnings). If NULL
is passed in nothing will happen.
*/
void fz_drop_context(fz_context *ctx);
__attribute__ ((visibility ("default"))) void fz_drop_context(fz_context *ctx);
/**
Set the user field in the context.
......@@ -508,10 +508,10 @@ void fz_memrnd(fz_context *ctx, uint8_t *block, int len);
/* Implementations exposed for speed, but considered private. */
void fz_var_imp(void *);
fz_jmp_buf *fz_push_try(fz_context *ctx);
int fz_do_try(fz_context *ctx);
__attribute__ ((visibility ("default"))) fz_jmp_buf *fz_push_try(fz_context *ctx);
__attribute__ ((visibility ("default"))) int fz_do_try(fz_context *ctx);
int fz_do_always(fz_context *ctx);
int fz_do_catch(fz_context *ctx);
__attribute__ ((visibility ("default"))) int fz_do_catch(fz_context *ctx);
typedef struct
{
......@@ -574,7 +574,7 @@ struct fz_context
fz_glyph_cache *glyph_cache;
};
fz_context *fz_new_context_imp(const fz_alloc_context *alloc, const fz_locks_context *locks, size_t max_store, const char *version);
__attribute__ ((visibility ("default"))) fz_context *fz_new_context_imp(const fz_alloc_context *alloc, const fz_locks_context *locks, size_t max_store, const char *version);
/**
Lock one of the user supplied mutexes.
......
......@@ -321,7 +321,7 @@ void fz_register_document_handler(fz_context *ctx, const fz_document_handler *ha
for all the standard document types supported in
this build.
*/
void fz_register_document_handlers(fz_context *ctx);
__attribute__ ((visibility ("default"))) void fz_register_document_handlers(fz_context *ctx);
/**
Given a magic find a document handler that can handle a
......@@ -342,7 +342,7 @@ const fz_document_handler *fz_recognize_document(fz_context *ctx, const char *ma
filename: a path to a file as it would be given to open(2).
*/
fz_document *fz_open_document(fz_context *ctx, const char *filename);
__attribute__ ((visibility ("default"))) fz_document *fz_open_document(fz_context *ctx, const char *filename);
/**
Open a document file and read its basic structure so pages and
......@@ -416,7 +416,7 @@ fz_document *fz_keep_document(fz_context *ctx, fz_document *doc);
Never throws exceptions.
*/
void fz_drop_document(fz_context *ctx, fz_document *doc);
__attribute__ ((visibility ("default"))) void fz_drop_document(fz_context *ctx, fz_document *doc);
/**
Check if a document is encrypted with a
......@@ -481,7 +481,7 @@ fz_location fz_lookup_bookmark(fz_context *ctx, fz_document *doc, fz_bookmark ma
May return 0 for documents with no pages.
*/
int fz_count_pages(fz_context *ctx, fz_document *doc);
__attribute__ ((visibility ("default"))) int fz_count_pages(fz_context *ctx, fz_document *doc);
/**
Resolve an internal link to a page number.
......@@ -538,7 +538,7 @@ int fz_page_number_from_location(fz_context *ctx, fz_document *doc, fz_location
efficient than loading by location (chapter+page) for some
document types.
*/
fz_page *fz_load_page(fz_context *ctx, fz_document *doc, int number);
__attribute__ ((visibility ("default"))) fz_page *fz_load_page(fz_context *ctx, fz_document *doc, int number);
/**
Return the number of chapters in the document.
......@@ -657,7 +657,7 @@ fz_page *fz_keep_page(fz_context *ctx, fz_page *page);
Never throws exceptions.
*/
void fz_drop_page(fz_context *ctx, fz_page *page);
__attribute__ ((visibility ("default"))) void fz_drop_page(fz_context *ctx, fz_page *page);
/**
Get the presentation details for a given page.
......
......@@ -314,7 +314,7 @@ fz_matrix fz_concat(fz_matrix left, fz_matrix right);
Returns m.
*/
fz_matrix fz_scale(float sx, float sy);
__attribute__ ((visibility ("default"))) fz_matrix fz_scale(float sx, float sy);
/**
Scale a matrix by premultiplication.
......
......@@ -26,12 +26,12 @@ fz_irect fz_pixmap_bbox(fz_context *ctx, const fz_pixmap *pix);
/**
Return the width of the pixmap in pixels.
*/
int fz_pixmap_width(fz_context *ctx, const fz_pixmap *pix);
__attribute__ ((visibility ("default"))) int fz_pixmap_width(fz_context *ctx, const fz_pixmap *pix);
/**
Return the height of the pixmap in pixels.
*/
int fz_pixmap_height(fz_context *ctx, const fz_pixmap *pix);
__attribute__ ((visibility ("default"))) int fz_pixmap_height(fz_context *ctx, const fz_pixmap *pix);
/**
Return the x value of the pixmap in pixels.
......@@ -169,7 +169,7 @@ fz_pixmap *fz_keep_pixmap(fz_context *ctx, fz_pixmap *pix);
Never throws exceptions.
*/
void fz_drop_pixmap(fz_context *ctx, fz_pixmap *pix);
__attribute__ ((visibility ("default"))) void fz_drop_pixmap(fz_context *ctx, fz_pixmap *pix);
/**
Return the colorspace of a pixmap
......
......@@ -31,7 +31,7 @@ fz_display_list *fz_new_display_list_from_page_contents(fz_context *ctx, fz_page
*/
fz_pixmap *fz_new_pixmap_from_display_list(fz_context *ctx, fz_display_list *list, fz_matrix ctm, fz_colorspace *cs, int alpha);
fz_pixmap *fz_new_pixmap_from_page(fz_context *ctx, fz_page *page, fz_matrix ctm, fz_colorspace *cs, int alpha);
fz_pixmap *fz_new_pixmap_from_page_number(fz_context *ctx, fz_document *doc, int number, fz_matrix ctm, fz_colorspace *cs, int alpha);
__attribute__ ((visibility ("default"))) fz_pixmap *fz_new_pixmap_from_page_number(fz_context *ctx, fz_document *doc, int number, fz_matrix ctm, fz_colorspace *cs, int alpha);
/**
Render the page contents without annotations.
......
......@@ -95,7 +95,7 @@ pdf_document *pdf_specifics(fz_context *ctx, fz_document *doc);
Returns NULL if the objects are not from a PDF document.
*/
pdf_document *pdf_document_from_fz_document(fz_context *ctx, fz_document *ptr);
pdf_page *pdf_page_from_fz_page(fz_context *ctx, fz_page *ptr);
__attribute__ ((visibility ("default"))) pdf_page *pdf_page_from_fz_page(fz_context *ctx, fz_page *ptr);
int pdf_needs_password(fz_context *ctx, pdf_document *doc);
......
......@@ -64,7 +64,7 @@ fz_link *pdf_load_links(fz_context *ctx, pdf_page *page);
exists (visible area after cropping), otherwise the media box will
be used (possibly including printing marks).
*/
fz_rect pdf_bound_page(fz_context *ctx, pdf_page *page);
__attribute__ ((visibility ("default"))) fz_rect pdf_bound_page(fz_context *ctx, pdf_page *page);
/*
Interpret a loaded page and render it on a device.
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment