# fresh lib project file

# include config file
include( ../config.pri )

TEMPLATE    = lib
CONFIG  *= staticlib
greaterThan(QT_MAJOR_VERSION, 4):QT *= widgets
DESTDIR = $${PACKAGE_BUILD_PATH}/$${Q_TARGET_ARCH}/$$buildMode()

FRESH_SOURCES_PATHS = $$getFolders( ./objects ./widgets )
INCLUDEPATH *= ./objects ./widgets
#INCLUDEPATH    *= $${FRESH_SOURCES_PATHS}
DEPENDPATH  *= $${FRESH_SOURCES_PATHS}

# make library exportable
DEFINES *= MONKEY_CORE_BUILD

RESOURCES   *= resources/fresh.qrc

FORMS   *= widgets/pEnvironmentVariableEditor.ui \
    widgets/pEnvironmentVariablesEditor.ui \
    widgets/TranslationDialog.ui

HEADERS *= objects/GetOpt.h \
    objects/MonkeyExport.h \
    objects/pIconManager.h \
    objects/pSettings.h \
    objects/QSingleton.h \
    widgets/pActionsManager.h \
    widgets/pActionsShortcutsManager.h \
    widgets/pColorButton.h \
    widgets/pConsole.h \
    widgets/pConsoleCommand.h \
    widgets/pDockToolBar.h \
    widgets/pDockToolBarManager.h \
    widgets/pDockWidget.h \
    widgets/pDockWidgetTitleBar.h \
    widgets/pExtendedWorkspace.h \
    widgets/pFileDialog.h \
    widgets/pFileListEditor.h \
    widgets/pFilesListWidget.h \
    widgets/pGroupPath.h \
    widgets/pKeySequenceInput.h \
    widgets/pMainWindow.h \
    widgets/pMenuBar.h \
    widgets/pMultiToolBar.h \
    widgets/pPathListEditor.h \
    widgets/pQueuedMessageWidget.h \
    widgets/pQueuedStatusBar.h \
    widgets/pStringListEditor.h \
    widgets/pTabBar.h \
    widgets/pTreeComboBox.h \
    objects/pStylesActionGroup.h \
    widgets/pStylesToolButton.h \
    widgets/pQueuedMessageToolBar.h \
    objects/pVersion.h \
    widgets/pEnvironmentVariableEditor.h \
    widgets/pEnvironmentVariablesEditor.h \
    widgets/pEnvironmentVariablesModel.h \
    widgets/pEnvironmentVariablesManager.h \
    objects/TranslationManager.h \
    widgets/TranslationDialog.h \
    objects/pGenericTableModel.h \
    widgets/pCheckComboBox.h \
    widgets/pLocaleModel.h \
    widgets/pTabbedWorkspaceCornerButton.h

SOURCES *= objects/GetOpt.cpp \
    objects/pIconManager.cpp \
    objects/pSettings.cpp \
    objects/QSingleton.cpp \
    widgets/pActionsManager.cpp \
    widgets/pActionsShortcutsManager.cpp \
    widgets/pColorButton.cpp \
    widgets/pConsole.cpp \
    widgets/pConsoleCommand.cpp \
    widgets/pDockToolBar.cpp \
    widgets/pDockToolBarManager.cpp \
    widgets/pDockWidget.cpp \
    widgets/pDockWidgetTitleBar.cpp \
    widgets/pExtendedWorkspace.cpp \
    widgets/pFileDialog.cpp \
    widgets/pFileListEditor.cpp \
    widgets/pFilesListWidget.cpp \
    widgets/pGroupPath.cpp \
    widgets/pKeySequenceInput.cpp \
    widgets/pMainWindow.cpp \
    widgets/pMenuBar.cpp \
    widgets/pMultiToolBar.cpp \
    widgets/pPathListEditor.cpp \
    widgets/pQueuedMessageWidget.cpp \
    widgets/pQueuedStatusBar.cpp \
    widgets/pStringListEditor.cpp \
    widgets/pTabBar.cpp \
    widgets/pTreeComboBox.cpp \
    objects/pStylesActionGroup.cpp \
    widgets/pStylesToolButton.cpp \
    widgets/pQueuedMessageToolBar.cpp \
    objects/pVersion.cpp \
    widgets/pEnvironmentVariableEditor.cpp \
    widgets/pEnvironmentVariablesEditor.cpp \
    widgets/pEnvironmentVariablesModel.cpp \
    widgets/pEnvironmentVariablesManager.cpp \
    objects/TranslationManager.cpp \
    widgets/TranslationDialog.cpp \
    objects/pGenericTableModel.cpp \
    widgets/pCheckComboBox.cpp \
    widgets/pLocaleModel.cpp \
    widgets/pTabbedWorkspaceCornerButton.cpp

!greaterThan(QT_MAJOR_VERSION, 4) {
    HEADERS *= widgets/pTabbedMainWindow.h \
        widgets/pTabbedWorkspace.h \
        widgets/pTabbedWorkspaceCorner.h \
        widgets/pTabbedWorkspaceRightCorner.h
    
    SOURCES *= widgets/pTabbedMainWindow.cpp \
        widgets/pTabbedWorkspace.cpp \
        widgets/pTabbedWorkspaceCorner.cpp \
        widgets/pTabbedWorkspaceRightCorner.cpp
}