Changes between Version 1 and Version 2 of TutorialAddingComponentToXML


Ignore:
Timestamp:
Nov 21, 2013, 11:32:16 AM (11 years ago)
Author:
Marek Kurdej
Comment:

prefix, postfix, extension

Legend:

Unmodified
Added
Removed
Modified
  • TutorialAddingComponentToXML

    v1 v2  
    1717    </connections>
    1818   
    19     <!-- Windows (debug) -->
    20     <plugins prefix="" postfix="_d" extension="dll">
     19    <!-- Windows (release) -->
     20    <plugins prefix="" postfix="" extension="dll">
    2121        <plugin lib="MyComponent" />
    2222        <!-- other plugins (libraries) -->
     
    2626    </parameters>
    2727</pacpus>
     28}}}
    2829
     30== Plugin prefix, postfix, extension ==
     31
     32To 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.
     33You will find some examples below.
     34
     35Windows release:
     36{{{#!xml
     37    <plugins prefix="" postfix="" extension="dll">
     38        <plugin lib="MyComponent" />
     39        <!-- other plugins (libraries) -->
     40    </plugins>
    2941}}}
     42
     43Windows debug:
     44{{{#!xml
     45    <plugins prefix="" postfix="_d" extension="dll">
     46        <plugin lib="MyComponent" />
     47        <!-- other plugins (libraries) -->
     48    </plugins>
     49}}}
     50
     51Linux release:
     52{{{#!xml
     53    <plugins prefix="lib" postfix="" extension="so">
     54        <plugin lib="MyComponent" />
     55        <!-- other plugins (libraries) -->
     56    </plugins>
     57}}}
     58
     59Linux debug:
     60{{{#!xml
     61    <plugins prefix="lib" postfix="_d" extension="so">
     62        <plugin lib="MyComponent" />
     63        <!-- other plugins (libraries) -->
     64    </plugins>
     65}}}