Adding component to the XML file
Let us suppose that we have just created a component MyComponent
compiled to the library file called
MyComponent.dll
(release, Windows),
MyComponent_.dll
(debug, Windows),
libMyComponent.so
(release, Linux) or
libMyComponent_.so
(debug, Linux).
Our XML file should look like:
<?xml version="1.0" encoding="ISO-8859-1"?> <pacpus> <components> <!-- other components --> <component name="mycomp" type="MyComponent" /> </components> <connections> <!-- connections --> </connections> <!-- Windows (release) --> <plugins prefix="" postfix="" extension="dll"> <plugin lib="MyComponent" /> <!-- other plugins (libraries) --> </plugins> <parameters> </parameters> </pacpus>
Plugin prefix, postfix, extension
To facilitate changing between various systems and build versions, you can specify prefix
,
postfix
as well as
extension
for the library files in the
plugins
node.
You will find some examples below.
Windows release:
<plugins prefix="" postfix="" extension="dll"> <plugin lib="MyComponent" /> <!-- other plugins (libraries) --> </plugins>
Windows debug:
<plugins prefix="" postfix="_d" extension="dll"> <plugin lib="MyComponent" /> <!-- other plugins (libraries) --> </plugins>
Linux release:
<plugins prefix="lib" postfix="" extension="so"> <plugin lib="MyComponent" /> <!-- other plugins (libraries) --> </plugins>
Linux debug:
<plugins prefix="lib" postfix="_d" extension="so"> <plugin lib="MyComponent" /> <!-- other plugins (libraries) --> </plugins>
Last modified
11 years ago
Last modified on Nov 21, 2013, 11:32:16 AM
Note:
See TracWiki
for help on using the wiki.