cleanup project files
[staging/HomeScreen.git] / SampleAppTimeDate / SampleAppTimeDate.pro
index 0fc8086..245a92e 100644 (file)
@@ -1,45 +1,33 @@
-#-------------------------------------------------
+# 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
 #
-#-------------------------------------------------
-
-QT       += core dbus
-QT       -= gui
-
-TARGET = SampleAppTimeDate
-CONFIG   += console
-CONFIG   -= app_bundle
+#      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.
 
 TEMPLATE = app
+TARGET = SampleAppTimeDate
+QT = dbus
 
+include(../interfaces/interfaces.pri)
 
 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
-    src/timedateprovider.h
+    src/timedateprovider.hpp
 
 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