| 12345678910111213141516171819202122232425262728293031 |
- #-------------------------------------------------------------------------------------------------------
- # Copyright (C) Microsoft. All rights reserved.
- # Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
- #-------------------------------------------------------------------------------------------------------
- if [ ! -d "BuildLinux" ]; then
- mkdir BuildLinux;
- fi
- pushd BuildLinux > /dev/null
- DEBUG_BUILD=0
- while getopts ":d" opt; do
- case $opt in
- d)
- DEBUG_BUILD=1
- ;;
- esac
- done
- if [ $DEBUG_BUILD -eq 1 ]; then
- echo Generating Debug makefiles
- cmake -DCMAKE_BUILD_TYPE=Debug ..
- else
- echo Generating Retail makefiles
- echo Building Retail;
- cmake -DCMAKE_BUILD_TYPE=Release ..
- fi
- make |& tee build.log
- popd > /dev/null
|