566 #end |
566 #end |
567 if [ -n "$DISABLE_${feature.varName}" ]; then |
567 if [ -n "$DISABLE_${feature.varName}" ]; then |
568 unset ${feature.varName} |
568 unset ${feature.varName} |
569 fi |
569 fi |
570 fi |
570 fi |
|
571 if [ -n "${D}${feature.varName}" ]; then |
|
572 : |
|
573 #foreach( $def in $feature.defines ) |
|
574 TEMP_CFLAGS="$TEMP_CFLAGS ${def.toFlags()}" |
|
575 TEMP_CXXFLAGS="$TEMP_CXXFLAGS ${def.toFlags()}" |
|
576 #end |
|
577 #if( $feature.hasMake() ) |
|
578 cat >> "$TEMP_DIR/make.mk" << __EOF__ |
|
579 $feature.make |
|
580 __EOF__ |
|
581 #end |
|
582 else |
|
583 : |
|
584 #foreach( $def in $feature.disabled.defines ) |
|
585 TEMP_CFLAGS="$TEMP_CFLAGS ${def.toFlags()}" |
|
586 TEMP_CXXFLAGS="$TEMP_CXXFLAGS ${def.toFlags()}" |
|
587 #end |
|
588 #if( $feature.disabled.hasMake() ) |
|
589 cat >> "$TEMP_DIR/make.mk" << __EOF__ |
|
590 $feature.disabled.make |
|
591 __EOF__ |
|
592 #end |
|
593 #foreach( $dependency in $feature.disabled.dependencies ) |
|
594 if dependency_error_$dependency ; then |
|
595 DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED ${dependency} " |
|
596 ERROR=1 |
|
597 fi |
|
598 #end |
|
599 fi |
571 #end |
600 #end |
572 |
601 |
573 #foreach( $opt in $target.options ) |
602 #foreach( $opt in $target.options ) |
574 # Option: --${opt.argument} |
603 # Option: --${opt.argument} |
575 if [ -z "${D}${opt.varName}" ]; then |
604 if [ -z "${D}${opt.varName}" ]; then |