Fixed to compile with Qt Embedded.

Fixed to compile with Qt Embedded.

HEADERS  += qxtapplication.h
HEADERS  += qxtapplication_p.h
HEADERS  += qxtbasespinbox.h
HEADERS  += qxtcheckcombobox.h
HEADERS  += qxtcheckcombobox_p.h
HEADERS  += qxtconfigdialog.h
HEADERS  += qxtconfigdialog_p.h
HEADERS  += qxtconfirmationmessage.h
HEADERS  += qxtcountrycombobox.h
HEADERS  += qxtcountrycombobox_p.h
HEADERS  += qxtcountrymodel.h
HEADERS  += qxtcountrymodel_p.h
HEADERS  += qxtdockwidget.h
HEADERS  += qxtflowview.h
HEADERS  += qxtflowview_p.h
HEADERS  += qxtgui.h
HEADERS  += qxtglobalshortcut.h
HEADERS  += qxtglobalshortcut_p.h
HEADERS  += qxtgroupbox.h
HEADERS  += qxtheaderview.h
HEADERS  += qxtitemdelegate.h
HEADERS  += qxtitemdelegate_p.h
HEADERS  += qxtitemeditorcreator.h
HEADERS  += qxtitemeditorcreatorbase.h
HEADERS  += qxtlabel.h
HEADERS  += qxtlistwidget.h
HEADERS  += qxtlistwidget_p.h
HEADERS  += qxtlistwidgetitem.h
HEADERS  += qxtlanguagecombobox.h
HEADERS  += qxtlanguagecombobox_p.h
HEADERS  += qxtnativeeventfilter.h
HEADERS  += qxtprogresslabel.h
HEADERS  += qxtproxystyle.h
HEADERS  += qxtpushbutton.h
HEADERS  += qxtspanslider.h
HEADERS  += qxtspanslider_p.h
HEADERS  += qxtstandarditemeditorcreator.h
HEADERS  += qxtstars.h
HEADERS  += qxtstringspinbox.h
HEADERS  += qxtstringvalidator.h
HEADERS  += qxtstringvalidator_p.h
HEADERS  += qxttabbar.h
HEADERS  += qxttabbar_p.h
HEADERS  += qxttablewidget.h
HEADERS  += qxttablewidget_p.h
HEADERS  += qxttablewidgetitem.h
HEADERS  += qxttabwidget.h
HEADERS  += qxttabwidget_p.h
HEADERS  += qxttooltip.h
HEADERS  += qxttooltip_p.h
HEADERS  += qxttreewidget.h
HEADERS  += qxttreewidget_p.h
HEADERS  += qxttreewidgetitem.h
HEADERS  += qxtwindowsystem.h

HEADERS  += qxtscheduleheaderwidget.h
HEADERS  += qxtscheduleitemdelegate.h
HEADERS  += qxtscheduleview.h
HEADERS  += qxtscheduleviewheadermodel_p.h
HEADERS  += qxtscheduleview_p.h
HEADERS  += qxtstyleoptionscheduleviewitem.h

SOURCES  += qxtapplication.cpp
SOURCES  += qxtbasespinbox.cpp
SOURCES  += qxtcheckcombobox.cpp
SOURCES  += qxtconfigdialog.cpp
SOURCES  += qxtconfirmationmessage.cpp
SOURCES  += qxtcountrymodel.cpp
SOURCES  += qxtcountrycombobox.cpp
SOURCES  += qxtdockwidget.cpp
SOURCES  += qxtflowview.cpp
SOURCES  += qxtflowview_p.cpp
SOURCES  += qxtglobalshortcut.cpp
SOURCES  += qxtgroupbox.cpp
SOURCES  += qxtheaderview.cpp
SOURCES  += qxtitemdelegate.cpp
SOURCES  += qxtlabel.cpp
SOURCES  += qxtlistwidget.cpp
SOURCES  += qxtlistwidgetitem.cpp
SOURCES  += qxtlanguagecombobox.cpp
SOURCES  += qxtprogresslabel.cpp
SOURCES  += qxtproxystyle.cpp
SOURCES  += qxtpushbutton.cpp
SOURCES  += qxtspanslider.cpp
SOURCES  += qxtstars.cpp
SOURCES  += qxtstringspinbox.cpp
SOURCES  += qxtstringvalidator.cpp
SOURCES	 += qxttabbar.cpp
SOURCES  += qxttablewidget.cpp
SOURCES  += qxttablewidgetitem.cpp
SOURCES  += qxttabwidget.cpp
SOURCES  += qxttooltip.cpp
SOURCES  += qxttreewidget.cpp
SOURCES  += qxttreewidgetitem.cpp
SOURCES  += qxtwindowsystem.cpp

SOURCES  += qxtscheduleitemdelegate.cpp
SOURCES  += qxtscheduleview.cpp
SOURCES  += qxtscheduleview_p.cpp
SOURCES  += qxtscheduleviewheadermodel_p.cpp
SOURCES  += qxtstyleoptionscheduleviewitem.cpp
SOURCES  += qxtscheduleheaderwidget.cpp

unix:x11:!macx:  SOURCES += qxtapplication_x11.cpp qxtwindowsystem_x11.cpp qxtglobalshortcut_x11.cpp
macx {
       SOURCES += qxtapplication_mac.cpp
       SOURCES += qxtglobalshortcut_mac.cpp
       SOURCES -= qxtwindowsystem.cpp
       HEADERS -= qxtwindowsystem.h
}
win32: SOURCES += qxtapplication_win.cpp qxtwindowsystem_win.cpp qxtglobalshortcut_win.cpp

RESOURCES += resources.qrc

HEADERS  += qxtapplication.h
HEADERS  += qxtapplication_p.h
HEADERS  += qxtbasespinbox.h
HEADERS  += qxtcheckcombobox.h
HEADERS  += qxtcheckcombobox_p.h
HEADERS  += qxtconfigdialog.h
HEADERS  += qxtconfigdialog_p.h
HEADERS  += qxtconfirmationmessage.h
HEADERS  += qxtcountrycombobox.h
HEADERS  += qxtcountrycombobox_p.h
HEADERS  += qxtcountrymodel.h
HEADERS  += qxtcountrymodel_p.h
HEADERS  += qxtdockwidget.h
HEADERS  += qxtflowview.h
HEADERS  += qxtflowview_p.h
HEADERS  += qxtgui.h
HEADERS  += qxtglobalshortcut.h
HEADERS  += qxtglobalshortcut_p.h
HEADERS  += qxtgroupbox.h
HEADERS  += qxtheaderview.h
HEADERS  += qxtitemdelegate.h
HEADERS  += qxtitemdelegate_p.h
HEADERS  += qxtitemeditorcreator.h
HEADERS  += qxtitemeditorcreatorbase.h
HEADERS  += qxtlabel.h
HEADERS  += qxtlistwidget.h
HEADERS  += qxtlistwidget_p.h
HEADERS  += qxtlistwidgetitem.h
HEADERS  += qxtlanguagecombobox.h
HEADERS  += qxtlanguagecombobox_p.h
HEADERS  += qxtnativeeventfilter.h
HEADERS  += qxtprogresslabel.h
HEADERS  += qxtproxystyle.h
HEADERS  += qxtpushbutton.h
HEADERS  += qxtspanslider.h
HEADERS  += qxtspanslider_p.h
HEADERS  += qxtstandarditemeditorcreator.h
HEADERS  += qxtstars.h
HEADERS  += qxtstringspinbox.h
HEADERS  += qxtstringvalidator.h
HEADERS  += qxtstringvalidator_p.h
HEADERS  += qxttabbar.h
HEADERS  += qxttabbar_p.h
HEADERS  += qxttablewidget.h
HEADERS  += qxttablewidget_p.h
HEADERS  += qxttablewidgetitem.h
HEADERS  += qxttabwidget.h
HEADERS  += qxttabwidget_p.h
HEADERS  += qxttooltip.h
HEADERS  += qxttooltip_p.h
HEADERS  += qxttreewidget.h
HEADERS  += qxttreewidget_p.h
HEADERS  += qxttreewidgetitem.h
HEADERS  += qxtwindowsystem.h

HEADERS  += qxtscheduleheaderwidget.h
HEADERS  += qxtscheduleitemdelegate.h
HEADERS  += qxtscheduleview.h
HEADERS  += qxtscheduleviewheadermodel_p.h
HEADERS  += qxtscheduleview_p.h
HEADERS  += qxtstyleoptionscheduleviewitem.h

SOURCES  += qxtapplication.cpp
SOURCES  += qxtbasespinbox.cpp
SOURCES  += qxtcheckcombobox.cpp
SOURCES  += qxtconfigdialog.cpp
SOURCES  += qxtconfirmationmessage.cpp
SOURCES  += qxtcountrymodel.cpp
SOURCES  += qxtcountrycombobox.cpp
SOURCES  += qxtdockwidget.cpp
SOURCES  += qxtflowview.cpp
SOURCES  += qxtflowview_p.cpp
SOURCES  += qxtglobalshortcut.cpp
SOURCES  += qxtgroupbox.cpp
SOURCES  += qxtheaderview.cpp
SOURCES  += qxtitemdelegate.cpp
SOURCES  += qxtlabel.cpp
SOURCES  += qxtlistwidget.cpp
SOURCES  += qxtlistwidgetitem.cpp
SOURCES  += qxtlanguagecombobox.cpp
SOURCES  += qxtprogresslabel.cpp
SOURCES  += qxtproxystyle.cpp
SOURCES  += qxtpushbutton.cpp
SOURCES  += qxtspanslider.cpp
SOURCES  += qxtstars.cpp
SOURCES  += qxtstringspinbox.cpp
SOURCES  += qxtstringvalidator.cpp
SOURCES	 += qxttabbar.cpp
SOURCES  += qxttablewidget.cpp
SOURCES  += qxttablewidgetitem.cpp
SOURCES  += qxttabwidget.cpp
SOURCES  += qxttooltip.cpp
SOURCES  += qxttreewidget.cpp
SOURCES  += qxttreewidgetitem.cpp
SOURCES  += qxtwindowsystem.cpp

SOURCES  += qxtscheduleitemdelegate.cpp
SOURCES  += qxtscheduleview.cpp
SOURCES  += qxtscheduleview_p.cpp
SOURCES  += qxtscheduleviewheadermodel_p.cpp
SOURCES  += qxtstyleoptionscheduleviewitem.cpp
SOURCES  += qxtscheduleheaderwidget.cpp

unix:!macx:  SOURCES += qxtapplication_x11.cpp qxtwindowsystem_x11.cpp qxtglobalshortcut_x11.cpp
macx {
       SOURCES += qxtapplication_mac.cpp
       SOURCES += qxtglobalshortcut_mac.cpp
       SOURCES -= qxtwindowsystem.cpp
       HEADERS -= qxtwindowsystem.h
}
win32: SOURCES += qxtapplication_win.cpp qxtwindowsystem_win.cpp qxtglobalshortcut_win.cpp

RESOURCES += resources.qrc


Fix a broken merge.

Fix a broken merge.

symbian: {
    exists($${EPOCROOT}epoc32/data/z/system/install/Symbianv4.0.sis) {
        message("S^3 PS3 or later platform")
        DEFINES += SYMBIAN_BACKEND_USE_SQLITE

        # This will enable signals to be emitted sychronously with every
        # operation instead of them beeing emitted when database event observer
        # interface if called (HandleDatabaseEventL). This is an optimization
        # for S^3 PS3+ platform. However enabling this will cause some problems
        # with signals concerning adding/removing groups/group participants.
        DEFINES += SYMBIAN_BACKEND_SIGNAL_EMISSION_TWEAK
    } else {
        message("S^3 PS2 or older platform")
    }

    contains(S60_VERSION, 3.2) {
        DEFINES += SYMBIAN_BACKEND_S60_VERSION_32
    }
}

