Support for color schemes
[staging/HomeScreen.git] / SampleAppTimeDate / SampleAppTimeDate.pro
index 0fc8086..1ae61dd 100644 (file)
@@ -1,8 +1,16 @@
-#-------------------------------------------------
+# Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH
 #
-# Project created by QtCreator 2016-06-21T13:46:39
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
 #
-#-------------------------------------------------
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
 
 QT       += core dbus
 QT       -= gui
@@ -16,30 +24,19 @@ TEMPLATE = app
 
 SOURCES += src/main.cpp \
     src/timedateprovider.cpp
-GENERATED_SOURCES += \
-    $$OUT_PWD/statusbar_proxy.cpp             #generated dbus proxy
 
 HEADERS += \
-    $$OUT_PWD/statusbar_proxy.h \           #generated dbus proxy
+    $$OUT_PWD/../interfaces/statusbar_proxy.h \          #generated dbus proxy
     src/timedateprovider.h
 
+INCLUDEPATH +=  $$OUT_PWD/../interfaces
+
+LIBS += -L$$OUT_PWD/../interfaces -linterfaces
+
 OTHER_FILES += \
-    ../interfaces/statusbar.xml \
     README.md
 
 # remove generated files
 QMAKE_CLEAN += -r \
-    $$OUT_PWD/HomeScreen \
-    $$OUT_PWD/Makefile \
-    $$OUT_PWD/statusbar_proxy.h \
-    $$OUT_PWD/statusbar_proxy.cpp \
-    $$OUT_PWD/statusbar_proxy.moc
-
-# Create custom targets for generating dbus proxy
-# for statusbar
-statusbargenerateproxy.target = $$OUT_PWD/statusbar_proxy.cpp
-unix:statusbargenerateproxy.commands = "$(OE_QMAKE_PATH_EXTERNAL_HOST_BINS)qdbusxml2cpp -m -p statusbar_proxy $$_PRO_FILE_PWD_/../interfaces/statusbar.xml; $(OE_QMAKE_PATH_EXTERNAL_HOST_BINS)moc $$OUT_PWD/statusbar_proxy.h -o $$OUT_PWD/statusbar_proxy.moc"
-PRE_TARGETDEPS += \
-    $$OUT_PWD/statusbar_proxy.cpp
-QMAKE_EXTRA_TARGETS += \
-    statusbargenerateproxy
+    $$OUT_PWD/SampleAppTimeDate \
+    $$OUT_PWD/Makefile