source: flair-src/trunk/tools/Controller/Mavlink/cmake_codeblocks.sh@ 104

Last change on this file since 104 was 88, checked in by Sanahuja Guillaume, 8 years ago

m

  • Property svn:executable set to *
File size: 697 bytes
RevLine 
[88]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 "Warning, 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
26${OECORE_HOST_NATIVE_SYSROOT}/usr/bin/cmake ../ -G "CodeBlocks - Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=${OECORE_CMAKE_HOST_TOOLCHAIN}
27
Note: See TracBrowser for help on using the repository browser.