forked from PhVerkerk/Collatinus-11
-
Notifications
You must be signed in to change notification settings - Fork 15
/
collatinus.pro
91 lines (79 loc) · 2.26 KB
/
collatinus.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
VERSION = "11.2"
DEFINES += VERSION=\\\"$$VERSION\\\"
TEMPLATE = app
TARGET = collatinus
INCLUDEPATH += . src
DEPENDPATH += .
qtHaveModule(printsupport): QT += printsupport
QT += widgets
QT += network
QT += svg
#QMAKE_CXXFLAGS += -Wall -Wextra -pedantic -fstack-protector-strong
#QMAKE_CPPFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
CONFIG += release_binary debug
TRANSLATIONS = collatinus_fr.ts
TRANSLATIONS += collatinus_en.ts
unix:!macx:DESTDIR = bin
OBJECTS_DIR= obj/
MOC_DIR = moc/
QMAKE_DISTCLEAN += $${DESTDIR}/collatinus
# Input
HEADERS += src/ch.h \
src/flexion.h \
src/irregs.h \
src/lemme.h \
src/dicos.h \
src/modele.h \
# src/flexfr.h \
src/mainwindow.h \
src/maj.h \
src/mot.h \
src/lasla.h \
src/tagueur.h \
src/scandeur.h \
src/lemCore.h \
src/lemmatiseur.h
SOURCES += src/ch.cpp \
src/flexion.cpp \
# src/frequences.cpp \
src/irregs.cpp \
src/lemme.cpp \
src/dicos.cpp \
# src/flexfr.cpp \
src/main.cpp \
src/maj.cpp \
src/mainwindow.cpp \
src/modele.cpp \
src/scandeur.cpp \
src/mot.cpp \
src/lasla.cpp \
src/tagueur.cpp \
src/lemCore.cpp \
src/lemmatiseur.cpp
RESOURCES += collatinus.qrc
RC_ICONS = res/collatinus.ico
macx:{
TARGET = Collatinus_$${VERSION}
#note mac os x, fair un $ qmake -spec macx-g++
#CONFIG += x86 ppc
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.8
ICON = collatinus.icns
#QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.4u.sdk
#QMAKE_POST_LINK=strip Collatinus.app/Contents/MacOS/collatinus
# install into app bundle
# à changer en ressources
data.path = $${TARGET}.app/Contents/MacOS/data
data.files = bin/data/*
# deploy.depends = install_documentation
deploy.depends += install
# documentation.path = Collatinus_11.app/Contents/MacOS/doc/
# documentation.files = doc/*.html doc/*.css
# ajouter un cible qui fait macdeploy Collatinus.app
deploy.commands = macdeployqt $${TARGET}.app
# dmg.depends = deploy
# dmg.commands = ./MacOS/Collatinus.sh
# INSTALLS += documentation
INSTALLS += data
QMAKE_EXTRA_TARGETS += deploy
# QMAKE_EXTRA_TARGETS += dmg
}