2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Commit Graph

182 Commits

Author SHA1 Message Date
Tigran Aivazian
8fd76e243f Create history and clipboard dirs for the emulator 2012-11-18 21:03:42 +00:00
Tigran Aivazian
e7c264c576 Use the font DroidSansFallbackFull.ttf 2012-11-18 19:12:57 +00:00
chrox
31e4f6ba89 update k2pdfopt to version 1.62 2012-11-17 21:12:45 +08:00
Tigran Aivazian
d2cde652b7 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.
2012-11-11 21:44:16 +00:00
chrox
0f8b56b795 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-10 19:13:03 +08:00
chrox
68a0f34a19 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-10 17:27:29 +08:00
chrox
0a427cc02f -fomit-frame-pointer is enabled at level -O, -O2, -O3 2012-11-10 09:06:22 +08:00
chrox
7a75742bab add libk2pdfopt.so.1 in customupdate 2012-11-10 01:58:51 +08:00
chrox
4248194e14 use -O3 option in k2pdfopt compilation
Koptreader will gain 20% performance boost.
2012-11-10 01:36:39 +08:00
chrox
d0878f00a9 build libk2pdfopt as a shared library 2012-11-09 23:25:01 +08:00
chrox
e9217caa9c include k2pdfopt header in pdf.c and djvu.c and koptcontext.h 2012-11-07 20:29:51 +08:00
chrox
0d5249e75c move k2pdfopt source to a submodule libk2pdfopt
Currently libk2pdfopt is staticly linked to kpdfview.
2012-11-07 19:03:32 +08:00
Tigran Aivazian
8c43d8226f Merge pull request #544 from chrox/koptcontext
update K2pdfopt to the latest version 1.60
2012-11-05 10:45:50 -08:00
Tigran Aivazian
47fd12f3d2 Merge branch 'master' into battery-log
Conflicts:
	Makefile
2012-11-05 16:09:01 +00:00
chrox
65bd523d4c use koptcontext to keep dozons of parameters for k2pdfopt 2012-11-05 23:56:56 +08:00
Tigran Aivazian
69d58ae6f5 Add battery level logging. 2012-11-05 11:38:33 +00:00
Tigran Aivazian
1ca3bf3592 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.
2012-11-05 09:30:40 +00:00
HW
618c218969 Fixed initialization/update of mupdf's submodules, build "release" version of build helpers 2012-11-04 12:45:24 +01:00
HW
ec26c4cec1 work around luajit library name confusion 2012-11-04 00:21:17 +01:00
HW
a04823528b moved luajit-2.0 and mupdf to latest version - now really 2012-11-04 00:15:43 +01:00
HW
5c1090866f disabled patching of libjpeg, restructured everything for mupdf subrepos 2012-11-03 23:49:18 +01:00
HW
5e51dd9f86 updated mupdf to latest version 2012-11-03 17:15:12 +01:00
HW
eb7e15cfb2 Switched LuaJIT to shared library instead of static 2012-11-03 16:08:13 +01:00
Qingping Hou
fddcc51b72 update djvulibre target dependence for LIBDIR 2012-11-02 16:19:31 -04:00
Dobrica Pavlinušić
5d34c16493 Merge pull request #524 from tigran123/libdir
Link against libraries in libs and libs-emu
2012-11-02 07:20:40 -07:00
Tigran Aivazian
4b5f3c7d4d 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 10:00:15 +00:00
Tigran Aivazian
60af1862ba Mkdir clipboard at build, not runtime 2012-11-02 09:37:13 +00:00
Tigran Aivazian
a907643279 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 12:57:15 +00:00
Qingping Hou
e6d459970a build: create libs-emu dir if not found 2012-10-31 22:57:35 -04:00
Tigran Aivazian
06f32ee5dd Build djvulibre as a shared library 2012-10-31 14:34:17 +00:00
Dobrica Pavlinušić
ac218923d3 Merge pull request #493 from chrox/kopt-config
add config dialog for koptreader
2012-10-25 14:45:35 -07:00
chrox
c240f88b8d add koptconfig.lua in Makefile 2012-10-26 00:41:37 +08:00
Tigran Aivazian
84571c315c Makefile: extr depends on MUPDFLIBS/THIRDPARTYLIBS 2012-10-25 10:53:12 +01:00
Tigran Aivazian
ff96c601f1 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.
2012-10-24 11:24:05 +01:00
chrox
e42403bb85 add readerchooser to prompt users to select alternative readers 2012-10-22 22:04:09 +08:00
Tigran Aivazian
73057bb8bc Remove alt_getopt.lua module altogether. 2012-10-21 12:15:56 +01:00
Tigran Aivazian
08e9240f10 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-20 10:10:39 +01:00
chrox
6b79310bb1 add koptreader.lua file in customupdate 2012-10-19 01:47:41 +08:00
chrox
f7e4a548c7 add DJVU reflow 2012-10-19 01:20:48 +08:00
chrox
d2dcbff4bb add pdf page reflow 2012-10-16 10:02:38 +08:00
Dobrica Pavlinusic
534b8dc114 fix getCurrentPageLinks segfault on links without target 2012-10-13 20:50:17 +02:00
Tigran Aivazian
a1f9068d5b 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.
2012-10-12 09:36:08 +01:00
Tigran Aivazian
8ab0e7fcb8 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-10 21:04:47 +01:00
Tigran Aivazian
55532b0cd6 Add picviewer.lua to LUA_FILES
We need to do this in order for picviewer.lua to be included when doing
"make customupdate".
2012-10-09 09:26:58 +01:00
Tigran Aivazian
b2b9f425dd Decode the JPEG's dimensions. 2012-10-08 18:54:44 +01:00
Tigran Aivazian
30de5e0a23 Initial commit of picviewer. 2012-10-08 16:39:03 +01:00
Tigran Aivazian
e9913dce40 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.
2012-10-07 15:05:00 +01:00
NiLuJe
fab4b29502 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 16:07:03 +02:00
NiLuJe
9cc3438fd2 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 15:57:52 +02:00
NiLuJe
1f2b85e0de It's a spaaaaace! 2012-10-03 15:43:25 +02:00