diff -r 14dc2103a631 -r ed1c9f64298a trace/tracebuilder/com.nokia.tracebuilder.help/html/reference/nonsourcefiles.htm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/trace/tracebuilder/com.nokia.tracebuilder.help/html/reference/nonsourcefiles.htm Wed Jun 23 14:35:40 2010 +0300 @@ -0,0 +1,52 @@ + + + + + Tips and tricks + + + + +

TraceBuilder tips and tricks

+ +

Handling non-source files

+ +

TraceCompiler parses Open System Traces (OST) from source files listed in a +project's MMP file. However, if traces need to be parsed from header files or +inline files (.inl), the files need to be explicitly specified in the +trace.properties property file.

+ +

TraceBuilder does not support the definition of non-source files but you can +define them manually by adding the needed file elements to the +trace.properties property file.

+ +

For example:

+ +

<?xml version="1.0" encoding="UTF-8"?>
+<trace_properties>
+<file>../inc/MyFunctions.inl</file>
+<file>../inc/MyFunctions.h</file>

+</trace_properties>

+

+ +

The path to the file is relative to the location of the property file. The +header file where the traces will be generated follows the same naming rules as +the source files. From the above example, traces from both +MyFunctions.inl and MyFunctions.h (and also +MyFunctions.cpp if it exists) would go to the MyFunctionsTraces.h +file.

+ +

NOTE! Location of the property file trace.properties is the +trace directory. It could be that the property file trace.properties +does not exist if there are no enumeration type definitions or non-source file +definitions. In that case, it needs to be created manually.

+ +
Related concepts
+ + + + +