Changeset 26 in flair-dev for trunk/scripts/flair_compile_all.sh


Ignore:
Timestamp:
Jul 1, 2016, 9:29:41 AM (5 years ago)
Author:
Sanahuja Guillaume
Message:

m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/flair_compile_all.sh

    r23 r26  
    6565}
    6666
    67 function compile_flair() {
     67function compile_libs() {
    6868        for projects in FlairCore FlairSensorActuator FlairFilter FlairMeta FlairSimulator ; do
    6969                configure $FLAIR_ROOT/flair-src/lib $projects
     
    7171                cross_compile $FLAIR_ROOT/flair-src/lib $projects
    7272        done
     73
     74        if [ -d $FLAIR_ROOT/flair-hds ]; then
     75                for projects in FlairArdrone2 VisionFilter; do
     76                        configure $FLAIR_ROOT/flair-hds/src/lib $projects
     77                        compile $FLAIR_ROOT/flair-hds/src/lib $projects
     78                        cross_compile $FLAIR_ROOT/flair-hds/src/lib $projects
     79                done
     80        fi
    7381}
    7482
     
    8391function compile_uav_and_simulator_demo() {
    8492        for projects in simulator uav; do
    85                 configure $FLAIR_ROOT/flair-src/demos/$1 $projects
    86                 compile $FLAIR_ROOT/flair-src/demos/$1 $projects
    87                 cross_compile $FLAIR_ROOT/flair-src/demos/$1 $projects
     93                configure $1/$2 $projects
     94                compile $1/$2 $projects
     95                cross_compile $1/$2 $projects
    8896        done
    8997}
     
    97105
    98106        for projects in CircleFollower SimpleFleet; do
    99                 compile_uav_and_simulator_demo $projects
     107                compile_uav_and_simulator_demo $FLAIR_ROOT/flair-src/demos $projects
    100108        done
    101109
     110        if [ -d $FLAIR_ROOT/flair-hds ]; then
     111                for projects in OpticalFlow; do
     112                        compile_uav_and_simulator_demo $FLAIR_ROOT/flair-hds/src/demos $projects
     113                done
     114        fi
     115
    102116exit 0 
    103         for projects in ex_opencv; do
    104                 configure $FLAIR_ROOT/uav_ex $projects
    105                 compile $FLAIR_ROOT/uav_ex $projects
    106                 cross_compile $FLAIR_ROOT/uav_ex $projects
    107         done
    108 
    109         for projects in control simulator; do
    110                 configure $FLAIR_ROOT/uav_ex/ex_simulator_framework $projects
    111                 compile $FLAIR_ROOT/uav_ex/ex_simulator_framework $projects
    112                 cross_compile $FLAIR_ROOT/uav_ex/ex_simulator_framework $projects
    113         done
    114 
    115         for projects in simulator uav; do
    116                 configure $FLAIR_ROOT/uav_ex/demo_flotte_framework $projects
    117                 compile $FLAIR_ROOT/uav_ex/demo_flotte_framework $projects
    118                 cross_compile $FLAIR_ROOT/uav_ex/demo_flotte_framework $projects
    119         done
     117       
    120118
    121119        for projects in uav; do
     
    145143
    146144if [ "$answer" = "" ] || [ "$answer" = "y" ] || [ "$answer" = "Y" ]; then
    147         compile_flair
     145        compile_libs
    148146fi
    149147
Note: See TracChangeset for help on using the changeset viewer.