-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
msys2.pri
96 lines (66 loc) · 2.05 KB
/
msys2.pri
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
build_with_msys2 {
CONFIG-= windows
QMAKE_LFLAGS += $$QMAKE_LFLAGS_WINDOWS
DEFINES += WIN32_LINK_QGLVIEWER
DEFINES += WIN32_LINK_BULLET
DEFINES += WIN32_LINK_LUABIND
DEFINES += WIN32_LINK_BOOST
DEFINES += WIN32_LINK_AUTOIMPORT
CONFIG += link_pkgconfig
PKGCONFIG += assimp
PKGCONFIG += freeglut
PKGCONFIG += glew
PKGCONFIG += sdl2
PKGCONFIG += bullet
PKGCONFIG += lua5.1
WIN32_DIR_LUABIND = ..\\luabind
WIN32_DIR_QGLVIEWER = ..\\libQGLViewer
WIN32_DIR_FREEGLUT = $$WIN32_DIR_LIB\\freeglut-2.8.1-1-mingw
WIN32_DIR_GLEW = $$WIN32_DIR_LIB\\glew-1.10.0
WIN32_DIR_BULLET = $$WIN32_DIR_LIB\\bullet3
# WIN32_DIR_BULLET = /opt/bullet3-3.06
WIN32_DIR_BOOST = C:\msys64\mingw64
WIN32_DIR_SDL2 = $$WIN32_DIR_LIB\\SDL2-2.0.22
}
contains(DEFINES, WIN32_LINK_AUTOIMPORT) {
QMAKE_LFLAGS = -Wl,-enable-auto-import
QMAKE_LFLAGS_RELEASE = -Wl,-s
QMAKE_LFLAGS_DEBUG =
}
contains(DEFINES, WIN32_LINK_QGLVIEWER) {
INCLUDEPATH += $$WIN32_DIR_QGLVIEWER
# Link
CONFIG( debug, debug|release ) {
LIBS += -L$$WIN32_DIR_QGLVIEWER\\QGLViewer -lQGLViewerd2
} else {
LIBS += -L$$WIN32_DIR_QGLVIEWER\\QGLViewer -lQGLViewer2
}
}
contains(DEFINES, WIN32_LINK_BULLET) {
# c++ - gcc warning" 'will be initialized after'
unix:QMAKE_CXXFLAGS_WARN_ON += -Wno-reorder
INCLUDEPATH += $$WIN32_DIR_BULLET\\src
# Include
LIBS += -L$$WIN32_DIR_BULLET\\build\\lib
# Link
LIBS += -lBulletSoftBody -lBulletDynamics -lBulletCollision -lLinearMath
}
contains(DEFINES, WIN32_LINK_LUABIND) {
# DEFINES += LUABIND_DYNAMIC_LINK=1
PATH_LUABIND = $$WIN32_DIR_LUABIND
INCLUDEPATH += $$PATH_LUABIND $$PATH_LUABIND/build
# include
LIBS += -L$$PATH_LUABIND/build/src -lluabind09
# CONFIG( debug, debug|release ) {
##XXX LIBS += -lluabind
# } else {
# LIBS += -L$$PATH_LUABIND\\bin\\gcc-mingw-4.4.0\\debug
# LIBS += -lluabindd
# }
}
contains(DEFINES, WIN32_LINK_BOOST) {
INCLUDEPATH += $$WIN32_DIR_BOOST\\include
# include
LIBS += -L$$WIN32_DIR_BOOST\\mingw64\\lib
# link ?
}