Commit 3488bc7f authored by Johnny Jazeix's avatar Johnny Jazeix

Tentative d'ajout pour mac (non testé car pas de mac sous la main),

c'est peut être donc codé avec le cul :p
parent 9f2c946a
......@@ -38,15 +38,15 @@ EOF
if "$WHICH" qmake-qt4 >/dev/null 2>&1 ; then
cat >> "$makefile" <<EOF
cd ./src && qmake-qt4 -makefile -o Makefile src.pro && make
cd ./src && qmake-qt4 -makefile -o Makefile src.pro && make
EOF
elif "$WHICH" qmake >/dev/null 2>&1 ; then
cat >>"$makefile" <<EOF
cd ./src && qmake -makefile -o Makefile src.pro && make
elif "$WHICH" qmake >/dev/null 2>&1; then # Mac -> configure with UNAME_SYSTEM
cat >> "$makefile" <<EOF
cd ./src && qmake -makefile -o Makefile src.pro && make
EOF
elif "$WHICH" qmake >/dev/null 2>&1 ; then # Mac -> configure with UNAME_SYSTEM
cat <<EOF
cd ./src && qmake -spec macx-g++ -makefile -o Makefile src.pro && make
elif "$WHICH" qmake >/dev/null 2>&1 ; then
cat >> "$makefile" <<EOF
cd ./src && qmake -makefile -o Makefile src.pro && make
EOF
fi
......
......@@ -19,7 +19,12 @@
*/
//#include <GL/glew.h>/* For OpenGL VBO and shaders */
#ifdef MAC
#include <GLUT/glut.h>/* For OpenGL text rendering */
#else
#include <GL/glut.h>/* For OpenGL text rendering */
#endif
#include <QtGui>
#include <QApplication>
......
......@@ -7,12 +7,21 @@ OBJECTS_DIR=../bin
DESTDIR=../bin
CONFIG+=uitools debug
QT+=opengl
LIBS += -lglut
TEMPLATE = app
TARGET = vite
DEPENDPATH += . interface message parser trace trace/values
INCLUDEPATH += . interface message trace trace/values parser
!macx{
LIBS += -lglut
}
macx {
QMAKESPEC = macx-g++
QMAKE_LFLAGS += -F/System/Library/Frameworks/GLUT
LIBS += -framework GLUT -L/opt/local/include/GL
}
# Input
HEADERS += message/Message.hpp \
message/Errors.hpp \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment