Skip to content

Commit

Permalink
Updates to new qmake-based build system
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
navv1234 committed Aug 5, 2016
1 parent cc43e21 commit 55f2e34
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 25 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,18 @@ SimulationCraft.app
.qmake.stash
qrc_simcqt.cpp
*.autosave
lib/build
lib/release
lib/debug
lib/*.vcxproj*
gui/build
gui/release
gui/debug
gui/*.vcxproj*
cli/build
cli/release
cli/debug
cli/*.vcxproj*
simulationcraft.sln
simulationcraft*.db
engine/simulationcraft.hpp.cpp
4 changes: 0 additions & 4 deletions cli/cli.pro
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ CONFIG(debug, debug|release): LIBS += -L../lib/debug -lsimcengine
win32 {
CONFIG += console
QMAKE_PROJECT_NAME = "Simulationcraft CLI"
!isEmpty(PGO) {
QMAKE_LFLAGS_RELEASE += /LTCG
QMAKE_CXXFLAGS_RELEASE += /GL
}
}

include(../source_files/QT_engine_main.pri)
10 changes: 0 additions & 10 deletions gui/gui.pro
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@ macx {
win32 {
QMAKE_PROJECT_NAME = "Simulationcraft GUI"
RC_FILE = ../qt/simcqt.rc
!isEmpty(PGO) {
win32-msvc2015 {
QMAKE_LFLAGS_RELEASE += /LTCG /USEPROFILE
}

win32-msvc2013 {
QMAKE_CXXFLAGS_RELEASE += /GL
QMAKE_LFLAGS_RELEASE += /LTCG
}
}
}

RESOURCES = \
Expand Down
10 changes: 0 additions & 10 deletions lib/lib.pro
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@ PRECOMPILED_HEADER = ../engine/simulationcraft.hpp

win32 {
QMAKE_PROJECT_NAME = "Simulationcraft Engine"
!isEmpty(PGO) {
win32-msvc2015 {
QMAKE_LFLAGS_RELEASE += /LTCG /USEPROFILE
}

win32-msvc2013 {
QMAKE_CXXFLAGS_RELEASE += /GL
QMAKE_LFLAGS_RELEASE += /LTCG
}
}
}

!isEmpty(SC_DEFAULT_APIKEY) {
Expand Down
2 changes: 1 addition & 1 deletion qt/simcqt.rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Microsoft Visual C++ generated resource script.
//
#include "resource."
//#include "resource."

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
Expand Down
15 changes: 15 additions & 0 deletions simulationcraft.pri
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,19 @@ macx {

win32 {
LIBS += -lwininet -lshell32
win32-msvc2013|win32-msvc2015 {
QMAKE_CXXFLAGS_RELEASE += /Ot /MP
}

!isEmpty(PGO) {
win32-msvc2013 {
QMAKE_LFLAGS_RELEASE += /LTCG
QMAKE_CXXFLAGS_RELEASE += /GL
}

win32-msvc2015 {
QMAKE_CXXFLAGS_RELEASE += /GL
QMAKE_LFLAGS_RELEASE += /LTCG /USEPROFILE /PGD:"..\SimulationCraft64.pgd"
}
}
}

0 comments on commit 55f2e34

Please sign in to comment.