Last active
October 15, 2020 20:16
-
-
Save walac/821b00700c2147151af32f4c23e0385e to your computer and use it in GitHub Desktop.
Build DALi on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -vex | |
base_dir=$HOME/work | |
source $base_dir/setenv | |
common_args="-DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX \ | |
-DCMAKE_BUILD_TYPE=Debug \ | |
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ | |
-Wno-dev \ | |
-DCMAKE_TOOLCHAIN_FILE=$base_dir/vcpkg/scripts/buildsystems/vcpkg.cmake" | |
lib_args="$common_args -DINSTALL_CMAKE_MODULES=ON -DENABLE_DEBUG=ON -DENABLE_TRACE=ON" | |
ncores=6 | |
build() { | |
cd $base_dir/$1/build/tizen | |
rm -rf build | |
mkdir build | |
cd build | |
cmake $common_args $2 .. | |
make -j${ncores} install | |
} | |
build dali-core "$lib_args" | |
build dali-adaptor "$lib_args -DENABLE_PROFILE=MACOS -DPROFILE_LCASE=macos" | |
build dali-toolkit "$lib_args -DENABLE_PKG_CONFIGURE=OFF" | |
build dali-demo "$common_args -DINTERNATIONALIZATION=OFF -DENABLE_PKG_CONFIGURE=OFF" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment