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

1166 Commits

Author SHA1 Message Date
Qingping Hou
9a1e581f7a add popennslib to cleanthirdparty 2012-10-02 21:14:21 -04:00
NiLuJe
30c3497654 Slight syntax tweak 2012-10-02 21:05:05 -04:00
NiLuJe
6041e5c0eb Forgot to revert that too, useless now :). 2012-10-02 21:04:55 -04:00
NiLuJe
4c5341fb30 Hello, tiny stupid typo! 2012-10-02 21:04:45 -04:00
NiLuJe
9f5cd9d021 Actually, no that's wrong, it's not the parent process, it's a fork. 2012-10-02 21:04:24 -04:00
NiLuJe
2572dd0657 Kill a bit of cruft, explain the reasonning behind the kill/traps, and
fix a potential buffering issue eating the first slider event
2012-10-02 21:04:15 -04:00
NuPogodi
0eaf2671fd New InfoMessage Concept
Part I (still no unireader, crereader, filesearcher & fileinfo)

Conflicts:

	commands.lua
	dialog.lua
	filechooser.lua
	filehistory.lua
	font.lua
	inputbox.lua
	reader.lua
	resources/info-i.png
	screen.lua
	selectmenu.lua
2012-10-02 21:03:56 -04:00
NiLuJe
4310b68b3b Don't checkout popen_noshell twice (it reverts parts of our patch) 2012-10-02 20:57:06 -04:00
NiLuJe
84e107313c Don't patch popen-noshell twice 2012-10-02 20:56:58 -04:00
NiLuJe
8250d77390 Properly fix the luajit *FLAGS mess 2012-10-02 20:56:46 -04:00
NiLuJe
3672d79fef Restore Makefiles tweaks 2012-10-02 20:56:37 -04:00
NiLuJe
0a14cf7eac Ignore untracked popen_noshell stuff 2012-10-02 20:54:50 -04:00
NiLuJe
10c9b3a58c Fetch popen_noshell during fetchthirdparty, don't bundle it in our repo 2012-10-02 20:53:42 -04:00
NiLuJe
18ed67ba2c Fix a stupid typo 2012-10-02 20:52:59 -04:00
NiLuJe
ead342926c Use popen_noshell as a static lib instead of an object file. Use CHOST
instead of HOST (and allow it to be set from the env), use $(MAKE)
instead of make to allow using the jobserver properly, and remove the
dash from commands where we do care about the return code (or inhibit
errors the usual way: rm -f instead of -rm)

Conflicts:

	Makefile
2012-10-02 20:52:49 -04:00
NiLuJe
cb03b33052 Add a small makefile to build popen_noshell as a static lib 2012-10-02 20:49:19 -04:00
NiLuJe
ee7122d6c4 Revert Makefile changes potentially unsuitable for upstream 2012-10-02 20:49:12 -04:00
NiLuJe
7ce8ff58f8 Update the standalone testcase, too. 2012-10-02 20:49:04 -04:00
NiLuJe
1d29b53b84 Kill debug printf 2012-10-02 20:48:57 -04:00
NiLuJe
26e10c6069 Fix input device closing, and fix lipc-wait-event handling (using
popen-noshell from http://code.google.com/p/popen-noshell/)

Conflicts:

	input.c
2012-10-02 20:48:43 -04:00
NiLuJe
acae9e618b Makefile tweaks for my TC 2012-10-02 20:43:48 -04:00
Dobrica Pavlinusic
c6ead8690e use git describe to generate version
Last release had git annotate tag (added with git -a) so this is
now much better alternative to just git sha1
2012-10-02 20:18:21 -04:00
Tigran Aivazian
47e5065d6a Be minimalistic wrt LDFLAGS
Passing CFLAGS and LDFLAGS to kpdfview link stage has no effect in our
particular case, so I ripped it out, leaving it only for the crengine.
2012-10-02 20:18:21 -04:00
Tigran Aivazian
d5fb6c846f Enable LTO for kpdfview and crengine
Enaling link time optimizations for kpdfview binary and crengine library
causes another slight performance increase --- almost negligible (1-2ms
per page) but still noticeable by precise measurements.
2012-10-02 20:18:21 -04:00
Tigran Aivazian
15baa52889 ARM-specific optimizations
Thanks to NiLuJe who pointed out that our generic -march=armv6 can be
replaced (for K2/K3/DX/DXG) with a more specific optimization:
-march=armv6j -mtune=arm1136jf-s -mfpu=vfp. This I have now done and
also passed ARM_CFLAGS value to CXXFLAGS which is then passed to
crengine build. Tested, works fine. The performance improvement is
negligible (a few ms per page, but seems to be consistently better, i.e.
not just plus/minus fluctuations).
2012-10-02 20:18:21 -04:00
Tigran Aivazian
5dc488e8c8 Build mupdf in release mode, not debug.
Thanks to NiLuJe who pointed out that we are building mupdf in debug
mode. Switching to "release" build reduced the size of the kpdfview
binary and did not cause any performance degradation (but no noticeable
improvement either --- the page handling times seem to be exactly the
same, i.e. fluctuating a couple of ms in both directions).
2012-10-02 20:18:21 -04:00
Tigran Aivazian
b7a763cefe Comment out debug printf() in pdf.c
The printf() about the number of links on a page is very useful, but
only for debugging. As other instances of debugging printf() in djvu.c
and pdf.c are commented out, it seemed consistent to do the same with
this one.
2012-09-30 03:42:31 +08:00
Tigran Aivazian
69d293a6cc Get rid of the compilation warning. 2012-09-30 03:40:40 +08:00
Dobrica Pavlinusic
0230ccfb59 add LF to end of debug message 2012-09-30 03:38:50 +08:00
Dobrica Pavlinusic
05e0647b9c getPageLinks implementation for mupdf #72
This is rough first draft, and provides just dump of all links
available on pdf page. Binding to Shift+L is temporary and just for
debugging!

Conflicts:
	pdfreader.lua
	unireader.lua
2012-09-30 03:37:37 +08:00
Dobrica Pavlinusic
db7e3770ad fix indenting to tabs 2012-09-30 03:36:58 +08:00
Tigran Aivazian
2ac7c7d4cf Optimize compilation of cre.cpp
1. Remove unused "-lsdtc++" from the compilation stage as no linking is
done then.
2. Add our standard CFLAGS to the compilation of cre.cpp which brings in
-O3 -march=armv6 which enables optimizations.
It seemed strange that we compile a cpp file with gcc (as opposed to
g++), but I left it as is for now.
2012-09-30 03:30:48 +08:00
Tigran Aivazian
c5565146f9 Typo: --disable-largefiles -> --disable-largefile
As a result of a simple typo we were continuing to include LFS
support unnecessarily...
2012-09-30 03:30:00 +08:00
Qingping Hou
8014773804 update gitignore 2012-09-29 01:10:19 +08:00
Dobrica Pavlinušić
fe7292f55c Merge pull request #330 from houqp/new_ui_code
merge latest patches from master
2012-09-27 00:42:29 -07:00
Dobrica Pavlinusic
66efe66f61 invertRect should handle negative x or y values
two-column mode combined with showing links in pdf files triggers this bug
2012-09-27 12:42:26 +08:00
Dobrica Pavlinusic
49112513a4 version: cr3.0.57-15
This might help fix #316 since upstream has cache changes
2012-09-26 09:43:31 +08:00
Tigran Aivazian
7894b15511 Tidy up debug support.
1. Make "-d" switch passed to reader.lua enable all debugging
2. Enable debugging for now (development stage) to preserve the current
behaviour. But for the production release I advise to: a) disable it by
not passing "-d" and b) redirect standard output (not just standard
error) of reader.lua to crash.log in kpdf.sh
3. Comment out debug printf()s in pdf.c

