1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
##########################
# START CONFIG FOR QT

# directory where qt and bb libs are
# (depends on device or simulator build config)
QTDIR = temp

device {
   QTDIR = /home/preet/Documents/qt-4.8.2-qnx-arm
}
simulator {
   QTDIR = /home/preet/Documents/qt-4.8.2-qnx-x86
}

# define qt lib files and install path
dep_libs.path = $${OUT_PWD}/deploy/lib
dep_libs.files = $${QTDIR}/lib/*.so.4

# define bb lib file and install path
dep_plugins.path = $${OUT_PWD}/deploy/plugins/platforms
dep_plugins.files = $${QTDIR}/plugins/platforms/libblackberry.so

INSTALLS += dep_libs dep_plugins

# END CONFIG FOR QT
##########################

##########################
# START PROJECT CONFIG
TEMPLATE = app

SOURCES += \
    main.cpp

QNXTARGETDIR = /home/preet/bbndk-2.0.1/target
QNXHOSTDIR = /home/preet/bbndk-2.0.1/host

simulator {
    # libstdc++ (not libcpp)
    INCLUDEPATH += \
        $${QNXHOSTDIR}/linux/x86/usr/lib/gcc/i486-pc-nto-qnx6.5.0/4.4.2/include \
        $${QNXTARGETDIR}/qnx6/usr/include/c++/4.4.2 \
        $${QNXTARGETDIR}/qnx6/usr/include/c++/4.4.2/i486-pc-nto-qnx6.5.0 \
        $${QNXTARGETDIR}/qnx6/usr/include/c++/4.4.2/backward \
        $${QNXTARGETDIR}/qnx6/usr/include/

    LIBS += -L$${QNXTARGETDIR}/qnx6/x86/lib/gcc/4.4.2 -lstdc++
}
device {
    # libstdc++ (not libcpp)
    INCLUDEPATH += \
        $${QNXHOSTDIR}/linux/x86/usr/lib/gcc/arm-unknown-nto-qnx6.5.0eabi/4.4.2/include \
        $${QNXTARGETDIR}/qnx6/usr/include/c++/4.4.2 \
        $${QNXTARGETDIR}/qnx6/usr/include/c++/4.4.2/arm-unknown-nto-qnx6.5.0eabi \
        $${QNXTARGETDIR}/qnx6/usr/include/c++/4.4.2/backward \
        $${QNXTARGETDIR}/qnx6/usr/include/

    LIBS += -L$${QNXTARGETDIR}/qnx6/armle-v7/lib/gcc/4.4.2 -lstdc++
}

# bar descriptor, icon, splashscreen
pkg_files.path = $${OUT_PWD}
pkg_files.files += \
    bar_descriptor.xml

INSTALLS += pkg_files
# END PROJECT CONFIG
##########################