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