summaryrefslogtreecommitdiff
path: root/apps/Jamfile
blob: e6a72bfd20b967e4a919eadaf6f984fbc54090ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#

FITZLIBS = libmupdf libbase libstream libworld libraster libfonts ;

SubDir TOP apps ;
Main mupdftool : pdftool.c ;
LinkLibraries mupdftool : $(FITZLIBS) ;

SubDir TOP apps common ;
Library libpdfapp : pdfapp.c ;

if $(BUILD_WINAPP)
{
    SubDir TOP apps windows ;
    Main mupdf : winmain.c winres.rc ;
    LinkLibraries mupdf : libpdfapp $(FITZLIBS) ;
    LINKLIBS on mupdf$(SUFEXE) = $(LINKLIBS) $(APPLINKLIBS) ;
}

if $(BUILD_X11APP)
{
    SubDir TOP apps unix ;
    Main mupdf : x11pdf.c ximage.c ;
    LinkLibraries mupdf : libpdfapp $(FITZLIBS) ;
    LINKLIBS on mupdf$(SUFEXE) = $(LINKLIBS) $(APPLINKLIBS) ;
}

if $(BUILD_PLUGIN)
{
    SubDir TOP apps mozilla ;
    SUFEXE on npmupdf.dll = ;
    LINKFLAGS on npmupdf.dll = $(LINKFLAGS) -shared -Wl,--kill-at ;
    LINKLIBS on npmupdf.dll = $(LINKLIBS) $(APPLINKLIBS) ;
    Main npmupdf.dll : npwin.c moz_winres.rc moz_main.c ;
    LinkLibraries npmupdf.dll : $(FITZLIBS) ;
}