Changeset 17583 in niluje


Ignore:
Timestamp:
Jul 28, 2020, 8:59:27 PM (11 days ago)
Author:
NiLuJe
Message:

MobiCover:

  • Make it build (almost)
Location:
Configs/trunk/Kindle/Touch_Hacks/MobiCover/LibMobi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Configs/trunk/Kindle/Touch_Hacks/MobiCover/LibMobi/Makefile

    r17580 r17583  
    5555
    5656mobicover: mobicover.c
    57         $(CC) $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(SVNREV) $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) $< -lmobi -lnettle -o $@
     57        $(CC) $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(SVNREV) $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) $< -lmobi -lxml2 -lz -lnettle -o $@
    5858
    5959static: mobicover.c
    60         $(CC) $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(SVNREV) $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) $< -l:libmobi.a -l:libnettle.a -o mobicover
     60        $(CC) $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(SVNREV) $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) $< -l:libmobi.a -l:libxml2.a -lz -l:libnettle.a -o mobicover
    6161        $(STRIP) --strip-unneeded mobicover
    6262
  • Configs/trunk/Kindle/Touch_Hacks/MobiCover/LibMobi/mobicover.c

    r17582 r17583  
    3737// c.f., https://github.com/bfabiszewski/kindle-screensavers/commit/fe9eddbc5e4d330b12ad789663736dfaa717fc7a#comments
    3838static int
    39     dump_cover(const MOBIData* m, const char* fullpath)
     39    dump_cover(const MOBIData* m, const char* fullpath, const char* outdir)
    4040{
    4141        bool            broken_cover   = false;
     
    154154        }
    155155        char cover_path[FILENAME_MAX];
    156         if (outdir_opt) {
     156        if (outdir) {
    157157                snprintf(cover_path, sizeof(cover_path), "%scover_raw_%s.%s", outdir, cdekey, ext);
    158158        } else {
Note: See TracChangeset for help on using the changeset viewer.