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

291 Commits

Author SHA1 Message Date
Dobrica Pavlinusic
cc52ee0a09 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-09-17 11:26:44 -04:00
Tigran Aivazian
bcb85d7c07 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-09-17 11:21:07 -04:00
Tigran Aivazian
a52aee2f9a Set up to compile with arm-kindle-linux-x-tools-glibc2.5-gcc4.2.4.tar.gz toolchain. 2012-09-17 11:20:31 -04:00
Qingping Hou
98c752f50d Merge branch 'new_ui_code' of github.com:houqp/kindlepdfviewer into new_ui_code
for push
2012-08-25 22:52:56 +08:00
Qingping Hou
c1ccff70ad minor adjustment for Makefile and document.lua 2012-08-25 22:52:12 +08:00
Dobrica Pavlinusic
77fece8ad9 fix lua include path 2012-07-15 02:35:22 +08:00
Kefu Chai
e39bbd7077 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-07-15 02:35:12 +08:00
Qingping Hou
ae780a543b check mupdf's thirdparty libs' version 2012-07-15 02:19:10 +08:00
Qingping Hou
10e723896b fix wrong warnning message in Makefile 2012-07-13 22:35:51 +08:00
Qingping Hou
59e81a0345 fix typo in makefile 2012-07-13 22:33:32 +08:00
Qingping Hou
fba5ce51bd Merge branch 'new_ui_code' of github.com:hwhw/kindlepdfviewer into new_ui_code 2012-06-10 21:50:43 +08:00
Qingping Hou
a26f6ed9a5 update customupdate target for new ui framework 2012-06-10 21:20:48 +08:00
Qingping Hou
2108b6daeb fix CC for luajit compilation
Conflicts:
	Makefile
2012-06-10 12:37:26 +02:00
Qingping Hou
8f410bdbbe fix cleanthirdparty target 2012-06-10 12:31:04 +02:00
HW
31df51cc80 update to freetype-2.4.9 2012-06-10 12:27:32 +02:00
HW
a381e11a9e 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-10 12:26:12 +02:00
HW
1c05fa2a24 added shortcuts for Kite
as per suggestion from NuPogodi:
http://www.mobileread.com/forums/showpost.php?p=2090800&postcount=465
2012-06-10 12:13:18 +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
HW
a0c0c98093 added configurable static libstdc++ linking
you can now point to a static libstdc++:

make STATICLIBSTDCPP=/home/hw/kindle-sysroot/usr/lib/libstdc++.a
2012-04-09 19:46:10 +02:00
HW
538940baf7 reworked toolchain management a bit
you can now set the toolchain by using e.g.

make HOST=arm-unknown-linux-gnueabi
or
make HOST=arm-linux-gnueabi

also, a SYSROOT flag is introduced. I use this to point
the compiler to a certain sysroot (which contains headers
and might contain libraries to link against). I use this to
use a current and modern compiler against the older
software versions on the Kindle (especially glibc).

I use it like this:

make HOST=arm-none-linux-gnueabi SYSROOT="--sysroot=/home/hw/my-kindle-sysroot"
2012-04-09 19:37:47 +02:00
HW
2f11b761b0 fixed font copying upon customupdate 2012-04-09 19:32:08 +02:00
HW
b32c3bef1f added bind-mounting of host fonts 2012-04-09 19:18:07 +02:00
HW
ec2eda0c05 switched font handling to only work with external fonts
now you can use a environment variable, FONTDIR, to point
to a font dir. Otherwise, "./fonts" is used by default.
Subdirectories are indexed.
2012-04-09 19:04:26 +02:00
Dobrica Pavlinušić
f9c97bcf59 Merge pull request #94 from dpavlin/dbbd6e4c1247e4caeff79245c62f5dd352b17d5b
cleanup customupdate make target
2012-04-09 04:30:20 -07:00
HW
c24d0bd26e corrected CFLAGS for some base .c files 2012-04-09 13:00:02 +02:00
Dobrica Pavlinusic
dbbd6e4c12 call all target for customupdates and cleanup install dir 2012-04-09 12:59:30 +02:00
HW
cce3b41d63 don't build slider_watcher for now 2012-04-09 12:40:38 +02:00
Qingping Hou
f926a12b73 fix: only copy css files from data directory when building customupdate
refer to #77
2012-04-08 09:58:51 +08:00
Dobrica Pavlinusic
9add90a169 Merge branch 'master' of github.com:hwhw/kindlepdfviewer 2012-04-08 00:11:06 +02:00
Qingping Hou
1f9efe0d9c Merge branch 'master' into epub
Conflicts:
	Makefile
	unireader.lua
