Changeset 46 in flair-src


Ignore:
Timestamp:
Jul 26, 2016, 9:33:25 AM (4 years ago)
Author:
Thomas Fuhrmann
Message:

Add the mavlink branch

Location:
branches/mavlink
Files:
195 added
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/mavlink/lib/FlairCore/CMakeLists.txt

    r2 r46  
    4242add_dependencies(FlairCore_rt svn_rev)
    4343add_dependencies(FlairCore_nrt svn_rev)
     44
  • branches/mavlink/tools/Controller/DualShock3/cmake_codeblocks.sh

    r37 r46  
    11DIR=build_$(uname -m)
    22
    3 ### IMPORTANT: We don't use standard cmake_codeblocks script since we don't compile in release mode due to optimization problem (-03) ###
     3function replace_cxx_flags () {
     4        cmake_version=$(cmake --version)
     5        cmake_version_number=$(expr match "$cmake_version" '.*\([0-9]\.[0-9]*\.[0-9]*\)')
     6        first_digit=$(expr match "$cmake_version_number" '\([0-9]*\)')
     7        second_digit=$(expr match "$cmake_version_number" '.*\.\([0-9]*\)\..*')
     8        if [ "$first_digit" -ge "3" ] || [ "$second_digit" -ge "4" ]; then
     9                find . -name build.make -type f -exec sed -i 's/CXX_FLAGS/CXX_FLAGS) $(CXX_INCLUDES/g' {} \;
     10        fi
     11}
    412
    513#verifie l'existence du lien symbolique build
  • branches/mavlink/tools/Dbt2csv/cmake_codeblocks.sh

    r12 r46  
    11DIR=build_$(uname -m)
     2
     3function replace_cxx_flags () {
     4        cmake_version=$(cmake --version)
     5        cmake_version_number=$(expr match "$cmake_version" '.*\([0-9]\.[0-9]*\.[0-9]*\)')
     6        first_digit=$(expr match "$cmake_version_number" '\([0-9]*\)')
     7        second_digit=$(expr match "$cmake_version_number" '.*\.\([0-9]*\)\..*')
     8        if [ "$first_digit" -ge "3" ] || [ "$second_digit" -ge "4" ]; then
     9                find . -name build.make -type f -exec sed -i 's/CXX_FLAGS/CXX_FLAGS) $(CXX_INCLUDES/g' {} \;
     10        fi
     11}
    212
    313#verifie l'existence du lien symbolique build
     
    2535rm -rf CMakeFiles
    2636cmake ../ -G "CodeBlocks - Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=${OECORE_CMAKE_HOST_TOOLCHAIN}
     37replace_cxx_flags
  • branches/mavlink/tools/FlairGCS/cmake_codeblocks.sh

    r34 r46  
    11DIR=build_$(uname -m)
     2
     3function replace_cxx_flags () {
     4        cmake_version=$(cmake --version)
     5        cmake_version_number=$(expr match "$cmake_version" '.*\([0-9]\.[0-9]*\.[0-9]*\)')
     6        first_digit=$(expr match "$cmake_version_number" '\([0-9]*\)')
     7        second_digit=$(expr match "$cmake_version_number" '.*\.\([0-9]*\)\..*')
     8        if [ "$first_digit" -ge "3" ] || [ "$second_digit" -ge "4" ]; then
     9                find . -name build.make -type f -exec sed -i 's/CXX_FLAGS/CXX_FLAGS) $(CXX_INCLUDES/g' {} \;
     10        fi
     11}
    212
    313#verifie l'existence du lien symbolique build
Note: See TracChangeset for help on using the changeset viewer.