Commit 1e2f86db authored by jcacerec's avatar jcacerec
Browse files

added pro file and buid script

parent f659af27
#!/bin/bash
## Created by Juan-Pablo Caceres
# Check for Platform
platform='unknown'
unamestr=`uname`
if [[ "$unamestr" == 'Linux' ]]; then
echo "Building on Linux"
platform='linux'
elif [[ "$unamestr" == 'Darwin' ]]; then
echo "Building on Mac OS X"
platform='macosx'
fi
# Set qmake command name
if [[ $platform == 'linux' ]]; then
QCMD=qmake-qt4
QSPEC=linux-g++
elif [[ $platform == 'macosx' ]]; then
QCMD=qmake
QSPEC=macx-g++
fi
# Build
if [[ $1 == 'nojack' ]]; then
echo "Building without Jack"
$QCMD -spec $QSPEC -config nojack jmess.pro
make clean
$QCMD -spec $QSPEC -config nojack jmess.pro
make release
else
$QCMD -spec $QSPEC jmess.pro
make clean
$QCMD -spec $QSPEC jmess.pro
make release
fi
#******************************
# Created by Juan-Pablo Caceres
#******************************
CONFIG += qt thread debug_and_release build_all
CONFIG(debug, debug|release) {
TARGET = jmess_debug
} else {
TARGET = jmess
}
QT -= gui
QT += xml
!win32 {
INCLUDEPATH+=/usr/local/include
LIBS += -ljack -lm
}
macx {
message(MAC OS X)
QMAKE_CXXFLAGS += -D__MACOSX_CORE__ #-D__UNIX_JACK__ #RtAudio Flags
CONFIG -= app_bundle
CONFIG += x86
#LIBS += -framework CoreAudio -framework CoreFoundation
LIBS += -framework CoreFoundation
DEFINES += __MAC_OSX__
}
linux-g++ {
message(Linux)
LIBS += -lasound
QMAKE_CXXFLAGS += -D__LINUX_ALSA__ #-D__LINUX_OSS__ #RtAudio Flags
QMAKE_CXXFLAGS += -g -O2
DEFINES += __LINUX__
}
linux-g++-64 {
message(Linux 64bit)
LIBS += -lasound
QMAKE_CXXFLAGS += -fPIC -D__LINUX_ALSA__ #-D__LINUX_OSS__ #RtAudio Flags
QMAKE_CXXFLAGS += -g -O2
DEFINES += __LINUX__
}
DESTDIR = .
QMAKE_CLEAN += -r ./jmess ./jmess_debug ./release ./debug
target.path = /usr/bin
INSTALLS += target
# Input
HEADERS += JMess.h \
anyoption.h
SOURCES += JMess.cpp \
anyoption.cpp \
jmess_main.cpp
Supports Markdown
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