PathEngine home previous: Static Linkagenext: PathEngine on the Cell Broadband Engine
Contents, Programmers Guide, Building the Source Code, Building without 2D Content Processing

Building without 2D Content Processing

PathEngine's 2D content processing functionality is included by default as part of the PathEngine DLL (or in the application executable, in the case of static linkage) but is often only required at content processing time.

The full source archive includes a stub library that can be used to remove the code footprint for the 2D content processing, in situations where run-time storage is at a premium and where the 2D content processing is not being used at run-time.

This stub library essentially replaces the various calls into the 2D content processing from the rest of the run-time SDK with code that provides exactly the same linkage but that then doesn't actually do anything except emit a suitable error message.

The stub library can be found in 'SDKRoot/code/libs/Content_Processing_Stub', and replaces functionality found in 'SDKRoot/code/libs/Content_Processing'.

Switching to the stub library for DLL or shared object linkage

In the case of DLL or shared object linkage you can switch to the stub lib simply by changing the relevant dependancy in the 'PathEngine' project setup.
On platforms with Visual Studio this means changing the project dependencies.
When using the python based build setup this means changing a library reference in 'SDKRoot/code/PathEngine/buildInfo.xml'.

Switching to the stub library for static linkage

When using static linkage you essentially just need to replace the 'Content_Processing' library with 'Content_Processing_Stub'.
In Visual Studio the 'Content_Processing_Stub' library can be built manually.
When using the python based build setup you can switch dependencies as described above and build the 'PathEngine' project in order to get this stub library to build.

Functionality affected

In addition to the 2d content processing itself, the 'Content_Processing' lib also includes:

None of this functionality should therefore be used when linking with the stub library.


Documentation for PathEngine release 5.16 - Copyright © 2002-2008 PathEnginenext: PathEngine on the Cell Broadband Engine