2
0
mirror of https://github.com/koreader/koreader synced 2024-11-16 06:12:56 +00:00
Commit Graph

175 Commits

Author SHA1 Message Date
Tigran Aivazian
667d6b654f Don't use DroidSansFallbackFull.ttf fonts
Use DroidSansFallback.ttf rather than DroidSansFallbackFull.ttf because
that is what is used for rendering cjk glyphs by mupdf (see mupdf.patch).

Conflicts:
	font.lua
2012-12-13 01:39:35 +08:00
Tigran Aivazian
42a4c8042b Package defaults.lua and symlink libluajit-5.1.so
1. The file defaults.lua needs to be mentioned in LUA_FILES in order to
be packaged by "make customupdate".
2. The problem with the linker not finding libluajit-5.1.so.2 can be
fixed without specifying the shared library in the list of objects (and
static libraries), simply by making a symbolic link. No need to copy a
duplicate.

Conflicts:

	Makefile
2012-11-26 14:07:37 -05:00
HW
e129307c40 Fixed initialization/update of mupdf's submodules, build "release" version of build helpers 2012-11-26 14:05:29 -05:00
Qingping Hou
a123e5157f remove comments 2012-11-26 14:02:42 -05:00
HW
503fefe7ec moved luajit-2.0 and mupdf to latest version - now really
Conflicts:

	Makefile
2012-11-26 14:02:14 -05:00
HW
77866a4bd4 disabled patching of libjpeg, restructured everything for mupdf subrepos
Conflicts:

	Makefile
2012-11-26 13:59:40 -05:00
HW
e26ae14bed updated mupdf to latest version
Conflicts:

	Makefile
2012-11-26 13:57:37 -05:00
Tigran Aivazian
b3b3d04c98 Create history and clipboard dirs for the emulator 2012-11-26 13:39:53 -05:00
Tigran Aivazian
80fb6c21cc Use the font DroidSansFallbackFull.ttf
Conflicts:

	font.lua
2012-11-26 13:37:49 -05:00
Tigran Aivazian
f2f299cd09 Bugfix: link with the static libjpeg.a
We should explicitly link with the libjpeg.a from mupdf/thirdparty and not with the
shared libjpeg.so that may happen to be installed on the system.

Conflicts:

	Makefile
2012-11-26 13:21:57 -05:00
Qingping Hou
44a0bf33ac Merge branch 'new_ui_code' of github.com:hwhw/kindlepdfviewer into new_ui_code
Conflicts:
	Makefile
2012-11-26 13:16:33 -05:00
HW
f073c23296 Switched LuaJIT to shared library instead of static 2012-11-26 13:00:38 -05:00
chrox
edd18c4219 update k2pdfopt to version 1.62 2012-11-26 22:13:43 +08:00
chrox
4d14cd69b2 use -O3 option in compiling libk2pdfopt
Probably we should use fomit-frame-pointer explicitly even though
fomit-frame-pointer is included by default with -O2 and -O3 just like
the Linux kernel guys doing. I found append -O3 directly to `CFLAGES`
will do the trick. So I removed the KOPT_CFLAGS variable.
2012-11-26 22:08:29 +08:00
chrox
f10feb9b94 add -fno-finite-math-only in KOPT_CFLAGS
In some compilation platform if finite-math-only option is turned
on, math functions like exp and sqrt will be dynamically linked to
finite versions which cannot be located in Kindle's GLIBC. In my
toolchain the symbol __exp_finite cannot be found in GLIBC_2.4 so
gcc just use __exp_finite in GLIBC_2.15, which will cause a run time
error in Kindle saying "version GLIBC_2.15 not found"
2012-11-26 22:07:51 +08:00
chrox
ec03261dc6 -fomit-frame-pointer is enabled at level -O, -O2, -O3 2012-11-26 22:07:27 +08:00
chrox
7850aab2b0 add libk2pdfopt.so.1 in customupdate 2012-11-26 22:06:04 +08:00
chrox
5acf471ecb use -O3 option in k2pdfopt compilation
Koptreader will gain 20% performance boost.
2012-11-26 22:03:37 +08:00
chrox
44361faeee build libk2pdfopt as a shared library 2012-11-26 22:02:09 +08:00
chrox
a5b28ff6f2 include k2pdfopt header in pdf.c and djvu.c and koptcontext.h 2012-11-26 21:58:53 +08:00
chrox
8430850a39 move k2pdfopt source to a submodule libk2pdfopt
Currently libk2pdfopt is staticly linked to kpdfview.
2012-11-26 21:58:32 +08:00
chrox
f70ef06ea6 use koptcontext to keep dozons of parameters for k2pdfopt 2012-11-26 21:57:23 +08:00
Qingping Hou
ba60e641a9 add emu_event to clean target 2012-11-05 13:36:50 -05:00
Qingping Hou
0b08992591 update djvulibre target dependence for LIBDIR 2012-11-02 16:18:16 -04:00
Tigran Aivazian
6580291e3a Link against libraries in libs and libs-emu
Instead of linking against the location inside the original build tree
we should link against the copy in a single place. This makes the build
code cleaner and more compact even now and will do even more so when we
build more libraries as shared (which is what I am going to attempt
next).
2012-11-02 16:15:47 -04:00
Tigran Aivazian
87d0b94d9b Mkdir clipboard at build, not runtime
Conflicts:

	filechooser.lua
