next up previous contents
Next: 5.2.5 Building a Working Up: 5.2 Creating a New Previous: 5.2.3 Selecting Component Generation   Contents


5.2.4 Generating the Source

Before generating the source code for the component, you must first give it a name. Type whatever name you would like into the ``Component Name'' box in the Component Editor. Select ComponentGenerate Component to select a directory to save the source code that will be generated. The location of the stored source code is arbitrary and many users will create a components directory to store all of their source code. Once you select a directory and click ``Open'' or ``Ok,'' your code will automatically be generated.

Files Generated Using the basic_ports C++ Option

configure.ac
This is the script that autoconf [1] uses to generate the configure file. It checks for dependencies such as which compiler to use, as well as the presence of OSSIE libraries.
Makefile.am
This is the script that automake [2] uses to generate the Makefile. It includes all the source files for the component.
reconf
This is a script to run the automake tools.
MyComponent.h
Component class header file
MyComponent.cpp
Component class implementation definition
main.cpp
Contains the mandatory int main() definition
MyComponent.prf.xml
Component property file
MyComponent.scd.xml
Software component descriptor
MyComponent.spd.xml
Software package descriptor
documentation.txt
File for documenting your component
Doxyfile
Doxygen [3] file for generating documentation

Files Generated Using py_comp Option

MyComponent.py
Python file with port implementations
WorkModule.py
Python file where processing is done
setup.py
Install script used to copy Python and XML files into the appropriate subdirectories under /sdr once the component is edited to provide functionality. This is executed by typing python setup.py install
MyComponent.prf.xml, MyComponent.scd.xml, MyComponent.spd.xml
Same as for C++ components


next up previous contents
Next: 5.2.5 Building a Working Up: 5.2 Creating a New Previous: 5.2.3 Selecting Component Generation   Contents
2008-04-25