chrox
5acf471ecb
use -O3 option in k2pdfopt compilation
...
Koptreader will gain 20% performance boost.
12 years ago
chrox
44361faeee
build libk2pdfopt as a shared library
12 years ago
chrox
a5b28ff6f2
include k2pdfopt header in pdf.c and djvu.c and koptcontext.h
12 years ago
chrox
8430850a39
move k2pdfopt source to a submodule libk2pdfopt
...
Currently libk2pdfopt is staticly linked to kpdfview.
12 years ago
chrox
f70ef06ea6
use koptcontext to keep dozons of parameters for k2pdfopt
12 years ago
Qingping Hou
ba60e641a9
add emu_event to clean target
12 years ago
Qingping Hou
0b08992591
update djvulibre target dependence for LIBDIR
12 years ago
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).
12 years ago
Tigran Aivazian
87d0b94d9b
Mkdir clipboard at build, not runtime
...
Conflicts:
filechooser.lua
12 years ago
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.
12 years ago
Qingping Hou
6f6cb3c1a9
build: create libs-emu dir if not found
12 years ago
Tigran Aivazian
d4642a5df1
Build djvulibre as a shared library
12 years ago
Tigran Aivazian
5c0201d3e3
Makefile: extr depends on MUPDFLIBS/THIRDPARTYLIBS
12 years ago
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
12 years ago
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
12 years ago
chrox
9e8a92862c
add koptreader.lua file in customupdate
...
Conflicts:
Makefile
12 years ago
chrox
441d061664
add DJVU reflow
...
Conflicts:
djvu.c
koptreader.lua
reader.lua
12 years ago
chrox
f3f97b6223
add pdf page reflow
...
Conflicts:
pdfreader.lua
12 years ago
Dobrica Pavlinusic
95f6ed5bd6
fix getCurrentPageLinks segfault on links without target
12 years ago
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
12 years ago
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).
12 years ago
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
12 years ago
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...
12 years ago
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.
12 years ago
NiLuJe
24b9678dc6
It's a spaaaaace!
12 years ago
NiLuJe
3e47fe8e01
Quote that to avoid potential issues...
12 years ago
NiLuJe
0790190af5
Slightly nicer fix for building mupdf's .host stuff with CFLAGS in the env.
12 years ago
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).
12 years ago
NiLuJe
d55138113f
Split the backward compat stuff between CFLAGS/CXXFLAGS
12 years ago
NiLuJe
c35b5d2d56
Don't use the backward compat flags on the host. Move to a dedicated
...
variable, with a few comments to explain ;).
12 years ago
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).
12 years ago
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.
12 years ago
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.
12 years ago
NiLuJe
5a2e4dec99
Fix the luajit clean fix (forgot to quote *_*).
...
Let ld do its job when linking, don't pass the static libs as object
files (we end up with a smaller native binary).
12 years ago
NiLuJe
679fce3df4
Make sure we're building for the softfp float ABI, and not in Thumb.
...
Might fix #359
12 years ago
NiLuJe
b5134ee4f2
Honor toplevel settings re: CC/FLAGS when building libdjvu. Define
...
_GNU_SOURCE to fix build with CS/MG TC. Fixes #341
12 years ago
NiLuJe
51345c6f08
Let's do a distclean, actually. Less noise in git status that way.
12 years ago
NiLuJe
9173f0a549
Don't require a cross-tc for cleanthirdparty (still confuzzled about why
...
luajit needs CFLAGS for a clean target, but, hey!). Fixes #357
12 years ago
Qingping Hou
7352ff8a65
revert commit 9127d1c9a1
...
As NiLuJe points out, that line is not needed, clean
stage of the popen Makefile will take care of it.
12 years ago
NiLuJe
bccccba794
Reimplement kpdf.sh changes from PR#348 after the PR#352 merge, and fix
...
customupdate to actually bundle kpdf.sh in the new location
Conflicts:
launchpad/kpdf.sh
12 years ago
Qingping Hou
e82121b72e
add HOSTAR for emu mode complie
12 years ago
Qingping Hou
9a1e581f7a
add popennslib to cleanthirdparty
12 years ago
NiLuJe
30c3497654
Slight syntax tweak
12 years ago
NiLuJe
4c5341fb30
Hello, tiny stupid typo!
12 years ago
NiLuJe
4310b68b3b
Don't checkout popen_noshell twice (it reverts parts of our patch)
12 years ago
NiLuJe
84e107313c
Don't patch popen-noshell twice
12 years ago
NiLuJe
8250d77390
Properly fix the luajit *FLAGS mess
12 years ago
NiLuJe
3672d79fef
Restore Makefiles tweaks
12 years ago
NiLuJe
10c9b3a58c
Fetch popen_noshell during fetchthirdparty, don't bundle it in our repo
12 years ago
NiLuJe
18ed67ba2c
Fix a stupid typo
12 years ago