c59f1af07dfbb89ebc43e5de1e42ceb82d1eb84e
[profile/ivi/qtdeclarative.git] / src / qtquick1 / qtquick1.pro
1 load(qt_module)
2
3 TARGET     = QtQuick1
4 QPRO_PWD   = $$PWD
5
6 CONFIG += module
7 CONFIG += dll warn_on
8 MODULE_PRI += ../../modules/qt_qtquick1.pri
9
10 QT += testlib-private declarative testlib declarative-private core-private gui-private network widgets-private v8-private
11 DEFINES += QT_BUILD_QTQUICK1_LIB QT_NO_URL_CAST_FROM_STRING
12
13 load(qt_module_config)
14
15 # Install qtquick1.prf into the Qt mkspecs so that "CONFIG += qtquick1"
16 # can be used in customer applications to build against QtQuick 1.
17 feature.path = $$[QT_INSTALL_DATA]/mkspecs/features
18 feature.files = $$PWD/features/qtquick1.prf
19 INSTALLS += feature
20
21 win32-msvc*:DEFINES *= _CRT_SECURE_NO_WARNINGS
22
23 symbian {
24     DEFINES += QT_MAKEDLL
25     CONFIG += epocallowdlldata
26     contains(QT_EDITION, OpenSource) {
27         TARGET.CAPABILITY = LocalServices NetworkServices ReadUserData UserEnvironment WriteUserData
28     } else {
29         TARGET.CAPABILITY = All -Tcb
30     }
31 }
32
33 #INCLUDEPATH += $$PWD/QtQuick1
34 #INCLUDEPATH += $$PWD
35
36 include(util/util.pri)
37 include(graphicsitems/graphicsitems.pri)
38
39 HEADERS += qtquick1_p.h
40 SOURCES += qtquick1.cpp
41
42 mac {
43     # FIXME: this is a workaround for broken qmake logic in qtAddModule()
44     # This function refuses to use frameworks unless the framework exists on
45     # the filesystem at the time qmake is run, resulting in a build failure
46     # if QtQuick1 is qmaked before QtDeclarative is built and frameworks are
47     # in use. qtAddLibrary() contains correct logic to deal with this, so
48     # we'll explicitly call that for now.
49     load(qt)
50     LIBS -= -lQtDeclarative        # in non-framework builds, these should be re-added
51     LIBS -= -lQtDeclarative_debug  # within the qtAddLibrary if appropriate, so no
52     qtAddLibrary(QtDeclarative)    # harm done :)
53 }
54