Last change
on this file since 106 was 87, checked in by Sanahuja Guillaume, 8 years ago |
camera
|
-
Property svn:executable
set to
*
|
File size:
835 bytes
|
Rev | Line | |
---|
[12] | 1 | DIR=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
|
---|
| 6 | if [ -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
|
---|
| 16 | fi
|
---|
| 17 |
|
---|
| 18 | #creation du repertoire
|
---|
| 19 | mkdir -p $DIR
|
---|
| 20 | #creation du lien symbolique
|
---|
| 21 | ln -s $DIR build
|
---|
| 22 |
|
---|
| 23 | #creation project x86
|
---|
| 24 | cd build
|
---|
| 25 |
|
---|
| 26 | rm -f CMakeCache.txt
|
---|
| 27 | rm -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.