On Mon, Aug 20, 2007 at 10:49:20AM -0500, Bo Peng wrote: > Dear list, > > Because I get no objection to the design of the embedding feature of > lyx, I plan to add it to the trunk in the next few weeks. There is, > however, a big question on how to zip and unzip files. > > There is a unzipFile function in src/support/filetools.cpp which calls > 'gunzip -c'. I am not sure how lyx distributes gunzip and I doubt if > it works under windows. > > In my current patch, I build a static library minizip.a from > zlib-1.2.3/contrib/minizip/ioapi.c, zip.c and unzip.c. I then add > functions zipFiles() and unzipToDir() to filetools.cpp using code from > minzip.c and minunz.c. This allows lyx to zip and unzip files easily, > but requires zlib source and changes to our four build systems.
Disregard qmake for that matter... > I am > not quite sure if this is a good idea so any comment is welcome. A library based solution is probably more robust than one based on external programs. Andre'
