TEMPLATE = app

CONFIG += qt uic

include(qml.pri)

SOURCES += main.cpp

exists($$PWD/../qmljsdebugger/qmljsdebugger-src.pri) {
    # directly compile in debugger files
    include($$PWD/../qmljsdebugger/qmljsdebugger-src.pri)
} else {
    # INCLUDEPATH and library path has to be extended by qmake call
    DEBUGLIB=QmlJSDebugger
    CONFIG(debug, debug|release) {
        windows:DEBUGLIB = QmlJSDebuggerd
    }
    LIBS+=-l$$DEBUGLIB
}

#INCLUDEPATH += ../../include/QtDeclarative
#INCLUDEPATH += ../../src/declarative/util
#INCLUDEPATH += ../../src/declarative/graphicsitems

!exists($$[QT_INSTALL_HEADERS]/QtCore/private/qabstractanimation_p.h) {
    DEFINES += NO_PRIVATE_HEADERS
}

target.path = $$[QT_INSTALL_BINS]
INSTALLS += target

wince* {
    QT += xml

    contains(QT_CONFIG, scripttools) {
        QT += scripttools
    }
    contains(QT_CONFIG, phonon) {
        QT += phonon
    }
    contains(QT_CONFIG, xmlpatterns) {
        QT += xmlpatterns
    }
    contains(QT_CONFIG, webkit) {
        QT += webkit
    }
}
maemo5 {
    QT += maemo5
}
symbian {
    TARGET.UID3 = 0x20021317
    include($$QT_SOURCE_TREE/demos/symbianpkgrules.pri)
    TARGET.EPOCHEAPSIZE = 0x20000 0x4000000
    TARGET.CAPABILITY = NetworkServices ReadUserData
    !contains(S60_VERSION, 3.1):!contains(S60_VERSION, 3.2) {
        LIBS += -lsensrvclient -lsensrvutil
    }
    contains(QT_CONFIG, s60): {
        LIBS += -lavkon -lcone
    }
}
OTHER_FILES+=Info.plist
mac {
    QMAKE_INFO_PLIST=Info.plist
    TARGET=QMLObserver
    ICON=qml.icns
} else {
    TARGET=qmlobserver
}
