#! /bin/sh sdir=`dirname $(readlink -f $0)` rootdir=`dirname $sdir` bname=`basename $0 .sh` . $sdir/setup-machine-arch.sh debug_dist_dir="Debug-dist" debug_build_dir="Debug" echo debug_dist_dir $debug_dist_dir echo debug_build_dir $debug_build_dir release_dist_dir="Release-dist" release_build_dir="Release" echo release_dist_dir $release_dist_dir echo release_build_dir $release_build_dir cd $rootdir rm -rf $debug_dist_dir mkdir -p $debug_dist_dir rm -rf $debug_build_dir mkdir -p $debug_build_dir cd $debug_build_dir # CLANG_ARGS="-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++" # CLANG_ARGS="-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_CXX_CLANG_TIDY=/usr/bin/clang-tidy;-p;$rootdir/$debug_build_dir" # CXX_ARGS="-DCMAKE_CXX_STANDARD=20" cmake $CLANG_ARGS $CXX_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/$debug_dist_dir -DBUILDJAVA=ON -DBUILD_TESTING=ON -DUSE_LIBUNWIND=ON -DUSE_LIBCURL=ON -DTEST_WITH_SUDO=ON -DDEBUG=ON .. cd $rootdir rm -rf $release_dist_dir mkdir -p $release_dist_dir rm -rf $release_build_dir mkdir -p $release_build_dir cd $release_build_dir # CLANG_ARGS="-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++" # CLANG_ARGS="-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_CXX_CLANG_TIDY=/usr/bin/clang-tidy;-p;$rootdir/$release_build_dir" # CXX_ARGS="-DCMAKE_CXX_STANDARD=20" cmake $CLANG_ARGS $CXX_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/$release_dist_dir -DBUILDJAVA=ON -DBUILD_TESTING=ON -DUSE_LIBUNWIND=ON -DUSE_LIBCURL=ON -DTEST_WITH_SUDO=ON .. cd $rootdir