openframeworks / apothecary

This is the OpenFrameworks library apothecary. It mixes formulas and potions to build and update the C/C++ lib dependencies.
Other
56 stars 51 forks source link

VS latest libs - only selected platform #377

Closed dimitre closed 3 months ago

dimitre commented 3 months ago

it would be great to install only the libs for selected platform we are having lots of issues with bleeding libs, and it takes a while to install all platforms

danoli3 commented 3 months ago

Prior libraries - Total (x64) - 143.5 MB Bleeding Libraries - Total (arm64, x64, arm64ec) - 167.23 MB Bleeding Libraries - Total (x64 only) - 55 MB

in openFrameworks main download_libs supports this via passing BITS

if [ ! -z ${BITS+x} ]; then
    ../dev/download_libs.sh -p vs -b -a $BITS -n $@
else
    ../dev/download_libs.sh -p vs -b -a 64 -n $@
    ../dev/download_libs.sh -p vs -b -a arm64 -n $@
    ../dev/download_libs.sh -p vs -b -a arm64ec -n $@
fi          

So could just make another script if you want where can just run from script dir download_latest_x64.sh

 #!/usr/bin/env bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $SCRIPT_DIR
if [ ! -z ${BITS+x} ]; then
    ../dev/download_libs.sh -p vs -b -a $BITS -n $@
else
    ../dev/download_libs.sh -p vs -b -a 64 -n $@
fi 
danoli3 commented 3 months ago

Okay that's merged

danoli3 commented 3 months ago

Also cleaning up macOS stuff, was packaging all variants