-
Notifications
You must be signed in to change notification settings - Fork 0
/
ed2.pro
99 lines (79 loc) · 2.58 KB
/
ed2.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
TARGET = "Captain Fractal- Attack of the Space Communists"
OBJECTS_DIR = obj
QT += opengl core
isEqual(QT_MAJOR_VERSION, 5) {
cache()
#DEFINES += QT5BUILD
}
win32 {
INCLUDEPATH += C:\SDL2\i686-w64-mingw32\include\SDL2
INCLUDEPATH += C:\SDL2\i686-w64-mingw32\include
LIBS += -L"C:/SDL2/lib/x64/" -lSDL2 -lSDL2main -lSDL2_image -lSDL2_ttf -lSDL2_mixer
#LIBS += -L"C:\SDL2\i686-w64-mingw32\lib" -mwindows -lmingw32 -lSDL2_image -lSDL2_ttf -lSDL2_mixer -lSDL2main -lSDL2
LIBS += -L"C:/NGL/lib/NGL.lib" -lNGL
}
INCLUDEPATH += $$PWD/include
MOC_DIR = moc
SOURCES += $$PWD/main.cpp \
$$PWD/src/*.cpp \
$$PWD/src/ui/*.cpp \
$$PWD/src/input/*.cpp \
$$PWD/src/math/*.cpp
HEADERS += $$PWD/include/*.hpp \
$$PWD/include/ui/*.hpp \
$$PWD/include/input/*.hpp \
$$PWD/include/math/*.hpp
CONFIG += console
!equals(PWD, $${OUT_PWD}){
copydata.commands = echo "creating destination dirs";
# now make a dir
copydata.commands += mkdir -p $$OUT_PWD/shaders;
copydata.commands += echo "copying files";
# then copy the files
copydata.commands += $(COPY_DIR) $$PWD/shaders/* $$OUT_PWD/shaders/;
# now make sure the first target is built before copy
first.depends = $(first) copydata
export(first.depends)
export(copydata.commands)
# now add it as an extra target
QMAKE_EXTRA_TARGETS += first copydata
}
win32 {
PRE_TARGETDEPS += C:/NGL/lib/NGL.lib
INCLUDEPATH += -I c:/boost
INCLUDEPATH += $$(HOMEDRIVE)/NGL/include/
DEFINES += GL42
DEFINES += WIN32
DEFINES += _WIN32
DEFINES += _USE_MATH_DEFINES
LIBS += -LC:/NGL/lib/ -lNGL
DEFINES += NO_DLL
QMAKE_CXXFLAGS += "_ITERATOR_DEBUG_LEVEL_0"
}
OTHER_FILES += readme.md \
+= ./shaders/*.glsl \
+= ./resources/menus/*.txt \
+= ./resources/ships/*.txt \
+= ./resources/weapons/*.txt \
+= ./resources/config.txt
CONFIG += console
unix {
QMAKE_CXXFLAGS += $$system(sdl2-config --cflags)
QMAKE_CXXFLAGS -= -O
QMAKE_CXXFLAGS -= -O1
QMAKE_CXXFLAGS -= -O2
QMAKE_CXXFLAGS *= -O3
LIBS += $$system(sdl2-config --libs)
LIBS += -lSDL2_image -lSDL2_mixer -lSDL2_ttf
}
NGLPATH = $$(NGLDIR)
isEmpty(NGLPATH){ # note brace must be here
message("including $HOME/NGL")
include($(HOME)/NGL/UseNGL.pri)
}
else{ # note brace must be here
message("Using custom NGL location")
include($(NGLDIR)/UseNGL.pri)
}
DISTFILES += \
resources/menus/buyMenu.txt