-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MIDI Import feature ported to drumstick and new MIDI Export feature #3224
Changes from all commits
0a2541a
19981ec
4e93d88
61cec1f
1cd854d
8edb130
ac49669
f5927af
50b2771
6316e44
5391730
841c92e
502e0ee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ $QT5 ];then | ||
bash ${TRAVIS_BUILD_DIR}/cmake/linux/build_linux_drumstick.sh 1.1.0 | ||
fi | ||
|
||
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUSE_WERROR=ON -DWANT_QT5=$QT5 .. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
export CMAKE_OPTS="-DUSE_WERROR=ON" | ||
|
||
# Just a temporarily solution. | ||
if [ $QT5 ];then | ||
bash ${TRAVIS_BUILD_DIR}/cmake/nsis/build_mingw_drumstick.sh 1.1.0 32 | ||
else | ||
bash ${TRAVIS_BUILD_DIR}/cmake/nsis/build_mingw_drumstick.sh 0.5.0 32 | ||
fi | ||
|
||
../cmake/build_mingw32.sh |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
export CMAKE_OPTS="-DUSE_WERROR=ON" | ||
|
||
|
||
if [ $QT5 ];then | ||
bash ${TRAVIS_BUILD_DIR}/cmake/nsis/build_mingw_drumstick.sh 1.1.0 64 | ||
else | ||
bash ${TRAVIS_BUILD_DIR}/cmake/nsis/build_mingw_drumstick.sh 0.5.0 64 | ||
fi | ||
../cmake/build_mingw64.sh |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
drumstick_ver=$1 | ||
|
||
cd /tmp | ||
|
||
wget https://master.dl.sourceforge.net/project/drumstick/${drumstick_ver}/drumstick-${drumstick_ver}.tar.gz | ||
tar xf drumstick-${drumstick_ver}.tar.gz | ||
cd drumstick-${drumstick_ver} | ||
|
||
# We just need library | ||
sed -i "" "/ADD_SUBDIRECTORY(utils)/d" CMakeLists.txt | ||
sed -i "" "/add_subdirectory(utils)/d" CMakeLists.txt | ||
|
||
mkdir -p build && cd build | ||
|
||
if [ $QT5 ];then | ||
STATIC_OPTS=ON | ||
else | ||
STATIC_OPTS=OFF | ||
fi | ||
|
||
cmake ../ -DUSE_WERROR=OFF -DLIB_SUFFIX='' -DSTATIC_DRUMSTICK=$STATIC_OPTS | ||
make && sudo make install | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
drumstick_ver=$1 | ||
|
||
cd /tmp | ||
|
||
wget https://master.dl.sourceforge.net/project/drumstick/${drumstick_ver}/drumstick-${drumstick_ver}.tar.gz | ||
tar xf drumstick-${drumstick_ver}.tar.gz | ||
cd drumstick-${drumstick_ver} | ||
|
||
# We just need library | ||
sed -i "/ADD_SUBDIRECTORY(utils)/d" CMakeLists.txt | ||
sed -i "/add_subdirectory(utils)/d" CMakeLists.txt | ||
|
||
mkdir -p build && cd build | ||
|
||
cmake ../ -DUSE_WERROR=OFF -DLIB_SUFFIX='' -DCMAKE_INSTALL_PREFIX=/usr | ||
make && sudo make install | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
drumstick_ver=$1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can stay as-is, but this should probably be ported to https://github.com/LMMS/lmms/blob/master/cmake/msys/msys_helper.sh like @dragoneagle did in #3369 or alternately added directly to the mingw mirros that Toby maintains for us. Toby generally does this on-request. I think first though we can pull Qt4 support, which is an open task, so we wouldn't hold up the merge for this script alone. |
||
|
||
cd /tmp | ||
|
||
wget https://master.dl.sourceforge.net/project/drumstick/${drumstick_ver}/drumstick-${drumstick_ver}.tar.gz | ||
tar xf drumstick-${drumstick_ver}.tar.gz | ||
cd drumstick-${drumstick_ver} | ||
|
||
# We just need library, for utils depends on Qt5Svg | ||
# But no mingw*-x-qt5svg | ||
sed -i "/ADD_SUBDIRECTORY(utils)/d" CMakeLists.txt | ||
sed -i "/add_subdirectory(utils)/d" CMakeLists.txt | ||
|
||
mkdir -p build && cd build | ||
|
||
case $2 in | ||
32) | ||
export MINGW=/opt/mingw32 | ||
export PROCESSOR=i686 | ||
;; | ||
64) | ||
export MINGW=/opt/mingw64 | ||
export PROCESSOR=x86_64 | ||
;; | ||
*) | ||
;; | ||
esac | ||
|
||
export PKG_CONFIG_PATH=${MINGW}/lib/pkgconfig | ||
export MINGW_TOOL_PREFIX=${MINGW}/bin/${PROCESSOR}-w64-mingw32- | ||
|
||
export CMAKE_OPTS="-DUSE_WERROR=ON | ||
-DLIB_SUFFIX='' | ||
-DCMAKE_INSTALL_PREFIX=$MINGW | ||
-DCMAKE_PREFIX_PATH=$MINGW | ||
-DMINGW_PREFIX=$MINGW | ||
-DCMAKE_SYSTEM_PROCESSOR=$PROCESSOR | ||
-DCMAKE_SYSTEM_NAME=Windows | ||
-DCMAKE_SYSTEM_VERSION=1 | ||
-DCMAKE_FIND_ROOT_PATH=$MINGW | ||
-DCMAKE_C_COMPILER=${MINGW_TOOL_PREFIX}gcc | ||
-DCMAKE_CXX_COMPILER=${MINGW_TOOL_PREFIX}g++ | ||
-DCMAKE_RC_COMPILER=${MINGW_TOOL_PREFIX}gcc | ||
-DSTRIP=${MINGW_TOOL_PREFIX}strip | ||
-DWINDRES=${MINGW_TOOL_PREFIX}windres | ||
-DPKG_CONFIG_EXECUTABLE=${MINGW_TOOL_PREFIX}pkgconfig | ||
-DQT_BINARY_DIR=$MINGW/bin | ||
-DQT_QMAKE_EXECUTABLE=$MINGW/bin/qmake" | ||
|
||
export PATH=$PATH:$MINGW/bin | ||
|
||
cmake ../ $CMAKE_OPTS | ||
make && sudo make install | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is near identical to Linux. They should be consolidated. It can live in
linux
until this library is ported to homebrew.