-
Notifications
You must be signed in to change notification settings - Fork 2
/
MrHash.pro
116 lines (99 loc) · 3.42 KB
/
MrHash.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
111
112
113
114
115
116
#-------------------------------------------------
#
# Project created by QtCreator 2010-07-13T15:46:54
#
#-------------------------------------------------
QT += widgets
TEMPLATE = app
contains(QT_ARCH, i386) {
PLATFORM = x86
} else {
PLATFORM = x64
ARCH_SUFFIX = 64
}
TARGET = mrhash$${ARCH_SUFFIX}
VPATH += ./src/ \
./include/ \
./lib/ \
./res/ \
./ui/
INCLUDEPATH += ./include/ \
./lib/ \
./third_party/boost-array/include/ \
./third_party/boost-assert/include/ \
./third_party/boost-config/include/ \
./third_party/boost-core/include/ \
./third_party/boost-crc/include/ \
./third_party/boost-integer/include/ \
./third_party/boost-static_assert/include/ \
./third_party/boost-throw_exception/include/ \
./third_party/boost-type_traits/include/
SOURCES += \
src/main.cpp \
src/mainwindow.cpp \
src/about.cpp \
src/haval.cpp \
src/qextrahash.cpp \
src/fileinfowidget.cpp \
src/filehashcalculator.cpp \
src/util.cpp \
src/crc.cpp \
src/fileiconwidget.cpp \
src/base64dialog.cpp \
src/filebase64calculator.cpp
HEADERS += \
include/mainwindow.hpp \
include/about.hpp \
include/haval.hpp \
include/qextrahash.hpp \
include/hashalgorithm.hpp \
include/fileinfowidget.hpp \
include/filehashcalculator.hpp \
include/util.hpp \
include/crc.hpp \
include/fileiconwidget.hpp \
include/base64dialog.hpp \
include/filebase64calculator.hpp
FORMS += mainwindow.ui about.ui fileinfowidget.ui fileiconwidget.ui base64dialog.ui
RESOURCES += res/icon.qrc res/translations.qrc
TRANSLATIONS = res/lang/it.ts
########################### CONFIGURATION ############################
CONFIG += c++14
CONFIG(debug, debug|release) {
BUILD = debug
} else {
BUILD = release
}
DESTDIR = $$PWD/bin/$${PLATFORM}/$${BUILD}/
OBJECTS_DIR = ./$${BUILD}/.obj
RCC_DIR = ./$${BUILD}/.rcc
MOC_DIR = ./$${BUILD}/.moc
UI_DIR = ./$${BUILD}/.ui
MAJOR_VER = 0
MINOR_VER = 3
PATCH_VER = 3
VERSION = $${MAJOR_VER}.$${MINOR_VER}.$${PATCH_VER}
DEFINES += "MAJOR_VER=$${MAJOR_VER}" "MINOR_VER=$${MINOR_VER}" "PATCH_VER=$${PATCH_VER}"
LIBS += -L$$PWD/lib/qtcryptohash/bin/$${PLATFORM}/$${BUILD}/ -lQtCryptoHash$${ARCH_SUFFIX}
DEFINES += QTCRYPTOHASH_STATIC
######################## OS DEPENDENT OPTIONS ########################
win32 {
# CONTENT OF THE RC FILE #
QMAKE_TARGET_PRODUCT = MrHash
QMAKE_TARGET_COMPANY = rikyoz
QMAKE_TARGET_COPYRIGHT = Copyright (c) 2022 $${QMAKE_TARGET_COMPANY}
RC_ICONS = res/icon.ico
!win32-g++ {
contains(QT_ARCH, i386) {
QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01
} else {
QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.02
}
QMAKE_CXXFLAGS += /std:c++14
}
}
unix {
QMAKE_CXXFLAGS_CXX11 = -std=c++1y
release: QMAKE_CXXFLAGS += -s
release: QMAKE_LFLAGS = -s
}