2012-04-07 23:09:57 +08:00
Dobrica Pavlinusic
f1ba76bfdc create fonts symlink to TTF_FONTS_DIR #77
It took me few tries to figure out that fonts should point to directory
with *.ttf files as opposed to directory with subdirectories so I
decided to add comment about it
2012-04-07 13:48:33 +02:00
Dobrica Pavlinusic
3160ae15f4 make fetchthirdparty fails on existing data dir #77 2012-04-07 13:37:37 +02:00
Qingping Hou
99f3d405b0 add: slider_watcher to customupdate target 2012-04-06 21:21:21 +08:00
Qingping Hou
c41e3e75a3 add: demo for fixing #85, #86 2012-04-06 13:51:37 +08:00
Qingping Hou
17823a0b58 mod: add cflags in crereader compiling 2012-04-04 20:24:17 +08:00
Qingping Hou
8b6398b58e mod: small changes for kindle build 2012-04-04 15:27:01 +08:00
Qingping Hou
74ffdf019e add: dirty hack for libjpeg as workaround
no segfault now, but no images displayed.
2012-04-04 02:57:02 +08:00
Qingping Hou
2814102d28 mod: use customed cmake rules to build CREngine libraries 2012-04-02 11:52:34 +08:00
Dobrica Pavlinusic
989318661d disable djvu tools when cross-compiling 2012-03-31 19:47:39 +02:00
Qingping Hou
9b500189f2 Merge branch 'master' into epub 2012-03-29 19:36:32 +08:00
Dobrica Pavlinusic
e97cfb91e7 hack crsetup.h using grep #77 2012-03-29 00:59:15 +02:00
Dobrica Pavlinusic
ee5b32aced build crengine after depenencies #77 2012-03-28 20:02:41 +02:00
Dobrica Pavlinusic
8bd1cb09ea lua.h dependecy #77 2012-03-28 19:47:39 +02:00
Qingping Hou
c56516d5d1 add: data from crengine 2012-03-29 00:16:00 +08:00
Qingping Hou
4821f10dda half done demo for crengine 2012-03-29 00:09:26 +08:00
traycold
96894ec1a5 update mupdf submodule to commit bdb6b688a238df56b2cf47fa17a08a4dd4b7a122 and small modification to source code to adapt to mupdf modifications 2012-03-24 17:47:52 +01:00
traycold
e2e5af1c61 added some debug code to better understand memory usage by muPdf 2012-03-22 02:08:31 +01:00
HW
a49c8fa2e5 forgot Makefile change when factoring out drawcontext 2012-03-19 22:04:49 +01:00
HW
7b120b0ee0 allow easier customization of toolchain for libdjvu 2012-03-18 11:48:26 +01:00
Dobrica Pavlinusic
65f95ca204 fix fetchthirdparty, closes #43
- added forgot git submodule init to make empty repository checkout work
- fetchthirdparty won't re-download exiting archives on disk
- moved mupdf-thirdparty.zip to root of repostory, since mupdf already
  has .gitignore and we shouldn't modify upstream submodule
2012-03-08 14:06:16 +01:00
Dobrica Pavlinusic
9bd93fe9c1 move third-party git checkouts into submodules #43 2012-03-07 17:19:52 +01:00
Qingping Hou
9c41d0468e fix: remove misplaced backslash in Makefile 2012-03-06 11:58:44 +08:00
traycold
eba1c2d5ef Merge remote-tracking branch 'hwhw/master' into djvu 2012-03-05 23:36:58 +01:00
Qingping Hou
2505128128 fix: add -lpthread for kpdfview target 2012-03-05 14:43:09 +08:00
Qingping Hou
bd02f93d50 mod: remove sqlite in kpdfview dependence 2012-03-05 08:58:11 +08:00
Qingping Hou
1b1fc2b3ae integrate djvu support 2012-03-04 23:30:08 +01:00
traycold
9fb0fcadd8 fixed small type; set compiler variables when using scratchbox 2012-03-04 23:01:41 +01:00
HW
8816285ec7 removed SQLite and lsqlite for the moment 2012-03-04 17:50:25 +01:00
HW
357da594d4 disable ARM specific CFLAGS when in emu mode 2012-03-04 16:56:19 +01:00
HW
b7d0e657a8 disabled debug symbol output, enabled optimization 2012-03-04 15:36:17 +01:00
Dobrica Pavlinusic
c9064411f7 build only static djvulibre and fix cross-compile #26 2012-03-04 15:31:15 +01:00
Dobrica Pavlinusic
2b0a17e034 switch to git djvulibre since 3.5.24 fails #26
I'm using gcc version 4.6.3 (Debian 4.6.3-1) and git does compile while
version 3.5.24 fails with:

