source: src/app/app.pro @ 4b8ce66

qt5
Last change on this file since 4b8ce66 was 408bf66, checked in by Philipp Spitzer <philipp@…>, 11 years ago

Removed dbus dependency on non-maemo platforms.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1include(../global.pri)
2TEMPLATE = app
3TARGET = fosdem-schedule
4DESTDIR = ../bin
5QT += sql xml network
6CONFIG(maemo5) {
7    QT += maemo5 dbus
8}
9
10# module dependencies
11LIBS += -L$$DESTDIR -lgui -lmvc -lsql
12INCLUDEPATH += ../gui ../sql ../mvc ../orm
13DEPENDPATH += . ../gui
14TARGETDEPS += $$DESTDIR/libmvc.a $$DESTDIR/libgui.a $$DESTDIR/libsql.a
15maemo {
16    LIBS += -L$$DESTDIR -lqalarm -lalarm
17    INCLUDEPATH += ../alarm
18    DEPENDPATH +=  ../alarm
19    TARGETDEPS += $$DESTDIR/libqalarm.a
20    HEADERS += alarmdbus.h \
21        alarmdbusadaptorp.h
22    SOURCES += alarmdbus.cpp \
23        alarmdbusadaptor.cpp
24}
25
26HEADERS += appsettings.h \
27        application.h
28
29SOURCES += main.cpp \
30           application.cpp \
31           appsettings.cpp
32
33RESOURCES += ../icons.qrc \
34             ../maps.qrc
35
36# qmake cannot work properly if the resource file does not exist already
37system(rm -f ../fosdem.sqlite && sqlite3 ../fosdem.sqlite <../fosdem.sql) {
38 RESOURCES += ../db.qrc
39} else {
40 error(sqlite3 failed)
41}
42
43db.target = ../fosdem.sqlite
44db.depends = ../fosdem.sql
45db.commands = rm -f $$db.target && sqlite3 $$db.target <$$db.depends
46QMAKE_EXTRA_TARGETS += db
47
48# instalation related
49
50PREFIX = /usr/bin
51INSTALLS = target
52target.path = $$PREFIX
53
Note: See TracBrowser for help on using the repository browser.