7df049124834ccab20d4f077597bf18d8e145522
[profile/ivi/qtdeclarative.git] / src / quick / quick.pro
1 load(qt_build_config)
2
3 TARGET = QtQuick
4
5 CONFIG += dll warn_on
6
7 QT = core-private gui-private qml-private
8
9 DEFINES   += QT_NO_URL_CAST_FROM_STRING QT_NO_INTEGER_EVENT_COORDINATES
10 win32-msvc*:DEFINES *= _CRT_SECURE_NO_WARNINGS
11 solaris-cc*:QMAKE_CXXFLAGS_RELEASE -= -O2
12
13 exists("qqml_enable_gcov") {
14     QMAKE_CXXFLAGS = -fprofile-arcs -ftest-coverage -fno-elide-constructors
15     LIBS += -lgcov
16 }
17
18 load(qt_module_config)
19
20 QMAKE_DOCS = $$PWD/doc/qtquick.qdocconf
21 QMAKE_DOCS_INDEX = ../../doc
22
23 # private dependencies
24 QT += v8-private network
25
26 include(util/util.pri)
27 include(scenegraph/scenegraph.pri)
28 include(items/items.pri)
29 include(designer/designer.pri)
30
31 HEADERS += \
32     qtquickglobal.h \
33     qtquickglobal_p.h \
34     qtquick2_p.h
35
36 SOURCES += qtquick2.cpp
37
38 mac {
39     # FIXME: this is a workaround for broken qmake logic in qtAddModule()
40     # This function refuses to use frameworks unless the framework exists on
41     # the filesystem at the time qmake is run, resulting in a build failure
42     # if QtQuick is qmaked before QtQml is built and frameworks are
43     # in use. qtAddLibrary() contains correct logic to deal with this, so
44     # we'll explicitly call that for now.
45     load(qt)
46     LIBS -= -lQtQml        # in non-framework builds, these should be re-added
47     LIBS -= -lQtQml_debug  # within the qtAddLibrary if appropriate, so no
48     qtAddLibrary(QtQml)    # harm done :)
49 }
50