pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pdf-devel] Sources organization


From: gerel
Subject: Re: [pdf-devel] Sources organization
Date: Sat, 26 Jan 2008 22:19:03 -0300

 > Date: Mon, 21 Jan 2008 17:33:02 +0100
 > From: address@hidden
 > 
 > Hi.
 > 
 > Due to the new library architecture documented in
 > http://www.gnupdf.org/Lib:Architecture we should decide what kind of
 > sources organization we are going to use. So I would like to discuss
 > some points.

Hey jemarch, this is what I think is best (if it's not late).

 >    2.a) One library with conditional compilation of some layers
 > 
 >         In this scheme a single library called libgnupdf.(so|a) would
 >         be constructed. The user would select the layers to be
 >         included in the library using a `configure' switch like:
 >         --with-pdf-level=(page|document|object|base). 
 > 
 >         Then if the `document' level is selected the library will
 >         contain the code of the base, object and document layers.
 > 
 >         In this way we would achieve flexibility: a client application
 >         may want to manipulate the contents of a PDF document in order
 >         to extract text or metadata (like libextractor). The `page'
 >         layer is not needed in this scenario (nor the dependency with
 >         libcairo, for example). That client application would want to
 >         link against a `--with-pdf-level=document' compiled libgnupdf.
 > 
 >         The libray would then distribute a single `pdf.h' file
 >         granting access to the functionality of all the enabled
 >         layers. 
 > 
 >    3.b) A directory for each layer
 > 
 >         In this schema we would have four source directories: 
 >    
 >         - src/base
 >         - src/object
 >         - src/document
 >         - src/page
 > 
 >    4.b) Carry layer information in symbol names only
 > 

Regarding point 4 I'm not sure why you want to "keep a PREFIX-file.[ch] <->
PREFIX_symbol equivalence" :-/

regards

-gerel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]