source: flair-src/tags/0.0.1/tools/FlairGCS/cmake_codeblocks.sh@ 415

Last change on this file since 415 was 9, checked in by Sanahuja Guillaume, 9 years ago

gcs

  • Property svn:executable set to *
File size: 658 bytes
Line 
1DIR=build_$(uname -m)
2
3#verifie l'existence du lien symbolique build
4if [ -d build ];then
5 if ! readlink build > /dev/null ; then
6 #it is a directory, exit to do not erase anything
7 err "Error: build already exsits and is a directory; it should be a symlink."
8 exit 1
9 fi
10 if ! readlink build | grep -w $DIR >/dev/null; then
11 echo "Warnink, build was pointing to another directory."
12 fi
13 rm build
14fi
15
16#creation du repertoire
17mkdir -p $DIR
18#creation du lien symbolique
19ln -s $DIR build
20
21#creation project x86
22cd build
23
24rm -f CMakeCache.txt
25rm -rf CMakeFiles
26cmake ../ -G "CodeBlocks - Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=${OECORE_CMAKE_HOST_TOOLCHAIN}
Note: See TracBrowser for help on using the repository browser.