summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/opietoday/app.pro
blob: 73e03efbc97d0839985d00fd4dec2d5f09cdfcd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
TEMPLATE	= lib
CONFIG		= qt dll qtopia warn_on release zecke-libqpe zecke-libopie opie-todayplugin
HEADERS		= %{APPNAMELC}.h %{APPNAMELC}widget.h %{APPNAMELC}impl.h
SOURCES		= %{APPNAMELC}.cpp %{APPNAMELC}widget.cpp %{APPNAMELC}impl.cpp
TARGET		= %{APPNAMELC}


QUICK_SPEC_FOO = $$(OPIE_BUILD_QUICK_APP)
tqcontains( TEMPLATE, quick-template ){
        tqcontains( QUICK_SPEC_FOO, quick-app-lib ){
                message( "foo" )
                system( rm $$TARGET )
                system( ln -s $$(OPIEDIR)/bin/quicklauncher $$TARGET)
		DEFINES += OPIE_APP_INTERFACE
                TEMPLATE = lib
                CONFIG += dll
        }else{
                LI = $$join( TARGET, "lib", "lib", ".so*" )
                system( rm $$LI )
                TEMPLATE = app
        }
}


QMAKE_LIBDIR= $$(OPIEDIR)/lib
OPIE-SPEC=6

zecke-libqpe {
	INCLUDEPATH += $$(OPIEDIR)/include
	LIBS += -lqpe
	DEPENDPATH += $$(OPIEDIR)/include
}

zecke-libopie {
	INCLUDEPATH += $$(OPIEDIR)/include
	DEPENDPATH += $$(OPIEDIR)/include
	LIBS += -lopie
}