Conflicts:

	reader.lua
2012-09-25 11:01:10 -04:00
Tigran Aivazian
35701e6ec0 Create static directories at build, not runtime.
Instead of calling lfs.mkdir() to create "./history" and "./screenshots"
at runtime it is easier to create them at package build time.
I hesitated whether to add "./clipboard" to this list but decided
against it as we can perhaps change current directory and then
all the code manipulating clipboard would break, so I left it as is.

Conflicts:

	filechooser.lua
	screen.lua
	settings.lua
2012-09-25 10:48:50 -04:00
Tigran Aivazian
cae259e0cb Cleanup of djvu.c
1. Use the proper <string.h> header.
2. Typo fixes and whitespace changes.
3. Comment out debug printf() about cache size.
4. Remove obsolete comment(s).

Conflicts:

	djvu.c
2012-09-25 10:38:52 -04:00
Tigran Aivazian
50a76c09a0 Optimize building djvulibre.
1. Don't build xmltools in the emulator
2. Remove duplicate --disable-desktopfiles
3. Don't build LFS support. The largest DjVu file I have ever published
was a highres facsimile edition of the London Walton Polyglot (1657)
which was a "mere" 1GB in size and I don't think anyone produced
anything bigger. Besides, storing DjVu files >2GB in size (even if
they existed, which I doubt) on a Kindle with only 3GB total storage
space is _exceedingly_ unlikely.
2012-09-25 10:33:45 -04:00
Dobrica Pavlinusic
cf5dca718b include git rev in distribution zip 2012-09-25 00:00:45 +08:00
Tigran Aivazian
34d5205894 Disk free space reporting:
1. Enhance FileInfo:FileSize() to handle gigabytes and rename it to FileInfo:FormatSize() as it is not just for file sizes.
2. Add "Free space" field to file info because it is useful to see it when deciding whether to remove this file or not.

Conflicts:

	fileinfo.lua
2012-09-19 16:48:23 -04:00
Dobrica Pavlinušić
4582e471be Merge pull request #292 from houqp/new_ui_code
merge latest changes from master branch
2012-09-18 00:24:42 -07:00
Qingping Hou
61bc799de4 update README.md 2012-09-17 20:44:09 -04:00
Qingping Hou
eb79e1c95c handle file with no extension in filechooser 2012-09-17 20:36:39 -04:00
Dobrica Pavlinusic
83d910b7d3 use README.md in distribution zip
Conflicts:

	Makefile
2012-09-17 20:29:55 -04:00
Qingping Hou
68eeeaa0d2 delete README.TXT 2012-09-17 20:24:02 -04:00
Qingping Hou
825de1ea4f remove leading tab in command in README 2012-09-17 20:23:05 -04:00
Qingping Hou
6ad8afebbb rename README.TXT to README.md
for better rendering in Github
2012-09-17 20:22:58 -04:00