aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Skoland <davidskoland@gmail.com>2018-12-26 16:48:30 +0100
committerDavid Skoland <davidskoland@gmail.com>2018-12-26 16:48:30 +0100
commit706f5bb7c702724bd679bf116a0efe781cd1aa52 (patch)
tree17119568aee6a968670dde308ea98e714d27f570
parent00cfd2750d39795e4c205aee2a33b92b1da2524d (diff)
simplified the project file
-rw-r--r--.gitignore1
-rw-r--r--Attorney_Online_remake.pro94
2 files changed, 15 insertions, 80 deletions
diff --git a/.gitignore b/.gitignore
index 9d5dcdb9..f525d7d7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,6 +11,7 @@ bass.lib
bins/
release/
debug/
+lib/
.qmake.stash
diff --git a/Attorney_Online_remake.pro b/Attorney_Online_remake.pro
index 2e8a5f82..4d7f3f12 100644
--- a/Attorney_Online_remake.pro
+++ b/Attorney_Online_remake.pro
@@ -14,77 +14,21 @@ TEMPLATE = app
VERSION = 2.6.0.0
-SOURCES += main.cpp\
- lobby.cpp \
- text_file_functions.cpp \
- path_functions.cpp \
- aoimage.cpp \
- file_functions.cpp \
- aobutton.cpp \
- debug_functions.cpp \
- networkmanager.cpp \
- aoapplication.cpp \
- aopacket.cpp \
- packet_distribution.cpp \
- hex_functions.cpp \
- encryption_functions.cpp \
- courtroom.cpp \
- aocharbutton.cpp \
- hardware_functions.cpp \
- aoscene.cpp \
- aomovie.cpp \
- misc_functions.cpp \
- aocharmovie.cpp \
- aoemotebutton.cpp \
- emotes.cpp \
- aosfxplayer.cpp \
- aomusicplayer.cpp \
- aoblipplayer.cpp \
- evidence.cpp \
- aoevidencebutton.cpp \
- charselect.cpp \
- aotextarea.cpp \
- aolineedit.cpp \
- aotextedit.cpp \
- aoevidencedisplay.cpp \
- discord_rich_presence.cpp \
- aooptionsdialog.cpp \
- chatlogpiece.cpp \
- aocaseannouncerdialog.cpp
+INCLUDEPATH += $$PWD/include
+DESTDIR = $$PWD/bin
+OBJECTS_DIR = $$PWD/build
+MOC_DIR = $$PWD/build
+
+SOURCES += $$files($$PWD/src/*.cpp)
+HEADERS += $$files($$PWD/include/*.h)
+LIBS += -L$$PWD/lib
+
+unix:LIBS += -lbass -ldiscord-rpc
+win32:LIBS += "bass.dll" -ldiscord-rpc
+
+CONFIG += c++11
-HEADERS += lobby.h \
- aoimage.h \
- file_functions.h \
- aobutton.h \
- debug_functions.h \
- networkmanager.h \
- aoapplication.h \
- datatypes.h \
- aopacket.h \
- hex_functions.h \
- encryption_functions.h \
- courtroom.h \
- aocharbutton.h \
- hardware_functions.h \
- aoscene.h \
- aomovie.h \
- misc_functions.h \
- aocharmovie.h \
- aoemotebutton.h \
- aosfxplayer.h \
- aomusicplayer.h \
- aoblipplayer.h \
- aoevidencebutton.h \
- aotextarea.h \
- aolineedit.h \
- aotextedit.h \
- aoevidencedisplay.h \
- discord_rich_presence.h \
- discord-rpc.h \
- aooptionsdialog.h \
- text_file_functions.h \
- chatlogpiece.h \
- aocaseannouncerdialog.h
+RESOURCES += resources.qrc
# 1. You need to get BASS and put the x86 bass DLL/headers in the project root folder
# AND the compilation output folder. If you are compiling statically, you'll probably
@@ -104,13 +48,3 @@ HEADERS += lobby.h \
# Naturally, the build process becomes significantly less convoluted if you simply
# compile dynamically. If your primary distribution method is via the launcher, then
# a simple dynamic compilation is recommended.
-unix:LIBS += -L$$PWD -lbass -ldiscord-rpc
-win32:LIBS += -L$$PWD "$$PWD/bass.dll" -ldiscord-rpc
-INCLUDEPATH += $$PWD/include
-
-CONFIG += c++11
-
-RESOURCES += \
- resources.qrc
-
-DISTFILES +=