Yes, but you will have to put them in yourselves.

It is a tedious task to do but very straightforward.
Start by setting an #include and an #if in the beginning every cpp file like
this and do not forget the #endif :)

#include "InterfaceFlags.h"
#if defined(INCLUDE_ALL) && defined(INCLUDE_FILENAME)

Then create the InterfaceFlags.h like this

#ifdef SAX_INTERFACE
#define INCLUDE_FILE1
#define INCLUDE_FILE2
#define INCLUDE_FILE3
#define INCLUDE_FILE4
#endif // SAX_INTERFACE

#ifdef DOM_INTERFACE
#define INCLUDE_FILE1
#define INCLUDE_FILE3
#define INCLUDE_FILE5
#endif // DOM_INTERFACE
...


The work is to figure out which files that is needed for each interface.
Define only one interface in your build and have only the basic file defined
for that interface in InterfaceFlags.h. Compile and then add files when the
linker asks for them.
Iterate until there is no more link errors. Then define the next interface
and start over until you have all interfaces defined

If you do these changes then I think more people is interested to get their
hands on that improvement.
Please share with others.

/ Erik

-----Original Message-----
From: Renji Panicker [mailto:[EMAIL PROTECTED]]
Sent: den 8 mars 2002 08:30
To: [EMAIL PROTECTED]
Subject: RE: new to Xerces


Purely academic:
Is it possible to have #ifdef's to selective build shared libraries
implementing only the API's we need?

-/renji

-----Original Message-----
From: Erik Rydgren [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 3:54 PM
To: [EMAIL PROTECTED]
Subject: RE: new to Xerces


Easiest way is to create a library of all source files in Xerces. Then only
the needed parts are included during linkage and that is the smallest subset
you will ever get. We use this approach successfully ourselves. The downside
is that xerces will be statically linked into the application and code
sharing between multiple xerces-using applications will not be possible.

Regards
Erik Rydgren
Mandarinen systems AB
Sweden

-----Original Message-----
From: Xing [mailto:[EMAIL PROTECTED]]
Sent: den 6 mars 2002 23:58
To: [EMAIL PROTECTED]
Subject: new to Xerces


Hi, I am new to Xerces.
Why the size of Xerces's binary distributions is so big.  Few of people use
all SAX, SAX2, DOM and DOM2 APIs in one application.  Who can help to split
the Xerces' binary distribution to deduce the size of  my application?
Thanks a lot.

Xing


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to