94 lines
1.9 KiB
Prolog
94 lines
1.9 KiB
Prolog
#
|
|
# Roo/E, the Kangaroo Punch Portable GUI Toolkit
|
|
# Copyright (C) 2022 Scott Duensing
|
|
#
|
|
# http://kangaroopunch.com
|
|
#
|
|
#
|
|
# This file is part of Roo/E.
|
|
#
|
|
# Roo/E is free software: you can redistribute it and/or modify it under the
|
|
# terms of the GNU Affero General Public License as published by the Free
|
|
# Software Foundation, either version 3 of the License, or (at your option)
|
|
# any later version.
|
|
#
|
|
# Roo/E 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 Affero General Public License
|
|
# along with Roo/E. If not, see <https://www.gnu.org/licenses/>.
|
|
#
|
|
|
|
|
|
TEMPLATE = app
|
|
CONFIG -= app_bundle
|
|
CONFIG -= qt
|
|
CONFIG += console
|
|
CONFIG += c99
|
|
|
|
CONFIG += BACKEND_SDL2
|
|
#CONFIG += BACKEND_DJGPP
|
|
|
|
SHARED = $$PWD/../shared
|
|
|
|
DESTDIR = $$OUT_PWD/bin
|
|
|
|
INCLUDEPATH += \
|
|
$$PWD/src \
|
|
$$SHARED
|
|
|
|
HEADERS += \
|
|
$$SHARED/macros.h \
|
|
$$SHARED/array.h \
|
|
$$SHARED/memory.h \
|
|
$$SHARED/stddclmr.h \
|
|
$$SHARED/thirdparty/memwatch/memwatch.h \
|
|
$$SHARED/thirdparty/stb_ds.h \
|
|
$$SHARED/log.h \
|
|
$$SHARED/util.h \
|
|
src/gui/font.h \
|
|
src/gui/gui.h \
|
|
src/gui/image.h \
|
|
src/gui/surface.h \
|
|
src/gui/widgets/label.h \
|
|
src/gui/wmwindow.h \
|
|
src/os.h \
|
|
src/platform/platform.h \
|
|
src/thirdparty/stb_image.h
|
|
|
|
SOURCES += \
|
|
$$SHARED/array.c \
|
|
$$SHARED/memory.c \
|
|
$$SHARED/thirdparty/memwatch/memwatch.c \
|
|
$$SHARED/log.c \
|
|
$$SHARED/util.c \
|
|
src/gui/font.c \
|
|
src/gui/gui.c \
|
|
src/gui/image.c \
|
|
src/gui/surface.c \
|
|
src/gui/widgets/label.c \
|
|
src/gui/wmwindow.c \
|
|
src/main.c \
|
|
src/platform/djgpp.c \
|
|
src/platform/sdl2.c
|
|
|
|
OTHER_FILES += \
|
|
$$PWD/../LICENSE
|
|
|
|
BACKEND_SDL2 {
|
|
DEFINES += BACKEND_SDL2
|
|
LIBS += \
|
|
-lSDL2
|
|
}
|
|
|
|
BACKEND_DJGPP {
|
|
DEFINES += BACKEND_DJGPP
|
|
OTHER_FILES += \
|
|
$$PWD/../build.sh \
|
|
$$PWD/../Makefile.djgpp \
|
|
$$PWD/../test.sh \
|
|
$$PWD/../test.conf
|
|
}
|
|
|