In file included from ../../libdjvu/GContainer.h:67:0,
                 from ../../libdjvu/GContainer.cpp:63:
../../libdjvu/GSmartPointer.h:492:30: error: ‘size_t’ does not name a type
../../libdjvu/GSmartPointer.h:492:37: error: ISO C++ forbids declaration of ‘n’ with no type [-fpermissive]
2012-03-04 14:29:11 +01:00
Qingping Hou
41c46313ef mod: adapt makefile to build djvu library 2012-03-03 22:56:07 +08:00
Qingping Hou
4a1a5233c0 Merge branch 'master' into djvu
Conflicts:
	reader.lua
2012-03-03 17:08:06 +08:00
Qingping Hou
c4d0cd26ae half done djvu support 2012-03-01 21:04:46 +08:00
Dobrica Pavlinusic
ccc2f7e134 cleanup old files before fetching new versions 2012-02-29 16:17:43 +01:00
Qingping Hou
e9f6ecfb86 fix: freetype version in Makefile 2012-02-26 11:08:58 +08:00
HW
225fa725db Adapted to latest muPDF changes (xref -> document, memory context) 2012-02-13 20:13:04 +01:00
HW
fbbdc8dfc0 Adapted to latest muPDF code. Makes code a bit slicker. 2012-01-21 19:20:16 +01:00
Dobrica Pavlinusic
f74def7a69 create customupdate package for launchpad installation
This change also modifies installation directory for install
and customupdate make targets to /mnt/us/kindlepdfviewer
2012-01-19 19:52:22 +01:00
HW
f48526d84c reworked install target a bit 2011-12-09 00:11:55 +01:00
HW
f06b0f1dd3 added building/linking of luafilesystem
for info about luafilesystem, see
http://keplerproject.github.com/luafilesystem/
2011-12-02 23:10:59 +01:00
HW
f307264fb6 added freetype text rendering (still buggy)
this allows to render glyphs and also brings a simple
engine for rendering UTF-8 strings onto the framebuffer.
blitting to uneven offset is implemented here, too, but
needs more work and is still buggy.

In the end, this will allow for a simple GUI.
2011-12-01 01:35:53 +01:00
HW
12edfa7627 integrated sqlite3 + luasqlite3 in build
This will pull in support for SQLite3.
For the API, see here:
http://lua.sqlite.org/index.cgi/index
2011-11-29 00:07:46 +01:00
Dobrica Pavlinusic
2d023d79c2 scp all *.lua files to Kindle 2011-11-21 19:30:00 +01:00
HW
11cc9e38f4 added mupdf patching to Makefile 2011-11-20 23:02:39 +01:00
HW
c6e491ad11 accidently enabled PDF tracing output, revert that. 2011-11-17 00:52:07 +01:00
HW
4e037e44f5 more makefile love: compile everything in one go
now - after fetching third party sources - you can
compile everything via

make

or

EMULATE_READER=1 make

in one go.
2011-11-17 00:50:10 +01:00
HW
f78776a4d5 changes on building (clean-up) and emulation code
cleaned up Makefile a bit and made emulation related
parts really conditional on a single flag (EMULATE_READER).
2011-11-16 23:52:26 +01:00
HW
ade5c4892d better argument parsing and option for gamma correction
included MIT-licensed alt_getopt implementation:
http://files.luaforge.net/releases/alt-getopt/alt-getopt/alt-getopt-0.7.0

created example use of gamma correction.

reader.lua now has usage notes for its invocation syntax.
2011-11-16 17:13:08 +01:00
HW
10a8d59882 oops, Makefile wasn't in initial import. 2011-11-14 19:17:14 +01:00