include( ../../common.pri )
include( ../../app.pri )

QT       += core gui network

QMAKE_LFLAGS_RELEASE += -static -static-libgcc -static-libstdc++

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = Legacy
TEMPLATE = app

CXXFLAGS += -O2 -fno-stack-limit
CONFIG += resources_big

SOURCES += \
    src/main.cpp \
    gui/mainwindow.cpp \
    src/menuentry.cpp \
    src/legacyapp.cpp \
    src/filesystem.cpp \
    gui/statuswidget.cpp \
    gui/rusificationwidget.cpp \
    gui/settingswidget.cpp \
    gui/newswidget.cpp \
    gui/helpwidget.cpp \
    src/networkdownloader.cpp \
    src/rusificationtreeitem.cpp

HEADERS += \
    gui/mainwindow.h \
    src/menuentry.h \
    src/legacyapp.h \
    src/filesystem.h \
    gui/statuswidget.h \
    gui/rusificationwidget.h \
    gui/settingswidget.h \
    gui/newswidget.h \
    gui/helpwidget.h \
    src/networkdownloader.h \
    src/rusificationtreeitem.h

FORMS += \
    gui/mainwindow.ui \
    gui/statuswidget.ui \
    gui/rusificationwidget.ui \
    gui/settingswidget.ui \
    gui/newswidget.ui \
    gui/helpwidget.ui

CONFIG(debug, debug|release) {
	RESOURCES += \
                resources/backgrounds.qrc \
                resources/common.qrc
} else {
	include(build_res.pri)
}

win32:RC_ICONS = $$PWD/resources/appicon.ico

INCLUDEPATH += $$PWD/src
INCLUDEPATH += $$PWD/gui

LIBS += -llibLotroDat_static
LIBS += -llibyaml-cpp
LIBS += -llibzlibstatic
