TEMPLATE = lib
TARGET = Utils

QT += network xml svg gui widgets qml quick quickwidgets

DEFINES += QTCREATOR_UTILS_LIB

include(../../library.pri)

DEFINES += DATA_REL_PATH=$$shell_quote(\"$$relative_path($$GCS_DATA_PATH, $$GCS_APP_PATH)\")
DEFINES += LIB_REL_PATH=$$shell_quote(\"$$relative_path($$GCS_LIBRARY_PATH, $$GCS_APP_PATH)\")
DEFINES += PLUGIN_REL_PATH=$$shell_quote(\"$$relative_path($$GCS_PLUGIN_PATH, $$GCS_APP_PATH)\")

SOURCES += \
    stringutils.cpp \
    pathchooser.cpp \
    basevalidatinglineedit.cpp \
    linecolumnlabel.cpp \
    qtcolorbutton.cpp \
    synchronousprocess.cpp \
    consoleprocess.cpp \
    treewidgetcolumnstretcher.cpp \
    checkablemessagebox.cpp \
    styledbar.cpp \
    stylehelper.cpp \
    welcomemodetreewidget.cpp \
    iwelcomepage.cpp \
    detailsbutton.cpp \
    detailswidget.cpp \
    coordinateconversions.cpp \
    pathutils.cpp \
    worldmagmodel.cpp \
    homelocationutil.cpp \
    mytabbedstackwidget.cpp \
    mytabwidget.cpp \
    quickwidgetproxy.cpp \
    svgimageprovider.cpp \
    hostosinfo.cpp \
    logfile.cpp \
    crc.cpp \
    mustache.cpp \
    textbubbleslider.cpp

SOURCES += xmlconfig.cpp

win32 {
    SOURCES += \
        abstractprocess_win.cpp \
        consoleprocess_win.cpp \
        winutils.cpp
    HEADERS += winutils.h
}
else:SOURCES += consoleprocess_unix.cpp

HEADERS += \
    utils_global.h \
    stringutils.h \
    listutils.h \
    pathchooser.h \
    basevalidatinglineedit.h \
    linecolumnlabel.h \
    qtcolorbutton.h \
    abstractprocess.h \
    consoleprocess.h \
    synchronousprocess.h \
    treewidgetcolumnstretcher.h \
    checkablemessagebox.h \
    qtcassert.h \
    styledbar.h \
    stylehelper.h \
    welcomemodetreewidget.h \
    iwelcomepage.h \
    detailsbutton.h \
    detailswidget.h \
    coordinateconversions.h \
    pathutils.h \
    worldmagmodel.h \
    homelocationutil.h \
    mytabbedstackwidget.h \
    mytabwidget.h \
    quickwidgetproxy.h \
    svgimageprovider.h \
    hostosinfo.h \
    logfile.h \
    crc.h \
    mustache.h \
    textbubbleslider.h \
    filelogger.h

HEADERS += xmlconfig.h

FORMS += \
    checkablemessagebox.ui

RESOURCES += utils.qrc
