v7b1 / mi-UGens

some mutable instruments eurorack modules ported to SuperCollider
179 stars 20 forks source link

mi-UGens for windows are 32bit #9

Closed guillaume-leo closed 3 years ago

guillaume-leo commented 3 years ago

It could be nice to have these wonderfull ugens in 64Bit. I'm okay to try to do that but I need some help, where should I config CMake to build in 64bit? If I understand correctly, we need to do something is in the CMakeLists.txt files ?

guillaume-leo commented 3 years ago

solved, I had to change some details in the win-build script:

#
# Build all projects
# Usage: win-build.sh <SUPERCOLLIDER SOURCE>
#
set -euo pipefail

SC_SRC=$1
FOLDERS=(MiBraids MiClouds MiElements MiMu MiOmi MiPlaits MiRings MiRipples MiTides MiVerb MiWarps)

mkdir -p build_artifacts

echo "Building libsamplerate"
cd MiBraids/libsamplerate
mkdir -p build
cd build
cmake -A x64 ..
cmake --build . --config Release
cd ../../..

for FOLDER in "${FOLDERS[@]}"
do
    cd $FOLDER

    echo "Building $FOLDER"

    # # Build folder
    mkdir -p build
    cd build

    # # Build
    cmake -A x64 -DSC_PATH=$SC_SRC ..
    cmake --build . --config Release
    cp Release/${FOLDER}.scx ../../build_artifacts

    # # Return
    cd ../..
done