summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/opieapp/app.pro
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/app_templates/opieapp/app.pro')
-rw-r--r--languages/cpp/app_templates/opieapp/app.pro38
1 files changed, 38 insertions, 0 deletions
diff --git a/languages/cpp/app_templates/opieapp/app.pro b/languages/cpp/app_templates/opieapp/app.pro
new file mode 100644
index 00000000..f4111696
--- /dev/null
+++ b/languages/cpp/app_templates/opieapp/app.pro
@@ -0,0 +1,38 @@
+TEMPLATE = quick-template
+CONFIG = qt qtopia warn_on release zecke-libqpe zecke-libopie
+HEADERS = %{APPNAMELC}.h
+SOURCES = %{APPNAMELC}.cpp
+INTERFACES = %{APPNAMELC}base.ui
+TARGET = %{APPNAMELC}
+
+QMAKE_LIBDIR = $(OPIEDIR)/lib
+OPIE-SPEC=6
+
+QUICK_SPEC_FOO = $$(OPIE_BUILD_QUICK_APP)
+contains( TEMPLATE, quick-template ){
+ contains( 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
+ }
+}
+
+
+zecke-libqpe {
+ INCLUDEPATH += $(OPIEDIR)/include
+ LIBS += -lqpe
+ DEPENDPATH += $(OPIEDIR)/include
+}
+
+zecke-libopie {
+ INCLUDEPATH += $(OPIEDIR)/include
+ DEPENDPATH += $(OPIEDIR)/include
+ LIBS += -lopie
+}