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 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261
| # l i b Q G L V i e w e r
# C o m p i l a t i o n c o n f i g u r a t i o n
# Run "qmake; make; make install" to compile and install the library on Unix systems.
# Optional arguments can tune install paths (as in "qmake PREFIX=$HOME"). See doc/download.html for details.
# If your Qt version is lower than 3.1 (look at $QTDIR/lib), you need to link with GLUT.
# Uncomment the following line:
# USE_GLUT = yes
TEMPLATE = lib
TARGET = QGLViewer
VERSION = 2.3.4
CONFIG -= debug debug_and_release
CONFIG *= release qt opengl warn_on shared thread create_prl rtti
HEADERS = qglviewer.h \
camera.h \
manipulatedFrame.h \
manipulatedCameraFrame.h \
frame.h \
constraint.h \
keyFrameInterpolator.h \
mouseGrabber.h \
quaternion.h \
vec.h \
domUtils.h \
config.h
SOURCES = qglviewer.cpp \
camera.cpp \
manipulatedFrame.cpp \
manipulatedCameraFrame.cpp \
frame.cpp \
saveSnapshot.cpp \
constraint.cpp \
keyFrameInterpolator.cpp \
mouseGrabber.cpp \
quaternion.cpp \
vec.cpp
DISTFILES *= qglviewer-icon.xpm
TRANSLATIONS = qglviewer_fr.ts
QT_VERSION=$$[QT_VERSION]
contains( QT_VERSION, "^4.*" ) {
QT *= xml opengl
}
!isEmpty( QGLVIEWER_STATIC ) {
CONFIG *= staticlib
}
# -- I m a g e I n t e r f a c e --
contains( QT_VERSION, "^4.*" ) {
FORMS *= ImageInterface.Qt4.ui
} else {
FORMS *= ImageInterface.Qt3.ui
}
# -- V e c t o r i a l R e n d e r i n g --
# In case of compilation troubles with vectorial rendering, uncomment this line
# DEFINES *= NO_VECTORIAL_RENDER
contains( DEFINES, NO_VECTORIAL_RENDER ) {
message( Vectorial rendering disabled )
} else {
contains( QT_VERSION, "^4.*" ) {
FORMS *= VRenderInterface.Qt4.ui
} else {
FORMS *= VRenderInterface.Qt3.ui
}
SOURCES *= \
VRender/BackFaceCullingOptimizer.cpp \
VRender/BSPSortMethod.cpp \
VRender/EPSExporter.cpp \
VRender/Exporter.cpp \
VRender/FIGExporter.cpp \
VRender/gpc.cpp \
VRender/ParserGL.cpp \
VRender/Primitive.cpp \
VRender/PrimitivePositioning.cpp \
VRender/TopologicalSortMethod.cpp \
VRender/VisibilityOptimizer.cpp \
VRender/Vector2.cpp \
VRender/Vector3.cpp \
VRender/NVector3.cpp \
VRender/VRender.cpp
VRENDER_HEADERS = \
VRender/AxisAlignedBox.h \
VRender/Exporter.h \
VRender/gpc.h \
VRender/NVector3.h \
VRender/Optimizer.h \
VRender/ParserGL.h \
VRender/Primitive.h \
VRender/PrimitivePositioning.h \
VRender/SortMethod.h \
VRender/Types.h \
VRender/Vector2.h \
VRender/Vector3.h \
VRender/VRender.h
}
# -- U n i x --
unix {
# INCLUDE_DIR and LIB_DIR specify where to install the include files and the library.
# Use qmake INCLUDE_DIR=... LIB_DIR=... , or qmake PREFIX=... to customize your installation.
isEmpty( PREFIX ) {
PREFIX=/usr
}
isEmpty( LIB_DIR ) {
LIB_DIR = $${PREFIX}/lib
}
isEmpty( INCLUDE_DIR ) {
INCLUDE_DIR = $${PREFIX}/include
}
isEmpty( DOC_DIR ) {
DOC_DIR = $${PREFIX}/share/doc
}
# GLUT for Unix architecture
!isEmpty( USE_GLUT ) {
QMAKE_LIBS_OPENGL *= -lglut
}
MOC_DIR = .moc
OBJECTS_DIR = .obj
# Adds a -P option so that "make install" as root creates files owned by root and links are preserved.
# This is not a standard option, and it may have to be removed on old Unix flavors.
!hpux {
QMAKE_COPY_FILE = $${QMAKE_COPY_FILE} -P
}
# Make much smaller libraries (and packages) by removing debugging informations
QMAKE_CFLAGS_RELEASE -= -g
QMAKE_CXXFLAGS_RELEASE -= -g
# install header
include.path = $${INCLUDE_DIR}/QGLViewer
include.files = $${HEADERS} qglviewer.cw qglviewer_*.qm
# install documentation html
documentation.path = $${DOC_DIR}/QGLViewer
documentation.files = ../doc/*.html ../doc/*.css
# install documentation images
docImages.path = $${DOC_DIR}/QGLViewer/images
docImages.files = ../doc/images/*
# install documentation examples
#docExamples.path = $${DOC_DIR}/QGLViewer/examples
#docExamples.files = ../examples/*../examples/*/*
# install documentation refManual
docRefManual.path = $${DOC_DIR}/QGLViewer/refManual
docRefManual.files = ../doc/refManual/*
# install static library
#staticlib.extra = make -f Makefile.Release staticlib
#staticlib.path = $${LIB_DIR}
#staticlib.files = lib$${TARGET}.a
# install library
target.path = $${LIB_DIR}
# "make install" configuration options
INSTALLS *= target include documentation docImages docRefManual
}
# Must be done after install target definition
HEADERS *= $${VRENDER_HEADERS}
# -- L i n u x --
linux-g++ {
# Patch for gcc 3.2.0 and 3.3.1-2
system( g++ --version | grep " 3\.2\.0 " > /dev/null )|system( g++ --version | grep " 3\.3\.1\-2" > /dev/null ) {
message( Patching gcc bug - using debug configuration )
CONFIG -= release
CONFIG *= debug
}
}
# -- S G I I r i x --
irix-cc|irix-n32 {
QMAKE_CFLAGS_RELEASE -= -O3 -O2 -OPT:Olimit=30000
QMAKE_LFLAGS_RELEASE -= -O3 -O2 -OPT:Olimit=30000
QMAKE_CXXFLAGS_RELEASE -= -O3 -O2 -OPT:Olimit=30000
QMAKE_CFLAGS_RELEASE *= -IPA -Ofast=IP35
QMAKE_LFLAGS_RELEASE *= -IPA -Ofast=IP35
QMAKE_CXXFLAGS_RELEASE *= -IPA -Ofast=IP35
QMAKE_CFLAGS *= -LANG:std
QMAKE_LFLAGS *= -LANG:std
QMAKE_CXXFLAGS *= -LANG:std
QMAKE_CFLAGS *= -woff 1424,3201,1110,1188
QMAKE_CXXFLAGS *= -woff 1424,3201,1110,1188
QMAKE_LIBS_OPENGL -= -lXi
# GLUT for SGI architecture
!isEmpty( USE_GLUT ) {
QMAKE_LIBDIR_OPENGL *= /usr/local/lib32
QMAKE_INCDIR_OPENGL *= /usr/local/include
}
}
# -- M a c O S X --
macx|darwin-g++ {
CONFIG *= lib_bundle
# GLUT for Macintosh architecture
!isEmpty( USE_GLUT ) {
QMAKE_LIBS_OPENGL -= -lglut
QMAKE_LIBS_OPENGL *= -framework GLUT -lobjc
}
# Qt3 only
macx: CONFIG -= thread
}
# -- W i n d o w s --
win32 {
CONFIG -= release
CONFIG += debug build_all
DEFINES *= CREATE_QGLVIEWER_DLL
MOC_DIR = moc
OBJECTS_DIR = obj
# Use the DLL version of Qt (needed for Qt3 only)
DEFINES *= QT_DLL QT_THREAD_SUPPORT
CONFIG *= embed_manifest_dll
# Make sure to have C++ files, PentiumPro code, few warnings, add
# support to RTTI and Exceptions, and generate debug info "program database".
# Any feedback on these flags is welcome.
!win32-g++ {
QMAKE_CXXFLAGS = -TP -G6 -GR -Zi
win32-msvc {
QMAKE_CXXFLAGS *= -GX
} else {
QMAKE_CXXFLAGS *= -EHs
}
}
}
contains( QT_VERSION, "^4.*" ) {
CONFIG(debug, debug|release) {
unix: TARGET = $$join(TARGET,,,_debug)
win32: TARGET = $$join(TARGET,,d)
}
} |