C

Telltales: Rendering Safety-Critical UI

TEMPLATE = app
TARGET = telltales
SOURCES = main.cpp

QT = qtsaferenderer qsrplatformadaptation

integrity {
    for(p, QMAKE_LIBDIR_EGL) {
        LIBS += -L$$p
    }
    LIBS += -lsrv_init -lmmgr_usr -lwm_usr -lprr_usr -lpool -livfs
    DEFINES += Q_OS_INTEGRITY
    DEFINES += IPMMU_VMR_INT_FIRST=0x0000000080000000
    DEFINES += IPMMU_VMR_INT_LAST=0x00000000BFFFFFFF
    INCLUDEPATH += $$[QT_INSTALL_HEADERS]
    INCLUDEPATH += $$QMAKE_INCDIR_EGL
    INCLUDEPATH += ../../../src/saferenderer
} else:boot2qt {
    CONFIG += resources
}

CONFIG += qtsafercctool exceptions
qnx: target.path = /tmp/saferenderer/$${TARGET}
else: target.path = $$[QT_INSTALL_EXAMPLES]/saferenderer/$${TARGET}

layoutdata.files += safeasset.qrc
layoutdata.path = $$[QT_INSTALL_EXAMPLES]/saferenderer

INSTALLS = target layoutdata
SAFE_RESOURCES += \
    $$PWD/safeasset.qrc

OTHER_FILES += safeasset.qrc