-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathBAE.pro
110 lines (87 loc) · 1.88 KB
/
BAE.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
100
101
102
103
104
105
106
107
108
109
110
###############################
## BUILD OPTIONS
###############################
TEMPLATE = app
TARGET = bae
QT += core gui widgets
CONFIG += c++11 zlib
INCLUDEPATH += src lib
CONFIG(debug, debug|release) {
# Debug Options
BUILD = debug
CONFIG += console
}
###############################
## PROJECT SCOPES
###############################
SOURCES += \
src/main.cpp \
src/mainwindow.cpp \
src/archive.cpp \
src/bsa.cpp \
src/progressdialog.cpp
HEADERS += \
src/mainwindow.h \
src/archive.h \
src/bsa.h \
src/progressdialog.h \
lib/dds.h
FORMS += ui/mainwindow.ui \
ui/progressdialog.ui
###############################
## DEPENDENCY SCOPES
###############################
zlib {
INCLUDEPATH += lib/zlib
HEADERS += \
lib/zlib/crc32.h \
lib/zlib/deflate.h \
lib/zlib/gzguts.h \
lib/zlib/inffast.h \
lib/zlib/inffixed.h \
lib/zlib/inflate.h \
lib/zlib/inftrees.h \
lib/zlib/trees.h \
lib/zlib/zconf.h \
lib/zlib/zlib.h \
lib/zlib/zutil.h
SOURCES += \
lib/zlib/adler32.c \
lib/zlib/compress.c \
lib/zlib/crc32.c \
lib/zlib/deflate.c \
lib/zlib/gzclose.c \
lib/zlib/gzlib.c \
lib/zlib/gzread.c \
lib/zlib/gzwrite.c \
lib/zlib/infback.c \
lib/zlib/inffast.c \
lib/zlib/inflate.c \
lib/zlib/inftrees.c \
lib/zlib/trees.c \
lib/zlib/uncompr.c \
lib/zlib/zutil.c
}
###############################
## COMPILER SCOPES
###############################
*msvc* {
# So VCProj Filters do not flatten headers/source
CONFIG -= flat
# COMPILER FLAGS
# Optimization flags
#QMAKE_CXXFLAGS_RELEASE *= -O2
# Multithreaded compiling for Visual Studio
#QMAKE_CXXFLAGS += -MP
}
*-g++ {
# COMPILER FLAGS
# Optimization flags
QMAKE_CXXFLAGS_DEBUG -= -O0 -g
QMAKE_CXXFLAGS_DEBUG *= -Og -g3
QMAKE_CXXFLAGS_RELEASE *= -O3 -mfpmath=sse
# C++11 Support
QMAKE_CXXFLAGS_RELEASE *= -std=c++11
# Extension flags
QMAKE_CXXFLAGS_RELEASE *= -msse2 -msse
}