450 # |
450 # |
451 |
451 |
452 #foreach( $target in $targets ) |
452 #foreach( $target in $targets ) |
453 echo >> "$TEMP_DIR/flags.mk" |
453 echo >> "$TEMP_DIR/flags.mk" |
454 #if ( $target.name ) |
454 #if ( $target.name ) |
455 # Target: $target.name |
455 echo "configuring target: $target.name" |
456 echo "# flags for target $target.name" >> "$TEMP_DIR/flags.mk" |
456 echo "# flags for target $target.name" >> "$TEMP_DIR/flags.mk" |
457 #else |
457 #else |
458 # Target |
458 echo "configuring global target" |
459 echo "# flags for unnamed target" >> "$TEMP_DIR/flags.mk" |
459 echo "# flags for unnamed target" >> "$TEMP_DIR/flags.mk" |
460 #end |
460 #end |
461 TEMP_CFLAGS= |
461 TEMP_CFLAGS= |
462 TEMP_CXXFLAGS= |
462 TEMP_CXXFLAGS= |
463 TEMP_LDFLAGS= |
463 TEMP_LDFLAGS= |
513 #end |
514 #end |
514 break |
515 break |
515 done |
516 done |
516 if [ $ERROR -ne 0 ]; then |
517 if [ $ERROR -ne 0 ]; then |
517 SAVED_ERROR=1 |
518 SAVED_ERROR=1 |
|
519 SAVED_DEPENDENCIES_FAILED="option '${opt.argument}' $SAVED_DEPENDENCIES_FAILED" |
518 fi |
520 fi |
519 ERROR="$SAVED_ERROR" |
521 ERROR="$SAVED_ERROR" |
520 DEPENDENCIES_FAILED="$SAVED_DEPENDENCIES_FAILED" |
522 DEPENDENCIES_FAILED="$SAVED_DEPENDENCIES_FAILED" |
521 else |
523 else |
|
524 echo "checking option ${opt.argument} = ${D}${opt.varName}" |
522 if false; then |
525 if false; then |
523 false |
526 false |
524 #foreach( $optval in $opt.values ) |
527 #foreach( $optval in $opt.values ) |
525 elif [ "${D}${opt.varName}" = "${optval.value}" ]; then |
528 elif [ "${D}${opt.varName}" = "${optval.value}" ]; then |
526 echo " ${opt.argument}: ${D}${opt.varName}" >> $TEMP_DIR/options |
529 echo " ${opt.argument}: ${D}${opt.varName}" >> $TEMP_DIR/options |
527 if $optval.func ; then |
530 if $optval.func ; then |
528 : |
531 : |
529 else |
532 else |
530 ERROR=1 |
533 ERROR=1 |
|
534 DEPENDENCIES_FAILED="option '${opt.argument}' $DEPENDENCIES_FAILED" |
531 fi |
535 fi |
532 #end |
536 #end |
533 fi |
537 fi |
534 fi |
538 fi |
535 #end |
539 #end |