2012-11-02 16:07:08 -04:00
Tigran Aivazian
2bd8dd3389 build: mkdir libs if does not exist
Since we are doing this for emulator we might as well do this for normal
build too.
2012-11-01 09:28:59 -04:00
Qingping Hou
6f6cb3c1a9 build: create libs-emu dir if not found 2012-10-31 22:54:19 -04:00
Tigran Aivazian
d4642a5df1 Build djvulibre as a shared library 2012-10-31 22:39:58 -04:00
Tigran Aivazian
5c0201d3e3 Makefile: extr depends on MUPDFLIBS/THIRDPARTYLIBS 2012-10-31 22:29:31 -04:00
Tigran Aivazian
fc20c0af26 Support for extracting attachments from PDF file
This commit adds Alt-S command which invokes the external utility "extr"
passing it the full pathname of the open PDF file and the current page
number. The utility extracts all attachments on this page (if there are
any) and saves them in the same directory as the PDF file. The file
names given to attachments are decoded from within the PDF file itself,
i.e. they are the same as the original file names of the files embedded
in the PDF.

Conflicts:

	pdfreader.lua
2012-10-31 22:19:39 -04:00
Tigran Aivazian
7f4be723a0 LuaJIT: make distclean -> make clean
Two reasons for this change:

1. The latest LuaJIT has no "distclean" target
2. The "distclean" is MUCH slower
2012-10-31 21:43:52 -04:00
chrox
9e8a92862c add koptreader.lua file in customupdate
Conflicts:

	Makefile
2012-10-31 21:34:30 -04:00
chrox
441d061664 add DJVU reflow
Conflicts:

	djvu.c
	koptreader.lua
	reader.lua
2012-10-31 21:30:06 -04:00
chrox
f3f97b6223 add pdf page reflow
Conflicts:

	pdfreader.lua
2012-10-31 21:17:08 -04:00
Dobrica Pavlinusic
95f6ed5bd6 fix getCurrentPageLinks segfault on links without target 2012-10-31 21:11:16 -04:00
Tigran Aivazian
6c9a3c3dc5 Factor out JPEG support into a module
This is to make adding support for new formats easier.
See the file pic_jpeg.h for the description of the interface that each
image format must support.

Conflicts:

	Makefile
2012-10-31 20:54:24 -04:00
Tigran Aivazian
879c937762 Force the use of bash.
On some distributions (e.g. Ubuntu) the shell used for scripts is dash,
not bash and we explicitly rely on bash's features in the Makefile, so
we must guarantee that we are running with bash (not dash or anything
else).
2012-10-31 20:33:49 -04:00
Tigran Aivazian
cbfa0d5344 Generate git-rev file at compile time.
The file git-rev containing the program's version should be generated at
kpdfview compile time rather than package generation time.

Conflicts:

	Makefile
2012-10-09 14:41:00 -04:00
NiLuJe
d60504ef83 More comments on the whole unaligned access mess on FW 2.x. Don't even
think about setting the alignment trap to a mode that includes warn,
that simply kills the performance because of the storm of faults the
syslog gets...
2012-10-03 13:03:27 -04:00
NiLuJe
42e66cc605 Yep, -mno-unaligned-access is definitely needed with a GCC 4.7
ToolChain, the kernel used on FW 2.x is too old to handle unaligned
accesses properly.
2012-10-03 13:02:04 -04:00
NiLuJe
24b9678dc6 It's a spaaaaace! 2012-10-03 13:01:25 -04:00
NiLuJe
3e47fe8e01 Quote that to avoid potential issues... 2012-10-03 12:57:20 -04:00
NiLuJe
0790190af5 Slightly nicer fix for building mupdf's .host stuff with CFLAGS in the env. 2012-10-03 12:55:26 -04:00
NiLuJe
c68ac9c8c8 Add a note about -mno-unaligned-access (check my x-compile.sh script for
more details, I'll revisit this once Linaro 2012.10 comes out).
2012-10-03 12:54:58 -04:00
NiLuJe
d55138113f Split the backward compat stuff between CFLAGS/CXXFLAGS 2012-10-03 12:54:34 -04:00
NiLuJe
c35b5d2d56 Don't use the backward compat flags on the host. Move to a dedicated
variable, with a few comments to explain ;).
2012-10-03 12:53:19 -04:00
NiLuJe
9520c9b662 Add -fno-finite-math-only (after -ffast-math) to the ARM flags to avoid
MG 2012.03 pulling GLIBC_2.15 symbols from libm (because -ffast-math asks
for it).
I didn't see this on my own TC because it's using a much older glibc version (2.9).
2012-10-03 12:53:09 -04:00
NiLuJe
b0f7ea5d81 revert the whole 'let's use ld' thing. It's useless, and might wreak
havoc on EMU builds picking up system libs instead of the bundled ones.
2012-10-03 12:52:39 -04:00
NiLuJe
9169ac7541 Make sure we're always building luajit statically, so ld doesn't pick a
shared version. Of course that explained the size difference :D.
2012-10-03 12:52:18 -04:00