summaryrefslogtreecommitdiffstats
path: root/examples/scxml/mediaplayer-common/doc/src/mediaplayer-compiling.qdocinc
blob: d4eb6eed0d4f3871b9d34348c2f96d096d892b87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
    \section1 Compiling the State Machine

    We link against the Qt SCXML module by adding the following line to the
    \e .pro file:

    \quotefromfile mediaplayer-widgets-static/mediaplayer-widgets-static.pro
    \skipto QT
    \printline scxml

    We then specify the state machine to compile:

    \skipto STATECHARTS
    \printline scxml

    We also tell qmake to run \c qscxmlc, which generates \e mediaplayer.h and
    \e mediaplayer.cpp, and adds them to the \c HEADERS and \c SOURCES
    variables for compilation:

    \skipto load
    \printline qscxmlc