Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kmkolasinski committed Aug 5, 2016
2 parents ca36c1f + 0d97108 commit 43238d0
Show file tree
Hide file tree
Showing 17 changed files with 1,286 additions and 137 deletions.
19 changes: 0 additions & 19 deletions .qmake.stash

This file was deleted.

60 changes: 40 additions & 20 deletions Sources/Sources.pro
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
TARGET = AwesomeBump

TEMPLATE = app
CONFIG += c++11
QT += opengl gui widgets
Expand All @@ -24,26 +26,20 @@ PEG_SOURCES += properties/Filter3DDOF.pef \
properties/ImageProperties.pef \
properties/Filters3D.pef


release_gl330 {
DEFINES += USE_OPENGL_330
TARGET = AwesomeBumpGL330
} else {
TARGET = AwesomeBump
}
gl330: DEFINES += USE_OPENGL_330

debug: DBG = -dgb
GL = -gl4
release_gl330: GL = -gl3
gl330: GL = -gl3

win32: LIBS += Opengl32.lib

SPEC=$$[QMAKE_SPEC]$$DBG$$GL
DESTDIR = $$TOP_DIR/workdir/$$SPEC/bin
OBJECTS_DIR = $$TOP_DIR/workdir/$$SPEC/obj
MOC_DIR = $$TOP_DIR/workdir/$$SPEC/moc
UI_DIR = $$TOP_DIR/workdir/$$SPEC/obj
RCC_DIR = $$TOP_DIR/workdir/$$SPEC/obj
MOC_DIR = $$TOP_DIR/workdir/$$SPEC/gen
UI_DIR = $$TOP_DIR/workdir/$$SPEC/gen
RCC_DIR = $$TOP_DIR/workdir/$$SPEC/gen

write_file("$$TOP_DIR/workdir/current", SPEC)

Expand All @@ -57,7 +53,7 @@ write_file("$$TOP_DIR/workdir/current", SPEC)
DEFINES += RESOURCE_BASE=\\\"./\\\"

VPATH += ../shared
INCLUDEPATH += ../shared include utils utils/QtnProperty
INCLUDEPATH += ../shared include utils utils/QtnProperty utils/contextinfo

HEADERS = glwidget.h \
mainwindow.h \
Expand All @@ -67,11 +63,8 @@ HEADERS = glwidget.h \
camera.h \
dialogheightcalculator.h \
qopenglerrorcheck.h \
utils/Mesh.hpp \
utils/tinyobj/tiny_obj_loader.h \
formsettingsfield.h \
formsettingscontainer.h \
utils/qglbuffers.h \
dialoglogger.h \
glwidgetbase.h \
formmaterialindicesmanager.h \
Expand All @@ -80,13 +73,19 @@ HEADERS = glwidget.h \
formimagebase.h \
dockwidget3dsettings.h \
gpuinfo.h \
properties/Dialog3DGeneralSettings.h \
utils/glslshaderparser.h \
utils/glslparsedshadercontainer.h \
properties/propertyconstructor.h \
properties/propertydelegateabfloatslider.h \
properties/PropertyABColor.h \
properties/PropertyDelegateABColor.h
properties/PropertyDelegateABColor.h \
properties/Dialog3DGeneralSettings.h \
utils/DebugMetricsMonitor.h \
utils/Mesh.hpp \
utils/qglbuffers.h \
utils/tinyobj/tiny_obj_loader.h \
utils/glslshaderparser.h \
utils/glslparsedshadercontainer.h \
utils/contextinfo/contextwidget.h \
utils/contextinfo/renderwindow.h

SOURCES = glwidget.cpp \
main.cpp \
Expand All @@ -110,15 +109,27 @@ SOURCES = glwidget.cpp \
dockwidget3dsettings.cpp \
gpuinfo.cpp \
properties/Dialog3DGeneralSettings.cpp \
utils/DebugMetricsMonitor.cpp \
utils/glslshaderparser.cpp \
utils/glslparsedshadercontainer.cpp \
properties/propertydelegateabfloatslider.cpp \
properties/PropertyABColor.cpp \
properties/PropertyDelegateABColor.cpp
properties/PropertyDelegateABColor.cpp \
utils/contextinfo/contextwidget.cpp \
utils/contextinfo/renderwindow.cpp


RESOURCES += content.qrc

exists("runtime.qrc") {
# build runtime archive
runtimeTarget.target = runtime.rcc
runtimeTarget.depends = $$PWD/runtime.qrc
runtimeTarget.commands = $$[QT_INSTALL_PREFIX]/bin/rcc -binary $$PWD/runtime.qrc -o $$OUT_PWD/runtime.rcc
QMAKE_EXTRA_TARGETS += runtimeTarget
PRE_TARGETDEPS += runtime.rcc
}

RC_FILE = resources/icon.rc

FORMS += \
Expand Down Expand Up @@ -153,20 +164,29 @@ config.path = $$DESTDIR
config.files += $$TOP_DIR/Bin/Configs $$TOP_DIR/Bin/Core
INSTALLS += config

exists("utils/qtcopydialog/qtcopydialog.pri") {
message("*** Adding 'copydialog' module.")
DEFINES += HAVE_RTCOPY
include("utils/qtcopydialog/qtcopydialog.pri")
}

exists("utils/QtnProperty/QtnProperty.pri") {
message("*** Adding 'qtnproperty' module.")
DEFINES += HAVE_QTNPROP
include("utils/QtnProperty/QtnProperty.pri")
} else {
error("QtnProperty not found. Did you forget to 'git submodule init/update'")
}

exists("utils/quazip/quazip.pri") {
message("*** Adding 'quazip' module.")
DEFINES += HAVE_QUAZIP
CONFIG += quazip_include_zip quazip_include_unzip
include("utils/quazip/quazip.pri")
}

exists("utils/fervor/Fervor.pri") {
message("*** Adding 'fervor' module.")
DEFINES += HAVE_FERVOR
FV_APP_VERSION = $$VERSION_FULL
include("utils/fervor/Fervor.pri")
Expand Down
3 changes: 2 additions & 1 deletion Sources/allaboutdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <QGLWidget>
#include <QtOpenGL>
#include <QDebug>
#include "contextwidget.h"
#include "allaboutdialog.h"
#include "ui_allaboutdialog.h"
#include "CommonObjects.h"
Expand All @@ -11,7 +12,7 @@ AllAboutDialog::AllAboutDialog(QWidget *parent, QGLWidget *surface) :
ui(new Ui::allAboutDialog)
{
ui->setupUi(this);
ui->groupBoxInfo->hide();
ui->groupBoxInfo->hide();

ui->version->setText(AWESOME_BUMP_VERSION);

Expand Down
1 change: 1 addition & 0 deletions Sources/content.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<file>resources/logo/logo_O.png</file>
<file>resources/logo/logo_M.png</file>
<file>resources/logo/logo_R.png</file>
<file>resources/logo/splash.png</file>
<file>resources/cursors/lightCursor.png</file>
<file>resources/cursors/centerCamCursor.png</file>
<file>resources/cursors/corner2.png</file>
Expand Down
Loading

0 comments on commit 43238d0

Please sign in to comment.