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