Commit Graph

113 Commits

Author SHA1 Message Date
NiLuJe
a2ce5dd101 Hello, tiny stupid typo! 2012-10-03 01:37:20 +02:00
NiLuJe
7bc80277e4 Don't checkout popen_noshell twice (it reverts parts of our patch) 2012-10-03 00:36:50 +02:00
NiLuJe
4356622186 Don't patch popen-noshell twice 2012-10-03 00:34:42 +02:00
NiLuJe
9cc106995d Properly fix the luajit *FLAGS mess 2012-10-03 00:29:10 +02:00
NiLuJe
ffe7be7085 Merge remote-tracking branch 'upstream/master' 2012-10-02 23:51:03 +02:00
NiLuJe
76714c453a Restore Makefiles tweaks 2012-10-02 23:50:34 +02:00
NiLuJe
5c76ef0f78 Fetch popen_noshell during fetchthirdparty, don't bundle it in our repo 2012-10-02 23:30:12 +02:00
Dobrica Pavlinusic
53a60495b5 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 23:24:13 +02:00
NiLuJe
4e861715e3 Fix a stupid typo 2012-10-02 23:21:14 +02:00
NiLuJe
3f5fe1e991 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)
2012-10-02 23:18:28 +02:00
NiLuJe
44f69b55cd Revert Makefile changes potentially unsuitable for upstream 2012-10-02 03:29:31 +02:00
NiLuJe
6b245b9c80 Update the standalone testcase, too. 2012-10-02 03:11:16 +02:00
NiLuJe
d27f20d696 Fix input device closing, and fix lipc-wait-event handling (using
popen-noshell from http://code.google.com/p/popen-noshell/)
2012-10-02 02:16:22 +02:00
NiLuJe
1a746d6e8f Makefile tweaks for my TC 2012-10-02 02:09:43 +02:00
Tigran Aivazian
0c1eb1109e 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-01 21:05:23 +01:00
Tigran Aivazian
2fefc96b79 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-01 12:35:16 +01:00
Tigran Aivazian
d2e3558add 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-01 12:09:13 +01:00
Tigran Aivazian
5459cb18ae 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-01 10:49:31 +01:00
Tigran Aivazian
db077b2f34 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-29 10:02:55 +01:00
Tigran Aivazian
f77a201e0b Typo: --disable-largefiles -> --disable-largefile
As a result of a simple typo we were continuing to include LFS
support unnecessarily...
2012-09-28 23:23:49 +01:00
Tigran Aivazian
385f74222a 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.
2012-09-25 13:00:34 +01:00
Tigran Aivazian
4b5c33d4cd 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:32:39 +01:00
Dobrica Pavlinusic
238e25e743 include git rev in distribution zip 2012-09-21 20:28:31 +02:00
Qingping Hou
5e6a0c82c9 fix typo in Makefile 2012-09-17 20:38:24 -04:00
Dobrica Pavlinusic
263ab789c8 use README.md in distribution zip 2012-09-17 22:38:05 +02:00
Qingping Hou
ea325146d3 move -l argument to the end of GCC call 2012-09-16 12:17:47 -04:00
Tigran Aivazian
524c8209c0 Improve customupdate target to only include the _real_ LUA source files, not
the garbage settings.*.lua or any other small test/experimental *.lua files
that happen to be in the current directory.
2012-09-02 18:43:07 +01:00
Dobrica Pavlinusic
5a897fba77 Revert "Set up to compile with arm-kindle-linux-x-tools-glibc2.5-gcc4.2.4.tar.gz toolchain."
This reverts commit 2650faa000
as described in #229
2012-08-27 21:01:31 +02:00
Tigran Aivazian
5576890263 Fix the Makefile to use freetype-2.4.10 and kpvcrlib/CMakeLists.txt to do the same and also zlib 1.2.5->1.2.7 and libjpeg 8d->9. 2012-08-27 14:39:42 +01:00
Tigran Aivazian
2650faa000 Set up to compile with arm-kindle-linux-x-tools-glibc2.5-gcc4.2.4.tar.gz toolchain. 2012-08-27 12:57:26 +01:00
Dobrica Pavlinusic
2fd5c28007 fix lua include path 2012-06-13 18:49:46 +02:00
Kefu Chai
1ecab97c6f fixes for mac
* per http://luajit.org/install.html, otherwise LuaJIT always fails
  to get desired memory chunk from mmap(2)
* kill a warning of clang
2012-06-11 02:46:50 +08:00
Qingping Hou
772a298d48 fix CC for luajit compilation 2012-06-06 19:41:16 +08:00
Qingping Hou
e2e3f12463 fix cleanthirdparty target 2012-06-06 14:33:35 +08:00
HW
a0b538affd update to freetype-2.4.9 2012-06-04 00:51:20 +02:00
HW
978fd9313a added compilation for ARM (Kindle device) with LuaJIT 2012-06-03 02:17:59 +02:00
HW
7952220b41 switch to LuaJIT-2.0
LuaJIT is a JIT compiler for Lua code. It's phenomenal work, and
you can read about it here: http://luajit.org/
2012-06-03 01:49:55 +02:00
HW
497e1d89de added shortcuts for Kite
as per suggestion from NuPogodi:
http://www.mobileread.com/forums/showpost.php?p=2090800&postcount=465
2012-05-28 19:55:04 +02:00
NuPogodi
86513c3793 added cr3.css for files without one 2012-05-19 13:09:37 +02:00
Qingping Hou
0e9e1f8482 Merge branch 'master' of github.com:hwhw/kindlepdfviewer 2012-04-24 20:38:53 +08:00
Qingping Hou
dbb49505f1 add doc format support
Though I don't like doc at all.
2012-04-24 20:37:16 +08:00
Dobrica Pavlinusic
ebc5f94f61 crengine patching shouldn't fail if already applied
When patch is already applied, -N will skip applying it again,
but it will also return error exit code which will break
make fetchthirdparty
2012-04-24 14:27:42 +02:00
Qingping Hou
c961fbd515 add dirty hack for child node font settings. 2012-04-24 11:04:31 +08:00
Dobrica Pavlinusic
77f2c3b386 don't patch already patched crengine 2012-04-16 10:53:44 +02:00
traycold
429f572827 modification to take into account new version of mupdf 2012-04-16 00:10:41 +02:00
traycold
02dd9b023f Merge remote branch 'hwhw/master'
* hwhw/master: (183 commits)
  show infomessage on document open
  use InfoMessage for empty TOC, jump history and highlights
  copy resources dir on customupdate
  add resource: info icon
  display document open error message
  added infomessage dialog implementation
  bugfix, removed old test constant
  Added widget abstraction framework
  added interface to get blitbuffers from JPEG/PNG files
  fix typo
  added reading of pan_margin settings
  fix full screen refresh command, close #99
  add: sleep and usleep in util module
  fix: add back KEY_FW{LEFT,RIGHT} commands to NumInputBox
  reverted removal of last-doc shortcut, introduced framework restart
  kill our own child process. not quite finished.
  added line spacing setting for crereader
  remove page:getPageText debug dump to improve performance on device
  remove page:getPageText debug dump to improve performance on device
  display crash.log on error
  ...

Conflicts:
	ft.c
	helppage.lua
	inputbox.lua
	rendertext.lua
	rendertext_example.lua
	unireader.lua
2012-04-16 00:08:19 +02:00
Qingping Hou
552246ba13 copy resources dir on customupdate 2012-04-15 11:01:14 +08:00
HW
38afb59b3f added interface to get blitbuffers from JPEG/PNG files
this is supposed to help us in the UI code.
2012-04-14 22:32:05 +02:00
Qingping Hou
0007a8677f fix: rm antiword in make clean 2012-04-11 17:32:36 +08:00
Qingping Hou
e3f6bab9f1 mod: adapt Makefile to new kpvcrlib's CMake environment 2012-04-11 17:13:37 +08:00