symbian: {
    exists($${EPOCROOT}epoc32/data/z/system/install/Symbianv4.0.sis) {
        message("S^3 PS3 or later platform")
        DEFINES += SYMBIAN_BACKEND_USE_SQLITE

        # This will enable signals to be emitted sychronously with every
        # operation instead of them beeing emitted when database event observer
        # interface if called (HandleDatabaseEventL). This is an optimization
        # for S^3 PS3+ platform. However enabling this will cause some problems
        # with signals concerning adding/removing groups/group participants.
        DEFINES += SYMBIAN_BACKEND_SIGNAL_EMISSION_TWEAK
    #} else {
    #    message("S^3 PS2 or older platform")
    #}

    #contains(S60_VERSION, 3.2) {
    #	DEFINES += SYMBIAN_BACKEND_S60_VERSION_32
    #}
}


Update LD_LIBRARY_PATH in tests to reflect build dir changes

RevBy: Krzesimir Nowak
Much simpler now, and less likely that some directory is
missed and that we acidentially test system libraries instead
of in-tree libraries.

Full, original commit at 947fee0348f6615ef88385bbd01605d9b73c485b in maliit-framework

contains(QT_MAJOR_VERSION, 4) {
    unittest_arguments += -graphicssystem raster
}

qws {
    unittest_arguments += -qws
}

QMAKE_EXTRA_TARGETS += check
check.target = check
check.commands = \
    TESTING_IN_SANDBOX=1 \
    TESTPLUGIN_PATH=../plugins \
    TESTDATA_PATH=$$IN_PWD \
    LD_LIBRARY_PATH=../../lib:../../lib/plugins:../plugins:$(LD_LIBRARY_PATH) \
    ./$$TARGET $$unittest_arguments

check.depends += $$TARGET

QMAKE_EXTRA_TARGETS += check-xml
check-xml.target = check-xml
check-xml.commands = ../rt.sh $$TARGET
check-xml.depends += $$TARGET

# coverage flags are off per default, but can be turned on via qmake COV_OPTION=on
for(OPTION,$$list($$lower($$COV_OPTION))){
    isEqual(OPTION, on){
        QMAKE_CXXFLAGS += -ftest-coverage -fprofile-arcs
        LIBS += -lgcov
    }
}
QMAKE_CLEAN += $$OBJECTS_DIR/*.gcno $$OBJECTS_DIR/*.gcda

contains(QT_MAJOR_VERSION, 4) {
    unittest_arguments += -graphicssystem raster
}

qws {
    unittest_arguments += -qws
}

QMAKE_EXTRA_TARGETS += check
check.target = check
check.commands = \
    TESTING_IN_SANDBOX=1 \
    TESTPLUGIN_PATH=../plugins \
    TESTDATA_PATH=$$IN_PWD \
    LD_LIBRARY_PATH=../../connection:../../maliit-plugins-quick/input-method:../../maliit-plugins-quick/plugin-factory:../../src:../../input-context/input-context-plugin:../../maliit:../../maliit-settings:../plugins:$(LD_LIBRARY_PATH) \
    ./$$TARGET $$unittest_arguments

check.depends += $$TARGET

QMAKE_EXTRA_TARGETS += check-xml
check-xml.target = check-xml
check-xml.commands = ../rt.sh $$TARGET
check-xml.depends += $$TARGET

# coverage flags are off per default, but can be turned on via qmake COV_OPTION=on
for(OPTION,$$list($$lower($$COV_OPTION))){
    isEqual(OPTION, on){
        QMAKE_CXXFLAGS += -ftest-coverage -fprofile-arcs
        LIBS += -lgcov
    }
}
QMAKE_CLEAN += $$OBJECTS_DIR/*.gcno $$OBJECTS_DIR/*.gcda


Updated qt project version to 3.3.0

Updated qt project version to 3.3.0

# Versions
KINC_MAJOR_VERSION = 3
KINC_MINOR_VERSION = 3
KINC_REVISION = 0

VERSION = $${KINC_MAJOR_VERSION}.$${KINC_MINOR_VERSION}.$${KINC_REVISION}

# Version compiler defines
DEFINES += \
    QT_DEPRECATED_WARNINGS \
    KINC_MAJOR_VERSION=$${KINC_MAJOR_VERSION} \
    KINC_MINOR_VERSION=$${KINC_MINOR_VERSION} \
    KINC_REVISION=$${KINC_REVISION}

# Basic settings
QT += core
QMAKE_CXX = mpic++
CONFIG += c++11

# Compiler flags
QMAKE_CXXFLAGS += -Wno-ignored-attributes

# Preprocessor defines
DEFINES += \
    QT_DEPRECATED_WARNINGS \
    KINC_MAJOR_VERSION=$${KINC_MAJOR_VERSION} \
    KINC_MINOR_VERSION=$${KINC_MINOR_VERSION} \
    KINC_REVISION=$${KINC_REVISION}

# Default settings for optional linker flags
isEmpty(LINK_LAPACKE) { LINK_LAPACKE = 1 }
isEmpty(LINK_MPI_CXX) { LINK_MPI_CXX = 1 }

# Include directories
isEmpty($$(CUDADIR)) {
   CUDADIR = /usr/local/cuda
}
else {
   CUDADIR = $$(CUDADIR)
}

INCLUDEPATH += $${CUDADIR}/include
DEPENDPATH += $${CUDADIR}/include

INCLUDEPATH += /usr/include/openblas

# External libraries
LIBS += \
    -L$${PWD}/../build/libs -lkinccore \
    -lacecore \
    -lgsl -lopenblas \
    -L$${CUDADIR}/lib64 -lcuda -lnvrtc -lcusolver -fopenmp \
    -lOpenCL -lmpi

equals(LINK_LAPACKE, 1) { LIBS += -llapacke }
equals(LINK_MPI_CXX, 1) { LIBS += -lmpi_cxx }

# Resource files
RESOURCES += \
    ../resources.qrc

# Versions
KINC_MAJOR_VERSION = 3
KINC_MINOR_VERSION = 2
KINC_REVISION = 2

VERSION = $${KINC_MAJOR_VERSION}.$${KINC_MINOR_VERSION}.$${KINC_REVISION}

# Version compiler defines
DEFINES += \
    QT_DEPRECATED_WARNINGS \
    KINC_MAJOR_VERSION=$${KINC_MAJOR_VERSION} \
    KINC_MINOR_VERSION=$${KINC_MINOR_VERSION} \
    KINC_REVISION=$${KINC_REVISION}

# Basic settings
QT += core
QMAKE_CXX = mpic++
CONFIG += c++11

# Compiler flags
QMAKE_CXXFLAGS += -Wno-ignored-attributes

# Preprocessor defines
DEFINES += \
    QT_DEPRECATED_WARNINGS \
    KINC_MAJOR_VERSION=$${KINC_MAJOR_VERSION} \
    KINC_MINOR_VERSION=$${KINC_MINOR_VERSION} \
    KINC_REVISION=$${KINC_REVISION}

# Default settings for optional linker flags
isEmpty(LINK_LAPACKE) { LINK_LAPACKE = 1 }
isEmpty(LINK_MPI_CXX) { LINK_MPI_CXX = 1 }

# Include directories
isEmpty($$(CUDADIR)) {
   CUDADIR = /usr/local/cuda
}
else {
   CUDADIR = $$(CUDADIR)
}

INCLUDEPATH += $${CUDADIR}/include
DEPENDPATH += $${CUDADIR}/include

INCLUDEPATH += /usr/include/openblas

# External libraries
LIBS += \
    -L$${PWD}/../build/libs -lkinccore \
    -lacecore \
    -lgsl -lopenblas \
    -L$${CUDADIR}/lib64 -lcuda -lnvrtc -lcusolver -fopenmp \
    -lOpenCL -lmpi

equals(LINK_LAPACKE, 1) { LIBS += -llapacke }
equals(LINK_MPI_CXX, 1) { LIBS += -lmpi_cxx }

# Resource files
RESOURCES += \
    ../resources.qrc


Fix windows install

Fix windows install

Copy platforms plugins to install

# -------------------------------------------------
# QGroundControl - Micro Air Vehicle Groundstation
# Please see our website at <http://qgroundcontrol.org>
# Maintainer:
# Lorenz Meier <lm@inf.ethz.ch>
# (c) 2009-2011 QGroundControl Developers
# This file is part of the open groundstation project
# QGroundControl is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# QGroundControl is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with QGroundControl. If not, see <http://www.gnu.org/licenses/>.
# -------------------------------------------------

QMAKE_POST_LINK += echo "Copying files"

#
# Copy the application resources to the associated place alongside the application
#

LinuxBuild {
    DESTDIR_COPY_RESOURCE_LIST = $$DESTDIR
}

MacBuild {
    DESTDIR_COPY_RESOURCE_LIST = $$DESTDIR/$${TARGET}.app/Contents/MacOS
}

# Windows version of QMAKE_COPY_DIR of course doesn't work the same as Mac/Linux. It will only
# copy the contents of the source directory. It doesn't create the top level source directory
# in the target.
WindowsBuild {
    # Make sure to keep both side of this if using the same set of directories
	DESTDIR_COPY_RESOURCE_LIST = $$replace(DESTDIR,"/","\\")
	BASEDIR_COPY_RESOURCE_LIST = $$replace(BASEDIR,"/","\\")
    QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY_DIR \"$$BASEDIR_COPY_RESOURCE_LIST\\files\" \"$$DESTDIR_COPY_RESOURCE_LIST\\files\"
    QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY_DIR \"$$BASEDIR_COPY_RESOURCE_LIST\\qml\" \"$$DESTDIR_COPY_RESOURCE_LIST\\qml\"
    QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY_DIR \"$$BASEDIR_COPY_RESOURCE_LIST\\data\" \"$$DESTDIR_COPY_RESOURCE_LIST\\data\"
} else {
    # Make sure to keep both side of this if using the same set of directories
    QMAKE_POST_LINK += && $$QMAKE_COPY_DIR $$BASEDIR/files $$DESTDIR_COPY_RESOURCE_LIST
    QMAKE_POST_LINK += && $$QMAKE_COPY_DIR $$BASEDIR/qml $$DESTDIR_COPY_RESOURCE_LIST
    QMAKE_POST_LINK += && $$QMAKE_COPY_DIR $$BASEDIR/data $$DESTDIR_COPY_RESOURCE_LIST
}

#
# Perform platform specific setup
#

MacBuild {
	# Copy non-standard libraries and frameworks into app package
    QMAKE_POST_LINK += && $$QMAKE_COPY_DIR $$BASEDIR/libs/lib/mac64/lib $$DESTDIR/$${TARGET}.app/Contents/libs
    QMAKE_POST_LINK += && $$QMAKE_COPY_DIR -L $$BASEDIR/libs/lib/Frameworks $$DESTDIR/$${TARGET}.app/Contents/Frameworks

	# Fix library paths inside executable

    INSTALL_NAME_TARGET = $$DESTDIR/$${TARGET}.app/Contents/MacOS/$${TARGET}
    INSTALL_NAME_LIB_LIST = \
        libOpenThreads.dylib \
        libosg.dylib \
        libosgViewer.dylib \
        libosgGA.dylib \
        libosgDB.dylib \
        libosgText.dylib \
        libosgWidget.dylib
    for(INSTALL_NAME_LIB, INSTALL_NAME_LIB_LIST) {
        QMAKE_POST_LINK += && install_name_tool -change $$INSTALL_NAME_LIB "@executable_path/../libs/$${INSTALL_NAME_LIB}" $$INSTALL_NAME_TARGET
    }

	# Fix library paths within libraries (inter-library dependencies)

	# OSG GA LIBRARY
    INSTALL_NAME_TARGET = $$DESTDIR/$${TARGET}.app/Contents/libs/libosgGA.dylib
    INSTALL_NAME_LIB_LIST = \
        libOpenThreads.dylib \
        libosg.dylib \
        libosgGA.dylib \
        libosgDB.dylib \
        libosgUtil.dylib
    for(INSTALL_NAME_LIB, INSTALL_NAME_LIB_LIST) {
        QMAKE_POST_LINK += && install_name_tool -change $$INSTALL_NAME_LIB "@executable_path/../libs/$${INSTALL_NAME_LIB}" $$INSTALL_NAME_TARGET
    }

	# OSG DB LIBRARY
    INSTALL_NAME_TARGET = $$DESTDIR/$${TARGET}.app/Contents/libs/libosgDB.dylib
    INSTALL_NAME_LIB_LIST = \
        libOpenThreads.dylib \
        libosg.dylib \
        libosgDB.dylib \
        libosgUtil.dylib
    for(INSTALL_NAME_LIB, INSTALL_NAME_LIB_LIST) {
        QMAKE_POST_LINK += && install_name_tool -change $$INSTALL_NAME_LIB "@executable_path/../libs/$${INSTALL_NAME_LIB}" $$INSTALL_NAME_TARGET
    }

	# OSG TEXT LIBRARY
    INSTALL_NAME_TARGET = $$DESTDIR/$${TARGET}.app/Contents/libs/libosgText.dylib
    INSTALL_NAME_LIB_LIST = \
        libOpenThreads.dylib \
        libosg.dylib \
        libosgDB.dylib \
        libosgUtil.dylib \
        libosgText.dylib
    for(INSTALL_NAME_LIB, INSTALL_NAME_LIB_LIST) {
        QMAKE_POST_LINK += && install_name_tool -change $$INSTALL_NAME_LIB "@executable_path/../libs/$${INSTALL_NAME_LIB}" $$INSTALL_NAME_TARGET
    }

	# OSG UTIL LIBRARY
    INSTALL_NAME_TARGET = $$DESTDIR/$${TARGET}.app/Contents/libs/libosgUtil.dylib
    INSTALL_NAME_LIB_LIST = \
        libOpenThreads.dylib \
        libosg.dylib
    for(INSTALL_NAME_LIB, INSTALL_NAME_LIB_LIST) {
        QMAKE_POST_LINK += && install_name_tool -change $$INSTALL_NAME_LIB "@executable_path/../libs/$${INSTALL_NAME_LIB}" $$INSTALL_NAME_TARGET
    }

	# OSG VIEWER LIBRARY
    INSTALL_NAME_TARGET = $$DESTDIR/$${TARGET}.app/Contents/libs/libosgViewer.dylib
    INSTALL_NAME_LIB_LIST = \
        libOpenThreads.dylib \
        libosg.dylib \
        libosgGA.dylib \
        libosgDB.dylib \
        libosgUtil.dylib \
        libosgText.dylib
    for(INSTALL_NAME_LIB, INSTALL_NAME_LIB_LIST) {
        QMAKE_POST_LINK += && install_name_tool -change $$INSTALL_NAME_LIB "@executable_path/../libs/$${INSTALL_NAME_LIB}" $$INSTALL_NAME_TARGET
    }

	# OSG WIDGET LIBRARY
    INSTALL_NAME_TARGET = $$DESTDIR/$${TARGET}.app/Contents/libs/libosgWidget.dylib
    INSTALL_NAME_LIB_LIST = \
        libOpenThreads.dylib \
        libosg.dylib \
        libosgGA.dylib \
        libosgDB.dylib \
        libosgUtil.dylib \
        libosgText.dylib \
        libosgViewer.dylib
    for(INSTALL_NAME_LIB, INSTALL_NAME_LIB_LIST) {
        QMAKE_POST_LINK += && install_name_tool -change $$INSTALL_NAME_LIB "@executable_path/../libs/$${INSTALL_NAME_LIB}" $$INSTALL_NAME_TARGET
    }

	# CORE OSG LIBRARY
    QMAKE_POST_LINK += && install_name_tool -change libOpenThreads.dylib "@executable_path/../libs/libOpenThreads.dylib" $$DESTDIR/$${TARGET}.app/Contents/libs/libosg.dylib

    # SDL Framework
    QMAKE_POST_LINK += && install_name_tool -change "@rpath/SDL.framework/Versions/A/SDL" "@executable_path/../Frameworks/SDL.framework/Versions/A/SDL" $$DESTDIR/$${TARGET}.app/Contents/MacOS/$${TARGET}

}

WindowsBuild {
	BASEDIR_WIN = $$replace(BASEDIR, "/", "\\")
	DESTDIR_WIN = $$replace(DESTDIR, "/", "\\")
	D_DIR = $$[QT_INSTALL_LIBEXECS]
	DLL_DIR = $$replace(D_DIR, "/", "\\")

	# Copy dependencies
	DebugBuild: DLL_QT_DEBUGCHAR = "d"
    ReleaseBuild: DLL_QT_DEBUGCHAR = ""
    COPY_FILE_LIST = \
        $$BASEDIR\\libs\\lib\\sdl\\win32\\SDL.dll \
        $$BASEDIR\\libs\\thirdParty\\libxbee\\lib\\libxbee.dll \
        $$DLL_DIR\\icu*.dll \
        $$DLL_DIR\\Qt5Core$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Gui$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Multimedia$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5MultimediaWidgets$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Network$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5OpenGL$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Positioning$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5PrintSupport$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Qml$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Quick$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Sensors$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5SerialPort$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5OpenGL$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Sql$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Svg$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Test$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5WebKit$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5WebKitWidgets$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Widgets$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Xml$${DLL_QT_DEBUGCHAR}.dll
    for(COPY_FILE, COPY_FILE_LIST) {
		QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY \"$$COPY_FILE\" \"$$DESTDIR_WIN\"
    }

	# Copy platform plugins
	P_DIR = $$[QT_INSTALL_PLUGINS]
	PLUGINS_DIR_WIN = $$replace(P_DIR, "/", "\\")
	QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY_DIR \"$$PLUGINS_DIR_WIN\\platforms\" \"$$DESTDIR_WIN\\platforms\"

	ReleaseBuild {
		# Copy Visual Studio DLLs
		# Note that this is only done for release because the debugging versions of these DLLs cannot be redistributed.
		win32-msvc2010 {
			QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY \"C:\\Windows\\System32\\msvcp100.dll\"  \"$$DESTDIR_WIN\"
			QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY \"C:\\Windows\\System32\\msvcr100.dll\"  \"$$DESTDIR_WIN\"
		}
		else:win32-msvc2012 {
			QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY \"C:\\Windows\\System32\\msvcp110.dll\"  \"$$DESTDIR_WIN\"
			QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY \"C:\\Windows\\System32\\msvcr110.dll\"  \"$$DESTDIR_WIN\"
		}
		else:win32-msvc2013 {
			QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY \"C:\\Windows\\System32\\msvcp120.dll\"  \"$$DESTDIR_WIN\"
			QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY \"C:\\Windows\\System32\\msvcr120.dll\"  \"$$DESTDIR_WIN\"
		}
		else {
			error("Visual studio version not supported, installation cannot be completed.")
		}
	}
}

# -------------------------------------------------
# QGroundControl - Micro Air Vehicle Groundstation
# Please see our website at <http://qgroundcontrol.org>
# Maintainer:
# Lorenz Meier <lm@inf.ethz.ch>
# (c) 2009-2011 QGroundControl Developers
# This file is part of the open groundstation project
# QGroundControl is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# QGroundControl is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with QGroundControl. If not, see <http://www.gnu.org/licenses/>.
# -------------------------------------------------

QMAKE_POST_LINK += echo "Copying files"

#
# Copy the application resources to the associated place alongside the application
#

LinuxBuild {
    DESTDIR_COPY_RESOURCE_LIST = $$DESTDIR
}

MacBuild {
    DESTDIR_COPY_RESOURCE_LIST = $$DESTDIR/$${TARGET}.app/Contents/MacOS
}

# Windows version of QMAKE_COPY_DIR of course doesn't work the same as Mac/Linux. It will only
# copy the contents of the source directory. It doesn't create the top level source directory
# in the target.
WindowsBuild {
    # Make sure to keep both side of this if using the same set of directories
	DESTDIR_COPY_RESOURCE_LIST = $$replace(DESTDIR,"/","\\")
	BASEDIR_COPY_RESOURCE_LIST = $$replace(BASEDIR,"/","\\")
    QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY_DIR \"$$BASEDIR_COPY_RESOURCE_LIST\\files\" \"$$DESTDIR_COPY_RESOURCE_LIST\\files\"
    QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY_DIR \"$$BASEDIR_COPY_RESOURCE_LIST\\qml\" \"$$DESTDIR_COPY_RESOURCE_LIST\\qml\"
    QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY_DIR \"$$BASEDIR_COPY_RESOURCE_LIST\\data\" \"$$DESTDIR_COPY_RESOURCE_LIST\\data\"
} else {
    # Make sure to keep both side of this if using the same set of directories
    QMAKE_POST_LINK += && $$QMAKE_COPY_DIR $$BASEDIR/files $$DESTDIR_COPY_RESOURCE_LIST
    QMAKE_POST_LINK += && $$QMAKE_COPY_DIR $$BASEDIR/qml $$DESTDIR_COPY_RESOURCE_LIST
    QMAKE_POST_LINK += && $$QMAKE_COPY_DIR $$BASEDIR/data $$DESTDIR_COPY_RESOURCE_LIST
}

#
# Perform platform specific setup
#

MacBuild {
	# Copy non-standard libraries and frameworks into app package
    QMAKE_POST_LINK += && $$QMAKE_COPY_DIR $$BASEDIR/libs/lib/mac64/lib $$DESTDIR/$${TARGET}.app/Contents/libs
    QMAKE_POST_LINK += && $$QMAKE_COPY_DIR -L $$BASEDIR/libs/lib/Frameworks $$DESTDIR/$${TARGET}.app/Contents/Frameworks

	# Fix library paths inside executable

    INSTALL_NAME_TARGET = $$DESTDIR/$${TARGET}.app/Contents/MacOS/$${TARGET}
    INSTALL_NAME_LIB_LIST = \
        libOpenThreads.dylib \
        libosg.dylib \
        libosgViewer.dylib \
        libosgGA.dylib \
        libosgDB.dylib \
        libosgText.dylib \
        libosgWidget.dylib
    for(INSTALL_NAME_LIB, INSTALL_NAME_LIB_LIST) {
        QMAKE_POST_LINK += && install_name_tool -change $$INSTALL_NAME_LIB "@executable_path/../libs/$${INSTALL_NAME_LIB}" $$INSTALL_NAME_TARGET
    }

	# Fix library paths within libraries (inter-library dependencies)

	# OSG GA LIBRARY
    INSTALL_NAME_TARGET = $$DESTDIR/$${TARGET}.app/Contents/libs/libosgGA.dylib
    INSTALL_NAME_LIB_LIST = \
        libOpenThreads.dylib \
        libosg.dylib \
        libosgGA.dylib \
        libosgDB.dylib \
        libosgUtil.dylib
    for(INSTALL_NAME_LIB, INSTALL_NAME_LIB_LIST) {
        QMAKE_POST_LINK += && install_name_tool -change $$INSTALL_NAME_LIB "@executable_path/../libs/$${INSTALL_NAME_LIB}" $$INSTALL_NAME_TARGET
    }

	# OSG DB LIBRARY
    INSTALL_NAME_TARGET = $$DESTDIR/$${TARGET}.app/Contents/libs/libosgDB.dylib
    INSTALL_NAME_LIB_LIST = \
        libOpenThreads.dylib \
        libosg.dylib \
        libosgDB.dylib \
        libosgUtil.dylib
    for(INSTALL_NAME_LIB, INSTALL_NAME_LIB_LIST) {
        QMAKE_POST_LINK += && install_name_tool -change $$INSTALL_NAME_LIB "@executable_path/../libs/$${INSTALL_NAME_LIB}" $$INSTALL_NAME_TARGET
    }

	# OSG TEXT LIBRARY
    INSTALL_NAME_TARGET = $$DESTDIR/$${TARGET}.app/Contents/libs/libosgText.dylib
    INSTALL_NAME_LIB_LIST = \
        libOpenThreads.dylib \
        libosg.dylib \
        libosgDB.dylib \
        libosgUtil.dylib \
        libosgText.dylib
    for(INSTALL_NAME_LIB, INSTALL_NAME_LIB_LIST) {
        QMAKE_POST_LINK += && install_name_tool -change $$INSTALL_NAME_LIB "@executable_path/../libs/$${INSTALL_NAME_LIB}" $$INSTALL_NAME_TARGET
    }

	# OSG UTIL LIBRARY
    INSTALL_NAME_TARGET = $$DESTDIR/$${TARGET}.app/Contents/libs/libosgUtil.dylib
    INSTALL_NAME_LIB_LIST = \
        libOpenThreads.dylib \
        libosg.dylib
    for(INSTALL_NAME_LIB, INSTALL_NAME_LIB_LIST) {
        QMAKE_POST_LINK += && install_name_tool -change $$INSTALL_NAME_LIB "@executable_path/../libs/$${INSTALL_NAME_LIB}" $$INSTALL_NAME_TARGET
    }

	# OSG VIEWER LIBRARY
    INSTALL_NAME_TARGET = $$DESTDIR/$${TARGET}.app/Contents/libs/libosgViewer.dylib
    INSTALL_NAME_LIB_LIST = \
        libOpenThreads.dylib \
        libosg.dylib \
        libosgGA.dylib \
        libosgDB.dylib \
        libosgUtil.dylib \
        libosgText.dylib
    for(INSTALL_NAME_LIB, INSTALL_NAME_LIB_LIST) {
        QMAKE_POST_LINK += && install_name_tool -change $$INSTALL_NAME_LIB "@executable_path/../libs/$${INSTALL_NAME_LIB}" $$INSTALL_NAME_TARGET
    }

	# OSG WIDGET LIBRARY
    INSTALL_NAME_TARGET = $$DESTDIR/$${TARGET}.app/Contents/libs/libosgWidget.dylib
    INSTALL_NAME_LIB_LIST = \
        libOpenThreads.dylib \
        libosg.dylib \
        libosgGA.dylib \
        libosgDB.dylib \
        libosgUtil.dylib \
        libosgText.dylib \
        libosgViewer.dylib
    for(INSTALL_NAME_LIB, INSTALL_NAME_LIB_LIST) {
        QMAKE_POST_LINK += && install_name_tool -change $$INSTALL_NAME_LIB "@executable_path/../libs/$${INSTALL_NAME_LIB}" $$INSTALL_NAME_TARGET
    }

	# CORE OSG LIBRARY
    QMAKE_POST_LINK += && install_name_tool -change libOpenThreads.dylib "@executable_path/../libs/libOpenThreads.dylib" $$DESTDIR/$${TARGET}.app/Contents/libs/libosg.dylib

    # SDL Framework
    QMAKE_POST_LINK += && install_name_tool -change "@rpath/SDL.framework/Versions/A/SDL" "@executable_path/../Frameworks/SDL.framework/Versions/A/SDL" $$DESTDIR/$${TARGET}.app/Contents/MacOS/$${TARGET}

}

WindowsBuild {
	BASEDIR_WIN = $$replace(BASEDIR, "/", "\\")
	DESTDIR_WIN = $$replace(DESTDIR, "/", "\\")
	D_DIR = $$[QT_INSTALL_LIBEXECS]
	DLL_DIR = $$replace(D_DIR, "/", "\\")

	# Copy dependencies
	DebugBuild: DLL_QT_DEBUGCHAR = "d"
    ReleaseBuild: DLL_QT_DEBUGCHAR = ""
    COPY_FILE_LIST = \
        $$BASEDIR\\libs\\lib\\sdl\\win32\\SDL.dll \
        $$BASEDIR\\libs\\thirdParty\\libxbee\\lib\\libxbee.dll \
        $$DLL_DIR\\icu*.dll \
        $$DLL_DIR\\Qt5Core$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Gui$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Multimedia$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5MultimediaWidgets$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Network$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5OpenGL$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Positioning$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5PrintSupport$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Qml$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Quick$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Sensors$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5SerialPort$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5OpenGL$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Sql$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Svg$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Test$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5WebKit$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5WebKitWidgets$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Widgets$${DLL_QT_DEBUGCHAR}.dll \
        $$DLL_DIR\\Qt5Xml$${DLL_QT_DEBUGCHAR}.dll
    for(COPY_FILE, COPY_FILE_LIST) {
		QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY \"$$COPY_FILE\" \"$$DESTDIR_WIN\"
    }

	ReleaseBuild {
		# Copy Visual Studio DLLs
		# Note that this is only done for release because the debugging versions of these DLLs cannot be redistributed.
		win32-msvc2010 {
			QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY \"C:\\Windows\\System32\\msvcp100.dll\"  \"$$DESTDIR_WIN\"
			QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY \"C:\\Windows\\System32\\msvcr100.dll\"  \"$$DESTDIR_WIN\"
		}
		else:win32-msvc2012 {
			QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY \"C:\\Windows\\System32\\msvcp110.dll\"  \"$$DESTDIR_WIN\"
			QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY \"C:\\Windows\\System32\\msvcr110.dll\"  \"$$DESTDIR_WIN\"
		}
		else:win32-msvc2013 {
			QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY \"C:\\Windows\\System32\\msvcp120.dll\"  \"$$DESTDIR_WIN\"
			QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY \"C:\\Windows\\System32\\msvcr120.dll\"  \"$$DESTDIR_WIN\"
		}
		else {
			error("Visual studio version not supported, installation cannot be completed.")
		}
	}
}


QmlJSDebugger: Check for Qt 4.7.1 or newer before enabling qml debugging

Reviewed-by: Christiaan Janssen

# This file should not be edited.
# Following versions of Qt Creator might offer new version.

QT += declarative

SOURCES += $$PWD/qmlapplicationviewer.cpp
HEADERS += $$PWD/qmlapplicationviewer.h
INCLUDEPATH += $$PWD

contains(DEFINES, QMLOBSERVER) {
    DEFINES *= QMLJSDEBUGGER
}

defineTest(minQtVersion) {
    maj = $$1
    min = $$2
    patch = $$3
    isEqual(QT_MAJOR_VERSION, $$maj) {
        isEqual(QT_MINOR_VERSION, $$min) {
            isEqual(QT_PATCH_VERSION, $$patch) {
                return(true)
            }
            greaterThan(QT_PATCH_VERSION, $$patch) {
                return(true)
            }
        }
        greaterThan(QT_MINOR_VERSION, $$min) {
            return(true)
        }
    }
    return(false)
}

contains(DEFINES, QMLJSDEBUGGER) {
    CONFIG(debug, debug|release) {
        !minQtVersion(4, 7, 1) {
            warning()
            warning("Debugging QML requires the qmljsdebugger library that ships with Qt Creator.")
            warning("This library requires Qt 4.7.1 or newer.")
            warning()

            error("Qt version $$QT_VERSION too old for QmlJS Debugging. Aborting.")
        }
        isEmpty(QMLJSDEBUGGER_PATH) {
            warning()
            warning("Debugging QML requires the qmljsdebugger library that ships with Qt Creator.")
            warning("Please specify its location on the qmake command line, eg")
            warning("  qmake -r QMLJSDEBUGGER_PATH=$CREATORDIR/share/qtcreator/qmljsdebugger")
            warning()

            error("QMLJSDEBUGGER defined, but no QMLJSDEBUGGER_PATH set on command line. Aborting.")
            DEFINES -= QMLJSDEBUGGER
        } else {
            include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri)
        }
    } else {
        DEFINES -= QMLJSDEBUGGER
    }
}

# This file should not be edited.
# Following versions of Qt Creator might offer new version.

QT += declarative

SOURCES += $$PWD/qmlapplicationviewer.cpp
HEADERS += $$PWD/qmlapplicationviewer.h
INCLUDEPATH += $$PWD

contains(DEFINES, QMLOBSERVER) {
    DEFINES *= QMLJSDEBUGGER
}
contains(DEFINES, QMLJSDEBUGGER) {
    CONFIG(debug, debug|release) {
        isEmpty(QMLJSDEBUGGER_PATH) {
            warning()
            warning(Debugging QML requires the qmljsdebugger library that ships with Qt Creator.)
            warning(Please specify its location on the qmake command line, e.g.)
            warning(  qmake -r QMLJSDEBUGGER_PATH=$CREATORDIR/share/qtcreator/qml/qmljsdebugger)
            warning()

            error(QMLJSDEBUGGER defined, but no QMLJSDEBUGGER_PATH set on command line. Aborting.)
            DEFINES -= QMLJSDEBUGGER
        } else {
            include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri)
        }
    } else {
        DEFINES -= QMLJSDEBUGGER
    }
}


fix the quotes

fix the quotes

svn path=/trunk/kdesupport/qca/; revision=373689

BOTAN_BASE = $$PWD/botan

DEFINES += \
	BOTAN_TYPES_QT \
	BOTAN_NO_INIT_H \
	BOTAN_NO_CONF_H \
	BOTAN_TOOLS_ONLY \
	BOTAN_MINIMAL_BIGINT

DEFINES += BOTAN_MP_WORD_BITS=32
DEFINES += BOTAN_VECTOR_OVER_ALLOCATE=4

INCLUDEPATH += $$BOTAN_BASE
SOURCES += \
	$$BOTAN_BASE/util.cpp \
	$$BOTAN_BASE/exceptn.cpp \
	$$BOTAN_BASE/mutex.cpp \
	$$BOTAN_BASE/mux_qt/mux_qt.cpp \
	$$BOTAN_BASE/secalloc.cpp \
	$$BOTAN_BASE/defalloc.cpp \
	$$BOTAN_BASE/allocate.cpp \
	$$BOTAN_BASE/mp_core.cpp \
	$$BOTAN_BASE/mp_comba.cpp \
	$$BOTAN_BASE/mp_fkmul.cpp \
	$$BOTAN_BASE/mp_mul.cpp \
	$$BOTAN_BASE/mp_smul.cpp \
	$$BOTAN_BASE/mp_shift.cpp \
	$$BOTAN_BASE/mp_misc.cpp \
	$$BOTAN_BASE/numthry.cpp \
	$$BOTAN_BASE/divide.cpp \
	$$BOTAN_BASE/big_base.cpp \
	$$BOTAN_BASE/big_code.cpp \
	$$BOTAN_BASE/big_io.cpp \
	$$BOTAN_BASE/big_ops2.cpp \
	$$BOTAN_BASE/big_ops3.cpp

unix:{
	SOURCES += \
		$$BOTAN_BASE/ml_unix/mlock.cpp \
		$$BOTAN_BASE/alloc_mmap/mmap_mem.cpp
}

win:{
	SOURCES += \
		$$BOTAN_BASE/ml_win32/mlock.cpp
}

BOTAN_BASE = $$PWD/botan

DEFINES += \
	BOTAN_TYPES_QT \
	BOTAN_NO_INIT_H \
	BOTAN_NO_CONF_H \
	BOTAN_TOOLS_ONLY \
	BOTAN_MINIMAL_BIGINT

DEFINES += 'BOTAN_MP_WORD_BITS=32'
DEFINES += 'BOTAN_VECTOR_OVER_ALLOCATE=4'

INCLUDEPATH += $$BOTAN_BASE
SOURCES += \
	$$BOTAN_BASE/util.cpp \
	$$BOTAN_BASE/exceptn.cpp \
	$$BOTAN_BASE/mutex.cpp \
	$$BOTAN_BASE/mux_qt/mux_qt.cpp \
	$$BOTAN_BASE/secalloc.cpp \
	$$BOTAN_BASE/defalloc.cpp \
	$$BOTAN_BASE/allocate.cpp \
	$$BOTAN_BASE/mp_core.cpp \
	$$BOTAN_BASE/mp_comba.cpp \
	$$BOTAN_BASE/mp_fkmul.cpp \
	$$BOTAN_BASE/mp_mul.cpp \
	$$BOTAN_BASE/mp_smul.cpp \
	$$BOTAN_BASE/mp_shift.cpp \
	$$BOTAN_BASE/mp_misc.cpp \
	$$BOTAN_BASE/numthry.cpp \
	$$BOTAN_BASE/divide.cpp \
	$$BOTAN_BASE/big_base.cpp \
	$$BOTAN_BASE/big_code.cpp \
	$$BOTAN_BASE/big_io.cpp \
	$$BOTAN_BASE/big_ops2.cpp \
	$$BOTAN_BASE/big_ops3.cpp

unix:{
	SOURCES += \
		$$BOTAN_BASE/ml_unix/mlock.cpp \
		$$BOTAN_BASE/alloc_mmap/mmap_mem.cpp
}

win:{
	SOURCES += \
		$$BOTAN_BASE/ml_win32/mlock.cpp
}


fix pro

fix pro

CONFIG += c++11

INCLUDEPATH  += ../../src \
                ../../libgitlmvc/libgitlevtbus/src

HEADERS += ../../src/views/filterconfigdialog.h \
    ../../src/views/filterconfigslider.h \
    ../../src/views/filterconfigcheckbox.h \
    ../../src/views/filterconfigradios.h \
    ../../src/views/filterconfigcombobox.h \
    ../../src/views/gitlcolorpicker.h

SOURCES += ../../src/views/filterconfigdialog.cpp \
    ../../src/views/filterconfigslider.cpp \
    ../../src/views/filterconfigcheckbox.cpp \
    ../../src/views/filterconfigradios.cpp \
    ../../src/views/filterconfigcombobox.cpp \
    ../../src/views/gitlcolorpicker.cpp

FORMS += ../../src/views/filterconfigdialog.ui \
    ../../src/views/filterconfigslider.ui \
    ../../src/views/filterconfigcheckbox.ui \
    ../../src/views/filterconfigradios.ui \
    ../../src/views/filterconfigcombobox.ui \
    ../../src/views/gitlcolorpicker.ui


Fix merge

Fix merge

INCLUDEPATH += src/cmd/include
INCLUDEPATH += src/cmd

HEADERS += \
    src/cmd/create_cmd_handlers.h \
    src/cmd/include/cmd_addhint_handler.h \
    src/cmd/include/cmd_answerlist_handler.h \
    src/cmd/include/cmd_api_handler.h \
    src/cmd/include/cmd_classbook_handler.h \
    src/cmd/include/cmd_createpublicevent_handler.h \
    src/cmd/include/cmd_deletepublicevent_handler.h \
    src/cmd/include/cmd_getpublicevent_handler.h \
    src/cmd/include/cmd_deletehint_handler.h \
    src/cmd/include/cmd_deletequest_handler.h \
    src/cmd/include/cmd_feedback_add_handler.h \
    src/cmd/include/cmd_getpublicinfo_handler.h \
    src/cmd/include/cmd_hello_handler.h \
    src/cmd/include/cmd_hints_handler.h \
    src/cmd/include/cmd_login_handler.h \
    src/cmd/include/cmd_publiceventslist_handler.h \
    src/cmd/include/cmd_quest_handler.h \
    src/cmd/include/cmd_quest_pass_handler.h \
    src/cmd/include/cmd_quest_statistics_handler.h \
    src/cmd/include/cmd_quests_subjects_handler.h \
    src/cmd/include/cmd_quests_handler.h \
    src/cmd/include/cmd_registration_handler.h \
    src/cmd/include/cmd_game_create_handler.h \
    src/cmd/include/cmd_game_delete_handler.h \
    src/cmd/include/cmd_game_export_handler.h \
    src/cmd/include/cmd_game_import_handler.h \
    src/cmd/include/cmd_game_info_handler.h \
    src/cmd/include/cmd_game_update_handler.h \
    src/cmd/include/cmd_game_update_logo_handler.h \
    src/cmd/include/cmd_games_handler.h \
    src/cmd/include/cmd_getmap_handler.h \
    src/cmd/include/cmd_scoreboard_handler.h \
    src/cmd/include/cmd_sendchatmessage_handler.h \
    src/cmd/include/cmd_send_letters_to_subscribers_handler.h \
    src/cmd/include/cmd_serverinfo_handler.h \
    src/cmd/include/cmd_serversettings_handler.h \
    src/cmd/include/cmd_writeups_handler.h \
    src/cmd/include/cmd_token_handler.h \
    src/cmd/include/cmd_user_handler.h \
    src/cmd/include/cmd_users_handler.h \
    src/cmd/include/cmd_user_skills_handler.h \
    src/cmd/include/cmd_user_update_handler.h \
    src/cmd/include/cmd_user_change_password_handler.h \
    src/cmd/include/cmd_updatequest_handler.h \
    src/cmd/include/cmd_update_user_location_handler.h \
    src/cmd/include/cmd_update_server_settings_handler.h \
    src/cmd/include/cmd_classbook_get_info_handler.h \
    src/cmd/include/cmd_classbook_get_list_handler.h \
    src/cmd/include/cmd_quest_create_handler.h

SOURCES += \
    src/cmd/create_cmd_handlers.cpp \
    src/cmd/sources/cmd_addhint_handler.cpp \
    src/cmd/sources/cmd_answerlist_handler.cpp \
    src/cmd/sources/cmd_api_handler.cpp \
    src/cmd/sources/cmd_createpublicevent_handler.cpp \
    src/cmd/sources/cmd_deletepublicevent_handler.cpp \
    src/cmd/sources/cmd_getpublicevent_handler.cpp \
    src/cmd/sources/cmd_deletehint_handler.cpp \
    src/cmd/sources/cmd_deletequest_handler.cpp \
    src/cmd/sources/cmd_feedback_add_handler.cpp \
    src/cmd/sources/cmd_getpublicinfo_handler.cpp \
    src/cmd/sources/cmd_game_create_handler.cpp \
    src/cmd/sources/cmd_game_delete_handler.cpp \
    src/cmd/sources/cmd_game_export_handler.cpp \
    src/cmd/sources/cmd_game_import_handler.cpp \
    src/cmd/sources/cmd_game_info_handler.cpp \
    src/cmd/sources/cmd_game_update_handler.cpp \
    src/cmd/sources/cmd_game_update_logo_handler.cpp \
    src/cmd/sources/cmd_games_handler.cpp \
    src/cmd/sources/cmd_getmap_handler.cpp \
    src/cmd/sources/cmd_hello_handler.cpp \
    src/cmd/sources/cmd_hints_handler.cpp \
    src/cmd/sources/cmd_login_handler.cpp \
    src/cmd/sources/cmd_publiceventslist_handler.cpp \
    src/cmd/sources/cmd_quest_handler.cpp \
    src/cmd/sources/cmd_quest_pass_handler.cpp \
    src/cmd/sources/cmd_quest_statistics_handler.cpp \
    src/cmd/sources/cmd_quests_subjects_handler.cpp \
    src/cmd/sources/cmd_quests_handler.cpp \
    src/cmd/sources/cmd_registration_handler.cpp \
    src/cmd/sources/cmd_scoreboard_handler.cpp \
    src/cmd/sources/cmd_sendchatmessage_handler.cpp \
    src/cmd/sources/cmd_send_letters_to_subscribers_handler.cpp \
    src/cmd/sources/cmd_serverinfo_handler.cpp \
    src/cmd/sources/cmd_serversettings_handler.cpp \
    src/cmd/sources/cmd_writeups_handler.cpp \
    src/cmd/sources/cmd_token_handler.cpp \
    src/cmd/sources/cmd_user_handler.cpp \
    src/cmd/sources/cmd_users_handler.cpp \
    src/cmd/sources/cmd_user_skills_handler.cpp \
    src/cmd/sources/cmd_user_update_handler.cpp \
    src/cmd/sources/cmd_user_change_password_handler.cpp \
    src/cmd/sources/cmd_classbook_handler.cpp \
    src/cmd/sources/cmd_updatequest_handler.cpp \
    src/cmd/sources/cmd_update_user_location_handler.cpp \
    src/cmd/sources/cmd_update_server_settings_handler.cpp \
    src/cmd/sources/cmd_classbook_get_info_handler.cpp \
    src/cmd/sources/cmd_classbook_get_list_handler.cpp \
    src/cmd/sources/cmd_quest_create_handler.cpp

INCLUDEPATH += src/cmd/include
INCLUDEPATH += src/cmd

HEADERS += \
    src/cmd/create_cmd_handlers.h \
    src/cmd/include/cmd_addhint_handler.h \
    src/cmd/include/cmd_answerlist_handler.h \
    src/cmd/include/cmd_api_handler.h \
    src/cmd/include/cmd_classbook_handler.h \
    src/cmd/include/cmd_createpublicevent_handler.h \
    src/cmd/include/cmd_deletepublicevent_handler.h \
    src/cmd/include/cmd_getpublicevent_handler.h \
    src/cmd/include/cmd_deletehint_handler.h \
    src/cmd/include/cmd_deletequest_handler.h \
    src/cmd/include/cmd_feedback_add_handler.h \
    src/cmd/include/cmd_getpublicinfo_handler.h \
    src/cmd/include/cmd_hello_handler.h \
    src/cmd/include/cmd_hints_handler.h \
    src/cmd/include/cmd_login_handler.h \
    src/cmd/include/cmd_publiceventslist_handler.h \
    src/cmd/include/cmd_quest_handler.h \
    src/cmd/include/cmd_quest_pass_handler.h \
    src/cmd/include/cmd_quest_statistics_handler.h \
    src/cmd/include/cmd_quests_subjects_handler.h \
    src/cmd/include/cmd_quests_handler.h \
    src/cmd/include/cmd_registration_handler.h \
    src/cmd/include/cmd_game_create_handler.h \
    src/cmd/include/cmd_game_delete_handler.h \
    src/cmd/include/cmd_game_export_handler.h \
    src/cmd/include/cmd_game_import_handler.h \
    src/cmd/include/cmd_game_info_handler.h \
    src/cmd/include/cmd_game_update_handler.h \
    src/cmd/include/cmd_game_update_logo_handler.h \
    src/cmd/include/cmd_games_handler.h \
    src/cmd/include/cmd_getmap_handler.h \
    src/cmd/include/cmd_scoreboard_handler.h \
    src/cmd/include/cmd_sendchatmessage_handler.h \
    src/cmd/include/cmd_send_letters_to_subscribers_handler.h \
    src/cmd/include/cmd_serverinfo_handler.h \
    src/cmd/include/cmd_serversettings_handler.h \
    src/cmd/include/cmd_writeups_handler.h \
    src/cmd/include/cmd_token_handler.h \
    src/cmd/include/cmd_user_handler.h \
    src/cmd/include/cmd_users_handler.h \
    src/cmd/include/cmd_user_skills_handler.h \
    src/cmd/include/cmd_user_update_handler.h \
    src/cmd/include/cmd_user_change_password_handler.h \
    src/cmd/include/cmd_updatequest_handler.h \
    src/cmd/include/cmd_update_user_location_handler.h \
    src/cmd/include/cmd_update_server_settings_handler.h \
    src/cmd/include/cmd_classbook_get_info_handler.h \
    src/cmd/include/cmd_classbook_get_list_handler.h \
    src/cmd/include/cmd_cmd_quest_create_handler.h

SOURCES += \
    src/cmd/create_cmd_handlers.cpp \
    src/cmd/sources/cmd_addhint_handler.cpp \
    src/cmd/sources/cmd_answerlist_handler.cpp \
    src/cmd/sources/cmd_api_handler.cpp \
    src/cmd/sources/cmd_createpublicevent_handler.cpp \
    src/cmd/sources/cmd_deletepublicevent_handler.cpp \
    src/cmd/sources/cmd_getpublicevent_handler.cpp \
    src/cmd/sources/cmd_deletehint_handler.cpp \
    src/cmd/sources/cmd_deletequest_handler.cpp \
    src/cmd/sources/cmd_feedback_add_handler.cpp \
    src/cmd/sources/cmd_getpublicinfo_handler.cpp \
    src/cmd/sources/cmd_game_create_handler.cpp \
    src/cmd/sources/cmd_game_delete_handler.cpp \
    src/cmd/sources/cmd_game_export_handler.cpp \
    src/cmd/sources/cmd_game_import_handler.cpp \
    src/cmd/sources/cmd_game_info_handler.cpp \
    src/cmd/sources/cmd_game_update_handler.cpp \
    src/cmd/sources/cmd_game_update_logo_handler.cpp \
    src/cmd/sources/cmd_games_handler.cpp \
    src/cmd/sources/cmd_getmap_handler.cpp \
    src/cmd/sources/cmd_hello_handler.cpp \
    src/cmd/sources/cmd_hints_handler.cpp \
    src/cmd/sources/cmd_login_handler.cpp \
    src/cmd/sources/cmd_publiceventslist_handler.cpp \
    src/cmd/sources/cmd_quest_handler.cpp \
    src/cmd/sources/cmd_quest_pass_handler.cpp \
    src/cmd/sources/cmd_quest_statistics_handler.cpp \
    src/cmd/sources/cmd_quests_subjects_handler.cpp \
    src/cmd/sources/cmd_quests_handler.cpp \
    src/cmd/sources/cmd_registration_handler.cpp \
    src/cmd/sources/cmd_scoreboard_handler.cpp \
    src/cmd/sources/cmd_sendchatmessage_handler.cpp \
    src/cmd/sources/cmd_send_letters_to_subscribers_handler.cpp \
    src/cmd/sources/cmd_serverinfo_handler.cpp \
    src/cmd/sources/cmd_serversettings_handler.cpp \
    src/cmd/sources/cmd_writeups_handler.cpp \
    src/cmd/sources/cmd_token_handler.cpp \
    src/cmd/sources/cmd_user_handler.cpp \
    src/cmd/sources/cmd_users_handler.cpp \
    src/cmd/sources/cmd_user_skills_handler.cpp \
    src/cmd/sources/cmd_user_update_handler.cpp \
    src/cmd/sources/cmd_user_change_password_handler.cpp \
    src/cmd/sources/cmd_classbook_handler.cpp \
    src/cmd/sources/cmd_updatequest_handler.cpp \
    src/cmd/sources/cmd_update_user_location_handler.cpp \
    src/cmd/sources/cmd_update_server_settings_handler.cpp \
    src/cmd/sources/cmd_classbook_get_info_handler.cpp \
    src/cmd/sources/cmd_classbook_get_list_handler.cpp \
    src/cmd/sources/cmd_cmd_quest_create_handler.cpp


VAULT-XXXX Give Vault build file its own base path variable.

# Copyright c1997-2006 Trygve Isaacson. All rights reserved.
# This file is part of the Code Vault version 2.5
# http://www.bombaydigital.com/

#
# This is a qmake include file -- to be included from a .pro file.
#
# Because paths are relative to the main file (not this one), this
# file relies on the main file defining the variable $${VAULT_BASE} so
# that this file can specify paths correctly.
#

win32:LIBS += wsock32.lib
win32:LIBS += psapi.lib

debug {
DEFINES += V_DEBUG
}

macx {
CONFIG += = vault_mac
} else:unix {
CONFIG += = vault_unix
} else:win32 {
CONFIG += = vault_win32
}

vault_mac {
DEPENDPATH += $${VAULT_BASE}/source/vtypes/_mac
DEPENDPATH += $${VAULT_BASE}/source/threads/_unix
DEPENDPATH += $${VAULT_BASE}/source/sockets/_unix
DEPENDPATH += $${VAULT_BASE}/source/files/_unix

INCLUDEPATH += $${VAULT_BASE}/source/vtypes/_mac
INCLUDEPATH += $${VAULT_BASE}/source/threads/_unix
INCLUDEPATH += $${VAULT_BASE}/source/sockets/_unix
INCLUDEPATH += $${VAULT_BASE}/source/files/_unix

HEADERS += $${VAULT_BASE}/source/vtypes/_mac/vtypes_platform.h
SOURCES += $${VAULT_BASE}/source/vtypes/_mac/vtypes_platform.cpp
SOURCES += $${VAULT_BASE}/source/containers/_unix/vinstant_platform.cpp
HEADERS += $${VAULT_BASE}/source/threads/_unix/vthread_platform.h
SOURCES += $${VAULT_BASE}/source/threads/_unix/vthread_platform.cpp
HEADERS += $${VAULT_BASE}/source/sockets/_unix/vsocket.h
SOURCES += $${VAULT_BASE}/source/sockets/_unix/vsocket.cpp
SOURCES += $${VAULT_BASE}/source/sockets/_unix/vfsnode_platform.cpp
}

vault_unix {
DEPENDPATH += $${VAULT_BASE}/source/vtypes/_unix
DEPENDPATH += $${VAULT_BASE}/source/threads/_unix
DEPENDPATH += $${VAULT_BASE}/source/sockets/_unix
DEPENDPATH += $${VAULT_BASE}/source/files/_unix

INCLUDEPATH += $${VAULT_BASE}/source/vtypes/_unix
INCLUDEPATH += $${VAULT_BASE}/source/threads/_unix
INCLUDEPATH += $${VAULT_BASE}/source/sockets/_unix
INCLUDEPATH += $${VAULT_BASE}/source/files/_unix

HEADERS += $${VAULT_BASE}/source/vtypes/_unix/vtypes_platform.h
SOURCES += $${VAULT_BASE}/source/vtypes/_unix/vtypes_platform.cpp
SOURCES += $${VAULT_BASE}/source/containers/_unix/vinstant_platform.cpp
HEADERS += $${VAULT_BASE}/source/threads/_unix/vthread_platform.h
SOURCES += $${VAULT_BASE}/source/threads/_unix/vthread_platform.cpp
HEADERS += $${VAULT_BASE}/source/sockets/_unix/vsocket.h
SOURCES += $${VAULT_BASE}/source/sockets/_unix/vsocket.cpp
SOURCES += $${VAULT_BASE}/source/sockets/_unix/vfsnode_platform.cpp
}

vault_win32 {
DEPENDPATH += $${VAULT_BASE}/source/vtypes/_win
DEPENDPATH += $${VAULT_BASE}/source/threads/_win
DEPENDPATH += $${VAULT_BASE}/source/sockets/_win
DEPENDPATH += $${VAULT_BASE}/source/files/_win

INCLUDEPATH += $${VAULT_BASE}/source/vtypes/_win
INCLUDEPATH += $${VAULT_BASE}/source/threads/_win
INCLUDEPATH += $${VAULT_BASE}/source/sockets/_win
INCLUDEPATH += $${VAULT_BASE}/source/files/_win

HEADERS += $${VAULT_BASE}/source/vtypes/_win/vtypes_platform.h
SOURCES += $${VAULT_BASE}/source/vtypes/_win/vtypes_platform.cpp
SOURCES += $${VAULT_BASE}/source/containers/_win/vinstant_platform.cpp
HEADERS += $${VAULT_BASE}/source/threads/_win/vthread_platform.h
SOURCES += $${VAULT_BASE}/source/threads/_win/vthread_platform.cpp
HEADERS += $${VAULT_BASE}/source/sockets/_win/vsocket.h
SOURCES += $${VAULT_BASE}/source/sockets/_win/vsocket.cpp
SOURCES += $${VAULT_BASE}/source/files/_win/vfsnode_platform.cpp

LINKER_LIBRARIES += Psapi.lib
}

DEPENDPATH += $${VAULT_BASE}/source
DEPENDPATH += $${VAULT_BASE}/source/containers
DEPENDPATH += $${VAULT_BASE}/source/files
DEPENDPATH += $${VAULT_BASE}/source/server
DEPENDPATH += $${VAULT_BASE}/source/sockets
DEPENDPATH += $${VAULT_BASE}/source/streams
DEPENDPATH += $${VAULT_BASE}/source/threads
DEPENDPATH += $${VAULT_BASE}/source/toolbox
DEPENDPATH += $${VAULT_BASE}/source/unittest
DEPENDPATH += $${VAULT_BASE}/source/vtypes

INCLUDEPATH += $${VAULT_BASE}/source
INCLUDEPATH += $${VAULT_BASE}/source/containers
INCLUDEPATH += $${VAULT_BASE}/source/files
INCLUDEPATH += $${VAULT_BASE}/source/server
INCLUDEPATH += $${VAULT_BASE}/source/sockets
INCLUDEPATH += $${VAULT_BASE}/source/streams
INCLUDEPATH += $${VAULT_BASE}/source/threads
INCLUDEPATH += $${VAULT_BASE}/source/toolbox
INCLUDEPATH += $${VAULT_BASE}/source/unittest
INCLUDEPATH += $${VAULT_BASE}/source/vtypes

HEADERS += $${VAULT_BASE}/source/vault.h
HEADERS += $${VAULT_BASE}/source/vconfigure.h
HEADERS += $${VAULT_BASE}/source/vtypes/vtypes.h
SOURCES += $${VAULT_BASE}/source/vtypes/vtypes.cpp
HEADERS += $${VAULT_BASE}/source/containers/vbento.h
SOURCES += $${VAULT_BASE}/source/containers/vbento.cpp
HEADERS += $${VAULT_BASE}/source/containers/vchar.h
SOURCES += $${VAULT_BASE}/source/containers/vchar.cpp
HEADERS += $${VAULT_BASE}/source/containers/vexception.h
SOURCES += $${VAULT_BASE}/source/containers/vexception.cpp
HEADERS += $${VAULT_BASE}/source/containers/vinstant.h
SOURCES += $${VAULT_BASE}/source/containers/vinstant.cpp
HEADERS += $${VAULT_BASE}/source/containers/vstring.h
SOURCES += $${VAULT_BASE}/source/containers/vstring.cpp
HEADERS += $${VAULT_BASE}/source/files/vabstractfilestream.h
SOURCES += $${VAULT_BASE}/source/files/vabstractfilestream.cpp
HEADERS += $${VAULT_BASE}/source/files/vbufferedfilestream.h
SOURCES += $${VAULT_BASE}/source/files/vbufferedfilestream.cpp
HEADERS += $${VAULT_BASE}/source/files/vdirectiofilestream.h
SOURCES += $${VAULT_BASE}/source/files/vdirectiofilestream.cpp
HEADERS += $${VAULT_BASE}/source/files/vfsnode.h
SOURCES += $${VAULT_BASE}/source/files/vfsnode.cpp
HEADERS += $${VAULT_BASE}/source/server/vlistenersocket.h
SOURCES += $${VAULT_BASE}/source/server/vlistenersocket.cpp
HEADERS += $${VAULT_BASE}/source/server/vlistenerthread.h
SOURCES += $${VAULT_BASE}/source/server/vlistenerthread.cpp
HEADERS += $${VAULT_BASE}/source/server/vmanagementinterface.h
HEADERS += $${VAULT_BASE}/source/sockets/vsocketbase.h
SOURCES += $${VAULT_BASE}/source/sockets/vsocketbase.cpp
HEADERS += $${VAULT_BASE}/source/sockets/vsocketfactory.h
SOURCES += $${VAULT_BASE}/source/sockets/vsocketfactory.cpp
HEADERS += $${VAULT_BASE}/source/sockets/vsocketstream.h
SOURCES += $${VAULT_BASE}/source/sockets/vsocketstream.cpp
HEADERS += $${VAULT_BASE}/source/sockets/vsocketthread.h
SOURCES += $${VAULT_BASE}/source/sockets/vsocketthread.cpp
HEADERS += $${VAULT_BASE}/source/sockets/vsocketthreadfactory.h
HEADERS += $${VAULT_BASE}/source/streams/vbinaryiostream.h
SOURCES += $${VAULT_BASE}/source/streams/vbinaryiostream.cpp
HEADERS += $${VAULT_BASE}/source/streams/viostream.h
SOURCES += $${VAULT_BASE}/source/streams/viostream.cpp
HEADERS += $${VAULT_BASE}/source/streams/vmemorystream.h
SOURCES += $${VAULT_BASE}/source/streams/vmemorystream.cpp
HEADERS += $${VAULT_BASE}/source/streams/vstream.h
SOURCES += $${VAULT_BASE}/source/streams/vstream.cpp
HEADERS += $${VAULT_BASE}/source/streams/vstreamcopier.h
SOURCES += $${VAULT_BASE}/source/streams/vstreamcopier.cpp
HEADERS += $${VAULT_BASE}/source/streams/vtextiostream.h
SOURCES += $${VAULT_BASE}/source/streams/vtextiostream.cpp
HEADERS += $${VAULT_BASE}/source/streams/vwritebufferedstream.h
SOURCES += $${VAULT_BASE}/source/streams/vwritebufferedstream.cpp
HEADERS += $${VAULT_BASE}/source/threads/vmutex.h
SOURCES += $${VAULT_BASE}/source/threads/vmutex.cpp
HEADERS += $${VAULT_BASE}/source/threads/vmutexlocker.h
SOURCES += $${VAULT_BASE}/source/threads/vmutexlocker.cpp
HEADERS += $${VAULT_BASE}/source/threads/vsemaphore.h
SOURCES += $${VAULT_BASE}/source/threads/vsemaphore.cpp
HEADERS += $${VAULT_BASE}/source/threads/vthread.h
SOURCES += $${VAULT_BASE}/source/threads/vthread.cpp
HEADERS += $${VAULT_BASE}/source/toolbox/vclassregistry.h
SOURCES += $${VAULT_BASE}/source/toolbox/vclassregistry.cpp
HEADERS += $${VAULT_BASE}/source/toolbox/vhex.h
SOURCES += $${VAULT_BASE}/source/toolbox/vhex.cpp
HEADERS += $${VAULT_BASE}/source/toolbox/vlogger.h
SOURCES += $${VAULT_BASE}/source/toolbox/vlogger.cpp
HEADERS += $${VAULT_BASE}/source/toolbox/vsettings.h
SOURCES += $${VAULT_BASE}/source/toolbox/vsettings.cpp
HEADERS += $${VAULT_BASE}/source/toolbox/vshutdownregistry.h
SOURCES += $${VAULT_BASE}/source/toolbox/vshutdownregistry.cpp
HEADERS += $${VAULT_BASE}/source/toolbox/vsingleton.h
HEADERS += $${VAULT_BASE}/source/unittest/vbentounit.h
SOURCES += $${VAULT_BASE}/source/unittest/vbentounit.cpp
HEADERS += $${VAULT_BASE}/source/unittest/vbinaryiounit.h
SOURCES += $${VAULT_BASE}/source/unittest/vbinaryiounit.cpp
HEADERS += $${VAULT_BASE}/source/unittest/vcharunit.h
SOURCES += $${VAULT_BASE}/source/unittest/vcharunit.cpp
HEADERS += $${VAULT_BASE}/source/unittest/vclassregistryunit.h
SOURCES += $${VAULT_BASE}/source/unittest/vclassregistryunit.cpp
HEADERS += $${VAULT_BASE}/source/unittest/vexceptionunit.h
SOURCES += $${VAULT_BASE}/source/unittest/vexceptionunit.cpp
HEADERS += $${VAULT_BASE}/source/unittest/vfsnodeunit.h
SOURCES += $${VAULT_BASE}/source/unittest/vfsnodeunit.cpp
HEADERS += $${VAULT_BASE}/source/unittest/vhexunit.h
SOURCES += $${VAULT_BASE}/source/unittest/vhexunit.cpp
HEADERS += $${VAULT_BASE}/source/unittest/vinstantunit.h
SOURCES += $${VAULT_BASE}/source/unittest/vinstantunit.cpp
HEADERS += $${VAULT_BASE}/source/unittest/vplatformunit.h
SOURCES += $${VAULT_BASE}/source/unittest/vplatformunit.cpp
HEADERS += $${VAULT_BASE}/source/unittest/vstreamsunit.h
SOURCES += $${VAULT_BASE}/source/unittest/vstreamsunit.cpp
HEADERS += $${VAULT_BASE}/source/unittest/vstringunit.h
SOURCES += $${VAULT_BASE}/source/unittest/vstringunit.cpp
HEADERS += $${VAULT_BASE}/source/unittest/vthreadsunit.h
SOURCES += $${VAULT_BASE}/source/unittest/vthreadsunit.cpp
HEADERS += $${VAULT_BASE}/source/unittest/vunit.h
SOURCES += $${VAULT_BASE}/source/unittest/vunit.cpp
HEADERS += $${VAULT_BASE}/source/unittest/vunitrunall.h
SOURCES += $${VAULT_BASE}/source/unittest/vunitrunall.cpp

# Copyright c1997-2006 Trygve Isaacson. All rights reserved.
# This file is part of the Code Vault version 2.5
# http://www.bombaydigital.com/

#
# This is a qmake include file -- to be included from a .pro file.
#
# Because paths are relative to the main file (not this one), this
# file relies on the main file defining the variable $${BASE} so
# that this file can specify paths correctly.
#

win32:LIBS += wsock32.lib

debug {
DEFINES += V_DEBUG
}

macx {
CONFIG += = vault_mac
} else:unix {
CONFIG += = vault_unix
} else:win32 {
CONFIG += = vault_win32
}

vault_mac {
DEPENDPATH += $${BASE}/source/vtypes/_mac
DEPENDPATH += $${BASE}/source/threads/_unix
DEPENDPATH += $${BASE}/source/sockets/_unix
DEPENDPATH += $${BASE}/source/files/_unix

INCLUDEPATH += $${BASE}/source/vtypes/_mac
INCLUDEPATH += $${BASE}/source/threads/_unix
INCLUDEPATH += $${BASE}/source/sockets/_unix
INCLUDEPATH += $${BASE}/source/files/_unix

HEADERS += $${BASE}/source/vtypes/_mac/vtypes_platform.h
SOURCES += $${BASE}/source/vtypes/_mac/vtypes_platform.cpp
SOURCES += $${BASE}/source/containers/_unix/vinstant_platform.cpp
HEADERS += $${BASE}/source/threads/_unix/vthread_platform.h
SOURCES += $${BASE}/source/threads/_unix/vthread_platform.cpp
HEADERS += $${BASE}/source/sockets/_unix/vsocket.h
SOURCES += $${BASE}/source/sockets/_unix/vsocket.cpp
SOURCES += $${BASE}/source/sockets/_unix/vfsnode_platform.cpp
}

vault_unix {
DEPENDPATH += $${BASE}/source/vtypes/_unix
DEPENDPATH += $${BASE}/source/threads/_unix
DEPENDPATH += $${BASE}/source/sockets/_unix
DEPENDPATH += $${BASE}/source/files/_unix

INCLUDEPATH += $${BASE}/source/vtypes/_unix
INCLUDEPATH += $${BASE}/source/threads/_unix
INCLUDEPATH += $${BASE}/source/sockets/_unix
INCLUDEPATH += $${BASE}/source/files/_unix

HEADERS += $${BASE}/source/vtypes/_unix/vtypes_platform.h
SOURCES += $${BASE}/source/vtypes/_unix/vtypes_platform.cpp
SOURCES += $${BASE}/source/containers/_unix/vinstant_platform.cpp
HEADERS += $${BASE}/source/threads/_unix/vthread_platform.h
SOURCES += $${BASE}/source/threads/_unix/vthread_platform.cpp
HEADERS += $${BASE}/source/sockets/_unix/vsocket.h
SOURCES += $${BASE}/source/sockets/_unix/vsocket.cpp
SOURCES += $${BASE}/source/sockets/_unix/vfsnode_platform.cpp
}

vault_win32 {
DEPENDPATH += $${BASE}/source/vtypes/_win
DEPENDPATH += $${BASE}/source/threads/_win
DEPENDPATH += $${BASE}/source/sockets/_win
DEPENDPATH += $${BASE}/source/files/_win

INCLUDEPATH += $${BASE}/source/vtypes/_win
INCLUDEPATH += $${BASE}/source/threads/_win
INCLUDEPATH += $${BASE}/source/sockets/_win
INCLUDEPATH += $${BASE}/source/files/_win

HEADERS += $${BASE}/source/vtypes/_win/vtypes_platform.h
SOURCES += $${BASE}/source/vtypes/_win/vtypes_platform.cpp
SOURCES += $${BASE}/source/containers/_win/vinstant_platform.cpp
HEADERS += $${BASE}/source/threads/_win/vthread_platform.h
SOURCES += $${BASE}/source/threads/_win/vthread_platform.cpp
HEADERS += $${BASE}/source/sockets/_win/vsocket.h
SOURCES += $${BASE}/source/sockets/_win/vsocket.cpp
SOURCES += $${BASE}/source/sockets/_win/vfsnode_platform.cpp
}

DEPENDPATH += $${BASE}/source
DEPENDPATH += $${BASE}/source/containers
DEPENDPATH += $${BASE}/source/files
DEPENDPATH += $${BASE}/source/server
DEPENDPATH += $${BASE}/source/sockets
DEPENDPATH += $${BASE}/source/streams
DEPENDPATH += $${BASE}/source/threads
DEPENDPATH += $${BASE}/source/toolbox
DEPENDPATH += $${BASE}/source/unittest
DEPENDPATH += $${BASE}/source/vtypes

INCLUDEPATH += $${BASE}/source
INCLUDEPATH += $${BASE}/source/containers
INCLUDEPATH += $${BASE}/source/files
INCLUDEPATH += $${BASE}/source/server
INCLUDEPATH += $${BASE}/source/sockets
INCLUDEPATH += $${BASE}/source/streams
INCLUDEPATH += $${BASE}/source/threads
INCLUDEPATH += $${BASE}/source/toolbox
INCLUDEPATH += $${BASE}/source/unittest
INCLUDEPATH += $${BASE}/source/vtypes

HEADERS += $${BASE}/source/vault.h
HEADERS += $${BASE}/source/vconfigure.h
HEADERS += $${BASE}/source/vtypes/vtypes.h
SOURCES += $${BASE}/source/vtypes/vtypes.cpp
HEADERS += $${BASE}/source/containers/vbento.h
SOURCES += $${BASE}/source/containers/vbento.cpp
HEADERS += $${BASE}/source/containers/vchar.h
SOURCES += $${BASE}/source/containers/vchar.cpp
HEADERS += $${BASE}/source/containers/vexception.h
SOURCES += $${BASE}/source/containers/vexception.cpp
HEADERS += $${BASE}/source/containers/vinstant.h
SOURCES += $${BASE}/source/containers/vinstant.cpp
HEADERS += $${BASE}/source/containers/vstring.h
SOURCES += $${BASE}/source/containers/vstring.cpp
HEADERS += $${BASE}/source/files/vabstractfilestream.h
SOURCES += $${BASE}/source/files/vabstractfilestream.cpp
HEADERS += $${BASE}/source/files/vbufferedfilestream.h
SOURCES += $${BASE}/source/files/vbufferedfilestream.cpp
HEADERS += $${BASE}/source/files/vdirectiofilestream.h
SOURCES += $${BASE}/source/files/vdirectiofilestream.cpp
HEADERS += $${BASE}/source/files/vfsnode.h
SOURCES += $${BASE}/source/files/vfsnode.cpp
HEADERS += $${BASE}/source/server/vlistenersocket.h
SOURCES += $${BASE}/source/server/vlistenersocket.cpp
HEADERS += $${BASE}/source/server/vlistenerthread.h
SOURCES += $${BASE}/source/server/vlistenerthread.cpp
HEADERS += $${BASE}/source/server/vmanagementinterface.h
HEADERS += $${BASE}/source/sockets/vsocketbase.h
SOURCES += $${BASE}/source/sockets/vsocketbase.cpp
HEADERS += $${BASE}/source/sockets/vsocketfactory.h
SOURCES += $${BASE}/source/sockets/vsocketfactory.cpp
HEADERS += $${BASE}/source/sockets/vsocketstream.h
SOURCES += $${BASE}/source/sockets/vsocketstream.cpp
HEADERS += $${BASE}/source/sockets/vsocketthread.h
SOURCES += $${BASE}/source/sockets/vsocketthread.cpp
HEADERS += $${BASE}/source/sockets/vsocketthreadfactory.h
HEADERS += $${BASE}/source/streams/vbinaryiostream.h
SOURCES += $${BASE}/source/streams/vbinaryiostream.cpp
HEADERS += $${BASE}/source/streams/viostream.h
SOURCES += $${BASE}/source/streams/viostream.cpp
HEADERS += $${BASE}/source/streams/vmemorystream.h
SOURCES += $${BASE}/source/streams/vmemorystream.cpp
HEADERS += $${BASE}/source/streams/vstream.h
SOURCES += $${BASE}/source/streams/vstream.cpp
HEADERS += $${BASE}/source/streams/vstreamcopier.h
SOURCES += $${BASE}/source/streams/vstreamcopier.cpp
HEADERS += $${BASE}/source/streams/vtextiostream.h
SOURCES += $${BASE}/source/streams/vtextiostream.cpp
HEADERS += $${BASE}/source/streams/vwritebufferedstream.h
SOURCES += $${BASE}/source/streams/vwritebufferedstream.cpp
HEADERS += $${BASE}/source/threads/vmutex.h
SOURCES += $${BASE}/source/threads/vmutex.cpp
HEADERS += $${BASE}/source/threads/vmutexlocker.h
SOURCES += $${BASE}/source/threads/vmutexlocker.cpp
HEADERS += $${BASE}/source/threads/vsemaphore.h
SOURCES += $${BASE}/source/threads/vsemaphore.cpp
HEADERS += $${BASE}/source/threads/vthread.h
SOURCES += $${BASE}/source/threads/vthread.cpp
HEADERS += $${BASE}/source/toolbox/vclassregistry.h
SOURCES += $${BASE}/source/toolbox/vclassregistry.cpp
HEADERS += $${BASE}/source/toolbox/vhex.h
SOURCES += $${BASE}/source/toolbox/vhex.cpp
HEADERS += $${BASE}/source/toolbox/vlogger.h
SOURCES += $${BASE}/source/toolbox/vlogger.cpp
HEADERS += $${BASE}/source/toolbox/vsettings.h
SOURCES += $${BASE}/source/toolbox/vsettings.cpp
HEADERS += $${BASE}/source/toolbox/vshutdownregistry.h
SOURCES += $${BASE}/source/toolbox/vshutdownregistry.cpp
HEADERS += $${BASE}/source/toolbox/vsingleton.h
HEADERS += $${BASE}/source/unittest/vbentounit.h
SOURCES += $${BASE}/source/unittest/vbentounit.cpp
HEADERS += $${BASE}/source/unittest/vbinaryiounit.h
SOURCES += $${BASE}/source/unittest/vbinaryiounit.cpp
HEADERS += $${BASE}/source/unittest/vcharunit.h
SOURCES += $${BASE}/source/unittest/vcharunit.cpp
HEADERS += $${BASE}/source/unittest/vclassregistryunit.h
SOURCES += $${BASE}/source/unittest/vclassregistryunit.cpp
HEADERS += $${BASE}/source/unittest/vexceptionunit.h
SOURCES += $${BASE}/source/unittest/vexceptionunit.cpp
HEADERS += $${BASE}/source/unittest/vfsnodeunit.h
SOURCES += $${BASE}/source/unittest/vfsnodeunit.cpp
HEADERS += $${BASE}/source/unittest/vhexunit.h
SOURCES += $${BASE}/source/unittest/vhexunit.cpp
HEADERS += $${BASE}/source/unittest/vinstantunit.h
SOURCES += $${BASE}/source/unittest/vinstantunit.cpp
HEADERS += $${BASE}/source/unittest/vplatformunit.h
SOURCES += $${BASE}/source/unittest/vplatformunit.cpp
HEADERS += $${BASE}/source/unittest/vstreamsunit.h
SOURCES += $${BASE}/source/unittest/vstreamsunit.cpp
HEADERS += $${BASE}/source/unittest/vstringunit.h
SOURCES += $${BASE}/source/unittest/vstringunit.cpp
HEADERS += $${BASE}/source/unittest/vthreadsunit.h
SOURCES += $${BASE}/source/unittest/vthreadsunit.cpp
HEADERS += $${BASE}/source/unittest/vunit.h
SOURCES += $${BASE}/source/unittest/vunit.cpp
HEADERS += $${BASE}/source/unittest/vunitrunall.h
SOURCES += $${BASE}/source/unittest/vunitrunall.cpp


[libofono-qt] Use QMAKE_LFLAGS to make sure we link to the libofono-qt under test

This prevents us from accidentally linking against a system copy.

This won't protect us from running the tests against a system copy, for that we
need LD_LIBRARY_PATH or rpath, but this will at least result in successful and
proper builds.

CONFIG += testcase
QT = core testlib dbus
INCLUDEPATH += ../lib ../
QMAKE_LFLAGS += -L ../lib -lofono-qt

target.path = $$[QT_INSTALL_PREFIX]/opt/tests/libofono-qt/
INSTALLS += target

CONFIG += testcase
QT = core testlib dbus
INCLUDEPATH += ../lib ../
LIBS += -L ../lib -lofono-qt

target.path = $$[QT_INSTALL_PREFIX]/opt/tests/libofono-qt/
INSTALLS += target


kill unnecessary qmake variable mods

kill unnecessary qmake variable mods

INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD

SOURCES += $$PWD/qguistatemachine.cpp
!contains(DEFINES, QT_NO_STATEMACHINE_EVENTFILTER) {
    HEADERS += \
	   $$PWD/qkeyeventtransition.h \
	   $$PWD/qmouseeventtransition.h \
	   $$PWD/qbasickeyeventtransition_p.h \
	   $$PWD/qbasicmouseeventtransition_p.h
    SOURCES += \
	   $$PWD/qkeyeventtransition.cpp \
	   $$PWD/qmouseeventtransition.cpp \
	   $$PWD/qbasickeyeventtransition.cpp \
	   $$PWD/qbasicmouseeventtransition.cpp
}


clean code[021548]

clean code[021548]

#-------------------------------------------------
#
# Project created by QtCreator 2014-08-08T23:19:41
#
# =================================================
# * This file is part of the TTK Music Player project
# * Copyright (c) 2014 - 2016 Greedysky Studio
# * All rights reserved!
# * Redistribution and use of the source code or any derivative
# * works are strictly forbiden.
# =================================================

INCLUDEPATH += $$PWD \
               $$PWD/network

!contains(CONFIG, TTK_NO_MSVC_LINK_NEED){
HEADERS  += \
    $$PWD/network/musicnetworkabstract.h \
    $$PWD/network/musicdownloadthreadabstract.h \
    $$PWD/network/musicdata2downloadthread.h \
    $$PWD/network/musicdatadownloadthread.h \
    $$PWD/network/musictextdownloadthread.h \
    $$PWD/network/musicsourcedownloadthread.h \
    $$PWD/network/musicnetworkthread.h \
    $$PWD/network/musicnetworkproxy.h \
    $$PWD/network/musicnetworkoperator.h \
    $$PWD/network/musicbackgrounddownload.h \
    $$PWD/network/musicdownloadqueuecache.h \
    $$PWD/network/musicdownloadquerythreadabstract.h \
    $$PWD/network/musicdownloadquerysinglethread.h \
    $$PWD/network/musicdownloadquerymultiplethread.h \
    $$PWD/network/musicradiochannelthread.h \
    $$PWD/network/musicradioplaylistthread.h \
    $$PWD/network/musicradiosongsthread.h \
    $$PWD/network/musicradiothreadabstract.h \
    $$PWD/network/musictranslationthread.h \
    $$PWD/network/musicvoicettsthread.h \
    $$PWD/musiclogger.h \
    $$PWD/musicobject.h \
    $$PWD/musicuiobject.h \
    $$PWD/musicutils.h \
    $$PWD/musicglobaldefine.h \
    $$PWD/musicglobalhotkey.h \
    $$PWD/musicversion.h \
    $$PWD/musictime.h \
    $$PWD/musicxmlconfigmanager.h \
    $$PWD/musicplayer.h \
    $$PWD/musicplaylist.h \
    $$PWD/musicabstractxml.h \
    $$PWD/musicsettingmanager.h \
    $$PWD/musicconnectionpool.h \
    $$PWD/musicregeditmanager.h \
    $$PWD/musicsingleton.h \
    $$PWD/musiccoremplayer.h \
    $$PWD/musicsong.h \
    $$PWD/musiccryptographichash.h \
    $$PWD/musicbackgroundmanager.h \
    $$PWD/musicsystemenvironment.h

}

contains(CONFIG, TTK_BUILD_LIB){
SOURCES += \
    $$PWD/network/musicnetworkabstract.cpp \
    $$PWD/network/musicdownloadthreadabstract.cpp \
    $$PWD/network/musicdata2downloadthread.cpp \
    $$PWD/network/musicdatadownloadthread.cpp \
    $$PWD/network/musictextdownloadthread.cpp \
    $$PWD/network/musicsourcedownloadthread.cpp \
    $$PWD/network/musicnetworkthread.cpp \
    $$PWD/network/musicnetworkproxy.cpp \
    $$PWD/network/musicnetworkoperator.cpp \
    $$PWD/network/musicbackgrounddownload.cpp \
    $$PWD/network/musicdownloadqueuecache.cpp \
    $$PWD/network/musicdownloadquerythreadabstract.cpp \
    $$PWD/network/musicdownloadquerysinglethread.cpp \
    $$PWD/network/musicdownloadquerymultiplethread.cpp \
    $$PWD/network/musicradiochannelthread.cpp \
    $$PWD/network/musicradioplaylistthread.cpp \
    $$PWD/network/musicradiosongsthread.cpp \
    $$PWD/network/musicradiothreadabstract.cpp \
    $$PWD/network/musictranslationthread.cpp \
    $$PWD/network/musicvoicettsthread.cpp \
    $$PWD/musicutils.cpp \
    $$PWD/musicglobalhotkey.cpp \
    $$PWD/musictime.cpp \
    $$PWD/musicplayer.cpp \
    $$PWD/musicplaylist.cpp \
    $$PWD/musicabstractxml.cpp \
    $$PWD/musicxmlconfigmanager.cpp \
    $$PWD/musicconnectionpool.cpp \
    $$PWD/musicregeditmanager.cpp \
    $$PWD/musiccoremplayer.cpp \
    $$PWD/musicsong.cpp \
    $$PWD/musiccryptographichash.cpp \
    $$PWD/musicbackgroundmanager.cpp \
    $$PWD/musicsystemenvironment.cpp

}

#-------------------------------------------------
#
# Project created by QtCreator 2014-08-08T23:19:41
#
# =================================================
# * This file is part of the TTK Music Player project
# * Copyright (c) 2014 - 2016 Greedysky Studio
# * All rights reserved!
# * Redistribution and use of the source code or any derivative
# * works are strictly forbiden.
# =================================================

INCLUDEPATH += $$PWD \
               $$PWD/network

!contains(CONFIG, TTK_NO_MSVC_LINK_NEED){
HEADERS  += \
    $$PWD/network/musicnetworkabstract.h \
    $$PWD/network/musicdownloadthreadabstract.h \
    $$PWD/network/musicdata2downloadthread.h \
    $$PWD/network/musicdatadownloadthread.h \
    $$PWD/network/musictextdownloadthread.h \
    $$PWD/network/musicsourcedownloadthread.h \
    $$PWD/network/musicnetworkthread.h \
    $$PWD/network/musicnetworkproxy.h \
    $$PWD/network/musicnetworkoperator.h \
    $$PWD/network/musicbackgrounddownload.h \
    $$PWD/network/musicdownloadqueuecache.h \
    $$PWD/network/musicdownloadquerythreadabstract.h \
    $$PWD/network/musicdownloadquerysinglethread.h \
    $$PWD/network/musicdownloadquerymultiplethread.h \
    $$PWD/network/musicradiochannelthread.h \
    $$PWD/network/musicradioplaylistthread.h \
    $$PWD/network/musicradiosongsthread.h \
    $$PWD/network/musicradiothreadabstract.h \
    $$PWD/network/musictranslationthread.h \
    $$PWD/musiclogger.h \
    $$PWD/musicobject.h \
    $$PWD/musicuiobject.h \
    $$PWD/musicutils.h \
    $$PWD/musicglobaldefine.h \
    $$PWD/musicglobalhotkey.h \
    $$PWD/musicversion.h \
    $$PWD/musictime.h \
    $$PWD/musicxmlconfigmanager.h \
    $$PWD/musicplayer.h \
    $$PWD/musicplaylist.h \
    $$PWD/musicabstractxml.h \
    $$PWD/musicsettingmanager.h \
    $$PWD/musicconnectionpool.h \
    $$PWD/musicregeditmanager.h \
    $$PWD/musicsingleton.h \
    $$PWD/musiccoremplayer.h \
    $$PWD/musicsong.h \
    $$PWD/musiccryptographichash.h \
    $$PWD/musicbackgroundmanager.h \
    $$PWD/musicsystemenvironment.h

}

contains(CONFIG, TTK_BUILD_LIB){
SOURCES += \
    $$PWD/network/musicnetworkabstract.cpp \
    $$PWD/network/musicdownloadthreadabstract.cpp \
    $$PWD/network/musicdata2downloadthread.cpp \
    $$PWD/network/musicdatadownloadthread.cpp \
    $$PWD/network/musictextdownloadthread.cpp \
    $$PWD/network/musicsourcedownloadthread.cpp \
    $$PWD/network/musicnetworkthread.cpp \
    $$PWD/network/musicnetworkproxy.cpp \
    $$PWD/network/musicnetworkoperator.cpp \
    $$PWD/network/musicbackgrounddownload.cpp \
    $$PWD/network/musicdownloadqueuecache.cpp \
    $$PWD/network/musicdownloadquerythreadabstract.cpp \
    $$PWD/network/musicdownloadquerysinglethread.cpp \
    $$PWD/network/musicdownloadquerymultiplethread.cpp \
    $$PWD/network/musicradiochannelthread.cpp \
    $$PWD/network/musicradioplaylistthread.cpp \
    $$PWD/network/musicradiosongsthread.cpp \
    $$PWD/network/musicradiothreadabstract.cpp \
    $$PWD/network/musictranslationthread.cpp \
    $$PWD/musicutils.cpp \
    $$PWD/musicglobalhotkey.cpp \
    $$PWD/musictime.cpp \
    $$PWD/musicplayer.cpp \
    $$PWD/musicplaylist.cpp \
    $$PWD/musicabstractxml.cpp \
    $$PWD/musicxmlconfigmanager.cpp \
    $$PWD/musicconnectionpool.cpp \
    $$PWD/musicregeditmanager.cpp \
    $$PWD/musiccoremplayer.cpp \
    $$PWD/musicsong.cpp \
    $$PWD/musiccryptographichash.cpp \
    $$PWD/musicbackgroundmanager.cpp \
    $$PWD/musicsystemenvironment.cpp

}

HEADERS += \
    $$PWD/network/musicvoicettsthread.h

SOURCES += \
    $$PWD/network/musicvoicettsthread.cpp


Fixing dagar's fix :) Changing the directory prior to invoking macdeployqt so it can find the app bundle.

# -------------------------------------------------
# QGroundControl - Micro Air Vehicle Groundstation
# Please see our website at <http://qgroundcontrol.org>
# Maintainer:
# Lorenz Meier <lm@inf.ethz.ch>
# (c) 2009-2014 QGroundControl Developers
# This file is part of the open groundstation project
# QGroundControl is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# QGroundControl is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with QGroundControl. If not, see <http://www.gnu.org/licenses/>.
# -------------------------------------------------

installer {
    DEFINES += QGC_INSTALL_RELEASE
    MacBuild {
        VideoEnabled {
            # Install the gstreamer framework
            # This will:
            # Copy from the original distibution into DESTDIR/gstwork (if not already there)
            # Prune the framework, removing stuff we don't need
            # Relocate all dylibs so they can work under @executable_path/...
            # Copy the result into the app bundle
            # Make sure qgroundcontrol can find them
            message("Preparing GStreamer Framework")
            QMAKE_POST_LINK += && $$BASEDIR/tools/prepare_gstreamer_framework.sh $${OUT_PWD}/gstwork/ $${DESTDIR}/$${TARGET}.app $${TARGET}
        } else {
            message("Skipping GStreamer Framework")
        }
        # We cd to release directory so we can run macdeployqt without a path to the
        # qgroundcontrol.app file. If you specify a path to the .app file the symbolic
        # links to plugins will not be created correctly.
        QMAKE_POST_LINK += && mkdir -p $${DESTDIR}/package
        QMAKE_POST_LINK += && cd $${DESTDIR} && $$dirname(QMAKE_QMAKE)/macdeployqt qgroundcontrol.app -verbose=2 -qmldir=$${BASEDIR}/src
        QMAKE_POST_LINK += && cd $${OUT_PWD}
        QMAKE_POST_LINK += && hdiutil create -layout SPUD -srcfolder $${DESTDIR}/qgroundcontrol.app -volname QGroundControl $${DESTDIR}/package/qgroundcontrol.dmg
    }
    WindowsBuild {
        # The pdb moving command are commented out for now since we are including the .pdb in the installer. This makes it much
        # easier to debug user crashes.
        #QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY $${DESTDIR_WIN}\\qgroundcontrol.pdb
        #QMAKE_POST_LINK += $$escape_expand(\\n) del $${DESTDIR_WIN}\\qgroundcontrol.pdb
        QMAKE_POST_LINK += $$escape_expand(\\n) cd $$BASEDIR_WIN && $$quote("\"C:\\Program Files \(x86\)\\NSIS\\makensis.exe\"" /NOCD "\"/XOutFile $${DESTDIR_WIN}\\qgroundcontrol-installer.exe\"" "$$BASEDIR_WIN\\deploy\\qgroundcontrol_installer.nsi")
        #QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY qgroundcontrol.pdb $${DESTDIR_WIN}
        #QMAKE_POST_LINK += $$escape_expand(\\n) del qgroundcontrol.pdb
        OTHER_FILES += deploy/qgroundcontrol_installer.nsi
    }
    LinuxBuild {
        #-- TODO: This uses hardcoded paths. It should use $${DESTDIR}
        QMAKE_POST_LINK += && mkdir -p release/package
        QMAKE_POST_LINK += && tar -cjf release/package/qgroundcontrol.tar.bz2 release --exclude='package' --transform 's/release/qgroundcontrol/'
    }
    AndroidBuild {
        #-- TODO: This uses hardcoded paths. It should use $${DESTDIR}
        QMAKE_POST_LINK += && mkdir -p $${DESTDIR}/package
        QMAKE_POST_LINK += && make install INSTALL_ROOT=$${DESTDIR}/android-build/
        QMAKE_POST_LINK += && androiddeployqt --input android-libqgroundcontrol.so-deployment-settings.json --output $${DESTDIR}/android-build --deployment bundled --gradle --sign $${BASEDIR}/android/android_release.keystore dagar --storepass $$(ANDROID_STOREPASS)
        QMAKE_POST_LINK += && cp $${DESTDIR}/android-build/build/outputs/apk/android-build-release-signed.apk $${DESTDIR}/package/qgroundcontrol.apk
    }
}

# -------------------------------------------------
# QGroundControl - Micro Air Vehicle Groundstation
# Please see our website at <http://qgroundcontrol.org>
# Maintainer:
# Lorenz Meier <lm@inf.ethz.ch>
# (c) 2009-2014 QGroundControl Developers
# This file is part of the open groundstation project
# QGroundControl is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# QGroundControl is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with QGroundControl. If not, see <http://www.gnu.org/licenses/>.
# -------------------------------------------------

installer {
    DEFINES += QGC_INSTALL_RELEASE
    MacBuild {
        VideoEnabled {
            # Install the gstreamer framework
            # This will:
            # Copy from the original distibution into DESTDIR/gstwork (if not already there)
            # Prune the framework, removing stuff we don't need
            # Relocate all dylibs so they can work under @executable_path/...
            # Copy the result into the app bundle
            # Make sure qgroundcontrol can find them
            message("Preparing GStreamer Framework")
            QMAKE_POST_LINK += && $$BASEDIR/tools/prepare_gstreamer_framework.sh $${OUT_PWD}/gstwork/ $${DESTDIR}/$${TARGET}.app $${TARGET}
        } else {
            message("Skipping GStreamer Framework")
        }
        # We cd to release directory so we can run macdeployqt without a path to the
        # qgroundcontrol.app file. If you specify a path to the .app file the symbolic
        # links to plugins will not be created correctly.
        QMAKE_POST_LINK += && mkdir -p $${DESTDIR}/package
        QMAKE_POST_LINK += && $$dirname(QMAKE_QMAKE)/macdeployqt qgroundcontrol.app -verbose=2 -qmldir=$${BASEDIR}/src
        QMAKE_POST_LINK += && cd $${OUT_PWD}
        QMAKE_POST_LINK += && hdiutil create -layout SPUD -srcfolder $${DESTDIR}/qgroundcontrol.app -volname QGroundControl $${DESTDIR}/package/qgroundcontrol.dmg
    }
    WindowsBuild {
        # The pdb moving command are commented out for now since we are including the .pdb in the installer. This makes it much
        # easier to debug user crashes.
        #QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY $${DESTDIR_WIN}\\qgroundcontrol.pdb
        #QMAKE_POST_LINK += $$escape_expand(\\n) del $${DESTDIR_WIN}\\qgroundcontrol.pdb
        QMAKE_POST_LINK += $$escape_expand(\\n) cd $$BASEDIR_WIN && $$quote("\"C:\\Program Files \(x86\)\\NSIS\\makensis.exe\"" /NOCD "\"/XOutFile $${DESTDIR_WIN}\\qgroundcontrol-installer.exe\"" "$$BASEDIR_WIN\\deploy\\qgroundcontrol_installer.nsi")
        #QMAKE_POST_LINK += $$escape_expand(\\n) $$QMAKE_COPY qgroundcontrol.pdb $${DESTDIR_WIN}
        #QMAKE_POST_LINK += $$escape_expand(\\n) del qgroundcontrol.pdb
        OTHER_FILES += deploy/qgroundcontrol_installer.nsi
    }
    LinuxBuild {
        #-- TODO: This uses hardcoded paths. It should use $${DESTDIR}
        QMAKE_POST_LINK += && mkdir -p release/package
        QMAKE_POST_LINK += && tar -cjf release/package/qgroundcontrol.tar.bz2 release --exclude='package' --transform 's/release/qgroundcontrol/'
    }
    AndroidBuild {
        #-- TODO: This uses hardcoded paths. It should use $${DESTDIR}
        QMAKE_POST_LINK += && mkdir -p $${DESTDIR}/package
        QMAKE_POST_LINK += && make install INSTALL_ROOT=$${DESTDIR}/android-build/
        QMAKE_POST_LINK += && androiddeployqt --input android-libqgroundcontrol.so-deployment-settings.json --output $${DESTDIR}/android-build --deployment bundled --gradle --sign $${BASEDIR}/android/android_release.keystore dagar --storepass $$(ANDROID_STOREPASS)
        QMAKE_POST_LINK += && cp $${DESTDIR}/android-build/build/outputs/apk/android-build-release-signed.apk $${DESTDIR}/package/qgroundcontrol.apk
    }
}


Changes: libmeegotouchcore - libQt4-xml module in use Details: Since the parts from QtXml were taken in use it is needed to add also include paths etc. 	 src/corelib/i18n/mlocationdatabase.cpp:23:24: error: QDomDocument: No such file or directory

# this file contains the parts that are common to all libs

MOC_DIR = .moc
GEN_DIR = .gen
OBJECTS_DIR = .obj
DESTDIR = $$M_BUILD_TREE/lib
TEMPLATE = lib

include(../mkspecs/common.pri)
include(predeps.pri)
include(mgen.pri)

VERSION = $${M_VERSION}
DEFINES += M_VERSION=\\\"$${M_VERSION}\\\"

INCLUDEPATH += $${M_SOURCE_TREE}/src/include
INCLUDEPATH += $${OUT_PWD}/.moc
INCLUDEPATH += $${OUT_PWD}/.gen

QMAKE_STRIP = echo

PRE_TARGETDEPS += $$MGEN_EXECUTABLE $$MMOC_EXECUTABLE

CONFIG += qt warn_on depend_includepath qmake_cache target_qt dll create_prl
!win32:CONFIG += link_pkgconfig
macx:CONFIG += lib_bundle

QMAKE_MOC = $$MMOC_EXECUTABLE
contains(DEFINES, IS_ARMEL) {
    QMAKE_MOC = $$MMOC_PERL
}

QMAKE_CFLAGS += -Werror

QMAKE_CXXFLAGS += -DM_EXPORTS
!win32-msvc*:QMAKE_CXXFLAGS += -Wno-long-long -pedantic
!win32:QMAKE_CXXFLAGS += -Werror -Wno-variadic-macros -fvisibility=hidden

!win32-msvc*:LIBS += -lm -lX11
macx:LIBS -= -lX11
win32:LIBS -= -lX11

# enable QString optimizations
DEFINES += QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS

# Check for mixing of const and non-const iterators,
# which can cause problems when built with some compilers:
DEFINES += QT_STRICT_ITERATORS

## Build configuration

## Features

contains(M_BUILD_FEATURES, coverage) {
  QMAKE_CXXFLAGS += --coverage
  QMAKE_LFLAGS += --coverage
}

contains(M_BUILD_FEATURES, timestamps) {
  DEFINES += M_TIMESTAMP
}

contains(M_BUILD_FEATURES, testable) {
  DEFINES += TESTABLE
  HEADERS += ../corelib/core/testabilityinterface.h
}

contains(M_BUILD_FEATURES, pch) {
  DEFINES += USING_PCH
  PRECOMPILED_HEADER = pch/stable_pch.h
  HEADERS += pch/stable_pch.h
  CONFIG += precompile_header
}

contains(M_PROFILE_PARTS, theme) {
  DEFINES += M_THEMESYSTEM_PROFILING_SUPPORT
}

## Dependencies

# list pkg-config dependencies here
!macx:PKGCONFIG += xdamage

contains(DEFINES, HAVE_ICU) {
    LIBS += -licui18n -licuuc -licudata
}

contains(DEFINES, HAVE_CONTEXTSUBSCRIBER) {
    PKGCONFIG += contextsubscriber-1.0
}

contains(DEFINES, HAVE_CONTENTACTION) {
    PKGCONFIG += contentaction-0.1
}

contains(DEFINES, HAVE_GSTREAMER) {
    PKGCONFIG += gstreamer-0.10
    # TODO: Is this  necessary?
    LIBS += -lgstbase-0.10 -lgstinterfaces-0.10 -lgstvideo-0.10

    # On Mac, GStreamer can be also in /opt if installed via macports.org or /usr/local if installed from sources
    macx:INCLUDEPATH += /opt/local/include/gstreamer-0.10 /opt/local/include/glib-2.0 /opt/local/lib/glib-2.0/include/ /opt/local/include/libxml2
    macx:LIBS += -L/opt/local/lib -lgstreamer-0.10.0 -lgstbase-0.10.0 -lgstinterfaces-0.10.0 -lgstvideo-0.10.0 -lglib-2.0.0 -lgobject-2.0.0
}

contains(DEFINES, HAVE_GCONF) {
    PKGCONFIG += gconf-2.0
    # TODO: Why is this necessary?
    # The PKGCONFIG call above usually causes qmake to link to the correct libraries
    # automatically, but that does not happen if we remove these explicit mentions.
    LIBS += -lgconf-2
}

contains(DEFINES, HAVE_DBUS) {
    QT += dbus
}

contains(DEFINES, HAVE_GLIB) {
    LIBS += -lglib-2.0
}

QT += \
    svg \
    network \
    core \
    gui \
    opengl \
    xml

QMAKE_EXTRA_TARGETS += check
check.depends = $$DESTDIR/lib$${TARGET}.so.$$VERSION
check.commands = $$system(true)

QMAKE_EXTRA_TARGETS += check-xml
check-xml.depends = $$DESTDIR/lib$${TARGET}.so.$$VERSION
check-xml.commands = $$system(true)
QMAKE_CLEAN += \
    *.gcov \
    ./.obj/*.gcno \
    ./.obj/*.gcda \

target.path = $$M_INSTALL_LIBS

# this file contains the parts that are common to all libs

MOC_DIR = .moc
GEN_DIR = .gen
OBJECTS_DIR = .obj
DESTDIR = $$M_BUILD_TREE/lib
TEMPLATE = lib

include(../mkspecs/common.pri)
include(predeps.pri)
include(mgen.pri)

VERSION = $${M_VERSION}
DEFINES += M_VERSION=\\\"$${M_VERSION}\\\"

INCLUDEPATH += $${M_SOURCE_TREE}/src/include
INCLUDEPATH += $${OUT_PWD}/.moc
INCLUDEPATH += $${OUT_PWD}/.gen

QMAKE_STRIP = echo

PRE_TARGETDEPS += $$MGEN_EXECUTABLE $$MMOC_EXECUTABLE

CONFIG += qt warn_on depend_includepath qmake_cache target_qt dll create_prl
!win32:CONFIG += link_pkgconfig
macx:CONFIG += lib_bundle

QMAKE_MOC = $$MMOC_EXECUTABLE
contains(DEFINES, IS_ARMEL) {
    QMAKE_MOC = $$MMOC_PERL
}

QMAKE_CFLAGS += -Werror

QMAKE_CXXFLAGS += -DM_EXPORTS
!win32-msvc*:QMAKE_CXXFLAGS += -Wno-long-long -pedantic
!win32:QMAKE_CXXFLAGS += -Werror -Wno-variadic-macros -fvisibility=hidden

!win32-msvc*:LIBS += -lm -lX11
macx:LIBS -= -lX11
win32:LIBS -= -lX11

# enable QString optimizations
DEFINES += QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS

# Check for mixing of const and non-const iterators,
# which can cause problems when built with some compilers:
DEFINES += QT_STRICT_ITERATORS

## Build configuration

## Features

contains(M_BUILD_FEATURES, coverage) {
  QMAKE_CXXFLAGS += --coverage
  QMAKE_LFLAGS += --coverage
}

contains(M_BUILD_FEATURES, timestamps) {
  DEFINES += M_TIMESTAMP
}

contains(M_BUILD_FEATURES, testable) {
  DEFINES += TESTABLE
  HEADERS += ../corelib/core/testabilityinterface.h
}

contains(M_BUILD_FEATURES, pch) {
  DEFINES += USING_PCH
  PRECOMPILED_HEADER = pch/stable_pch.h
  HEADERS += pch/stable_pch.h
  CONFIG += precompile_header
}

contains(M_PROFILE_PARTS, theme) {
  DEFINES += M_THEMESYSTEM_PROFILING_SUPPORT
}

## Dependencies

# list pkg-config dependencies here
!macx:PKGCONFIG += xdamage

contains(DEFINES, HAVE_ICU) {
    LIBS += -licui18n -licuuc -licudata
}

contains(DEFINES, HAVE_CONTEXTSUBSCRIBER) {
    PKGCONFIG += contextsubscriber-1.0
}

contains(DEFINES, HAVE_CONTENTACTION) {
    PKGCONFIG += contentaction-0.1
}

contains(DEFINES, HAVE_GSTREAMER) {
    PKGCONFIG += gstreamer-0.10
    # TODO: Is this  necessary?
    LIBS += -lgstbase-0.10 -lgstinterfaces-0.10 -lgstvideo-0.10

    # On Mac, GStreamer can be also in /opt if installed via macports.org or /usr/local if installed from sources
    macx:INCLUDEPATH += /opt/local/include/gstreamer-0.10 /opt/local/include/glib-2.0 /opt/local/lib/glib-2.0/include/ /opt/local/include/libxml2
    macx:LIBS += -L/opt/local/lib -lgstreamer-0.10.0 -lgstbase-0.10.0 -lgstinterfaces-0.10.0 -lgstvideo-0.10.0 -lglib-2.0.0 -lgobject-2.0.0
}

contains(DEFINES, HAVE_GCONF) {
    PKGCONFIG += gconf-2.0
    # TODO: Why is this necessary?
    # The PKGCONFIG call above usually causes qmake to link to the correct libraries
    # automatically, but that does not happen if we remove these explicit mentions.
    LIBS += -lgconf-2
}

contains(DEFINES, HAVE_DBUS) {
    QT += dbus
}

contains(DEFINES, HAVE_GLIB) {
    LIBS += -lglib-2.0
}

QT += \
    svg \
    network \
    core \
    gui \
    opengl

QMAKE_EXTRA_TARGETS += check
check.depends = $$DESTDIR/lib$${TARGET}.so.$$VERSION
check.commands = $$system(true)

QMAKE_EXTRA_TARGETS += check-xml
check-xml.depends = $$DESTDIR/lib$${TARGET}.so.$$VERSION
check-xml.commands = $$system(true)
QMAKE_CLEAN += \
    *.gcov \
    ./.obj/*.gcno \
    ./.obj/*.gcda \

target.path = $$M_INSTALL_LIBS