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

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

camera

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