#!/bin/bash

BUILD_DIR_PREFIX="build_"
BUILD_TYPE="Release"
#BUILD_TYPE="Debug"
PWD=`pwd`

PLATFORM_DIR="vienna"

BUILD_DIR=${BUILD_DIR_PREFIX}${PLATFORM_DIR}

rm -rf ${BUILD_DIR}/apps/lvgl_pcsimulator/x86_64 2>/dev/null
mkdir -p ${BUILD_DIR}/apps/lvgl_pcsimulator/x86_64
cd ${BUILD_DIR}/apps/lvgl_pcsimulator/x86_64
cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
	../../../../apps/lvgl_pcsimulator/x86_64 \
   -DCMAKE_C_COMPILER=gcc \
   -DCMAKE_CXX_COMPILER=g++
	
make -j4


cd ${PWD}
