summaryrefslogtreecommitdiff
path: root/apps/Jamfile
blob: c0c364d1a2e9fec88d6bd083564479c7ecd2e568 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#

FITZLIBS = libmupdf libfitz libfitzdraw libfonts libcmaps ;

SubDir TOP apps ;

Main pdfshow : pdfshow.c ;
LinkLibraries pdfshow : libpdftool $(FITZLIBS) ;

Main pdfclean : pdfclean.c ;
LinkLibraries pdfclean : libpdftool $(FITZLIBS) ;

Main pdfdraw : pdfdraw.c ;
LinkLibraries pdfdraw : libpdftool $(FITZLIBS) ;

Main pdfinfo : pdfinfo.c ;
LinkLibraries pdfinfo : libpdftool $(FITZLIBS) ;

Main pdfextract : pdfextract.c ;
LinkLibraries pdfextract : libpdftool $(FITZLIBS) ;

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

SubDir TOP apps common ;
Library libpdftool : pdftool.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) ;
}