-
Notifications
You must be signed in to change notification settings - Fork 59
/
XaoS.pro
101 lines (85 loc) · 2.73 KB
/
XaoS.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
# -------------------------------------------------
# Project created by QtCreator 2009-10-29T19:21:55
# -------------------------------------------------
lessThan(QT_MAJOR_VERSION, 6): error("requires Qt >= 6")
wasm {
lessThan(QT_MINOR_VERSION, 5): error("requires Qt >= 6.5.2")
}
QMAKE_CXXFLAGS += -Wall -Wextra -Wpedantic
TEMPLATE = app
QT += widgets
macx {
TARGET = XaoS
} else {
TARGET = xaos
}
contains(DEFINES, USE_OPENGL) {
QT += opengl
win32:LIBS += -lopengl32
}
contains(DEFINES, USE_FLOAT128) {
LIBS += -lquadmath
} else {
DEFINES += USE_LONG_DOUBLE
}
CONFIG(debug, debug|release) {
DEFINES += DEBUG
win32:CONFIG += console
}
CONFIG(release, debug|release) {
QMAKE_POST_LINK=$(STRIP) $(TARGET)
linux: {
# This may help in debugging some odd issues under Debian:
# QMAKE_CFLAGS *= $(shell dpkg-buildflags --get CFLAGS)
# QMAKE_CXXFLAGS *= $(shell dpkg-buildflags --get CXXFLAGS)
# QMAKE_LFLAGS *= $(shell dpkg-buildflags --get LDFLAGS)
}
}
isEmpty(QMAKE_LRELEASE) {
win32 {
QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe
} else {
QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
}
unix {
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease-qt5 }
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease }
} else {
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease }
}
}
CONFIG += optimize_full
CONFIG += c++11
QMAKE_CXXFLAGS += -ffast-math
QMAKE_CFLAGS += -ffast-math
QMAKE_CXXFLAGS += -fpermissive
RESOURCES += XaoS.qrc
DESTDIR = $$PWD/bin
include($$PWD/i18n/i18n.pri)
include($$PWD/src/include/include.pri)
include($$PWD/src/ui/ui.pri)
include($$PWD/src/engine/engine.pri)
include($$PWD/src/ui-hlp/ui-hlp.pri)
include($$PWD/src/util/util.pri)
include($$PWD/src/sffe/sffe.pri)
# Support "make install"
isEmpty(PREFIX) {
PREFIX = /usr/local
}
DEFINES += DATAPATH=\\\"$$PREFIX/share/XaoS\\\"
wasm{
QMAKE_LFLAGS += --preload-file $$PWD/examples@$$DATAPATH/examples
QMAKE_LFLAGS += --preload-file $$PWD/catalogs@$$DATAPATH/catalogs
QMAKE_LFLAGS += --preload-file $$PWD/tutorial@$$DATAPATH/tutorial
QMAKE_LFLAGS += -sASYNCIFY -Os # -sASYNCIFY can help avoiding to get the web application hang when the user presses "s".
QMAKE_POST_LINK = $$PWD/tools/postprocess-web $$PWD $$PWD/bin
}
executable.files = bin/xaos
executable.path = $$PREFIX/bin
examples.path = $$PREFIX/share/XaoS/examples
examples.extra = find examples -name \'*.xpf\' -exec cp {} $(INSTALL_ROOT)$$PREFIX/share/XaoS/examples \;
catalogs.files = catalogs/*.cat
catalogs.path = $$PREFIX/share/XaoS/catalogs
tutorial.files = tutorial/*.x?f
tutorial.path = $$PREFIX/share/XaoS/tutorial
INSTALLS += executable examples catalogs tutorial