source: flair-src/trunk/tools/Controller/DualShock3/cmake_codeblocks.sh@ 114

Last change on this file since 114 was 37, checked in by Bayard Gildas, 8 years ago

Suppression dualshock3.xml (il est déjà dans flair-bin)

  • Property svn:executable set to *
File size: 835 bytes
RevLine 
[11]1DIR=build_$(uname -m)
2
3### IMPORTANT: We don't use standard cmake_codeblocks script since we don't compile in release mode due to optimization problem (-03) ###
4
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
[37]13 echo "Warning, build was pointing to another directory."
[11]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
[34]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.