332 #foreach( $sub in $dependency.getSubdependencies() ) |
342 #foreach( $sub in $dependency.getSubdependencies() ) |
333 # dependency $sub.name $sub.getPlatformString() |
343 # dependency $sub.name $sub.getPlatformString() |
334 while true |
344 while true |
335 do |
345 do |
336 #if( $sub.platform ) |
346 #if( $sub.platform ) |
337 if ! isplatform "${sub.platform}"; then |
347 if isnotplatform "${sub.platform}"; then |
338 break |
348 break |
339 fi |
349 fi |
340 #end |
350 #end |
341 #foreach( $not in $sub.getNotList() ) |
351 #foreach( $not in $sub.getNotList() ) |
342 if isplatform "${not}"; then |
352 if isplatform "${not}"; then |
350 #end |
360 #end |
351 #foreach( $pkg in $sub.pkgconfig ) |
361 #foreach( $pkg in $sub.pkgconfig ) |
352 if ! $PKG_CONFIG $pkg.getPkgConfigParam() ; then |
362 if ! $PKG_CONFIG $pkg.getPkgConfigParam() ; then |
353 break |
363 break |
354 fi |
364 fi |
355 CFLAGS+=" `$PKG_CONFIG --cflags $pkg.getPkgConfigParam()`" |
365 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags $pkg.getPkgConfigParam()`" |
356 LDFLAGS+=" `$PKG_CONFIG --libs $pkg.getPkgConfigParam()`" |
366 LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs $pkg.getPkgConfigParam()`" |
357 #end |
367 #end |
358 #foreach( $flags in $sub.flags ) |
368 #foreach( $flags in $sub.flags ) |
359 #if( $flags.exec ) |
369 #if( $flags.exec ) |
360 $flags.value > /dev/null |
370 $flags.value > /dev/null |
361 if [ $? -eq 0 ]; then |
371 if [ $? -eq 0 ]; then |
362 $flags.varName+=" `$flags.value`" |
372 $flags.varName="$flags.varName `$flags.value`" |
363 else |
373 else |
364 break |
374 break |
365 fi |
375 fi |
366 #else |
376 #else |
367 $flags.varName+="$flags.value" |
377 $flags.varName="$flags.varName $flags.value" |
368 #end |
378 #end |
369 #end |
379 #end |
370 #foreach( $test in $sub.tests ) |
380 #foreach( $test in $sub.tests ) |
371 $test > /dev/null |
381 $test > /dev/null |
372 if [ $? -ne 0 ]; then |
382 if [ $? -ne 0 ]; then |
397 LDFLAGS= |
407 LDFLAGS= |
398 #foreach( $dependency in $dependencies ) |
408 #foreach( $dependency in $dependencies ) |
399 while true |
409 while true |
400 do |
410 do |
401 #if( $dependency.platform ) |
411 #if( $dependency.platform ) |
402 if ! isplatform "${dependency.platform}"; then |
412 if isnotplatform "${dependency.platform}"; then |
403 break |
413 break |
404 fi |
414 fi |
405 #end |
415 #end |
406 #foreach( $not in $dependency.getNotList() ) |
416 #foreach( $not in $dependency.getNotList() ) |
407 if isplatform "${not}"; then |
417 if isplatform "${not}"; then |
422 echo no |
432 echo no |
423 ERROR=1 |
433 ERROR=1 |
424 break |
434 break |
425 fi |
435 fi |
426 echo yes |
436 echo yes |
427 CFLAGS+=" `$PKG_CONFIG --cflags $pkg.getPkgConfigParam()`" |
437 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags $pkg.getPkgConfigParam()`" |
428 LDFLAGS+=" `$PKG_CONFIG --libs $pkg.getPkgConfigParam()`" |
438 LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs $pkg.getPkgConfigParam()`" |
429 #end |
439 #end |
430 |
440 |
431 #foreach( $flags in $dependency.flags ) |
441 #foreach( $flags in $dependency.flags ) |
432 #if( $flags.exec ) |
442 #if( $flags.exec ) |
433 $flags.value > /dev/null |
443 $flags.value > /dev/null |
434 if [ $? -ne 0 ]; then |
444 if [ $? -ne 0 ]; then |
435 $flags.varName+=" `$flags.value`" |
445 $flags.varName="$flags.varName `$flags.value`" |
436 else |
446 else |
437 ERROR=1 |
447 ERROR=1 |
438 break |
448 break |
439 fi |
449 fi |
440 #else |
450 #else |
441 $flags.varName+="$flags.value" |
451 $flags.varName="$flags.varName $flags.value" |
442 #end |
452 #end |
443 #end |
453 #end |
444 #if ( $dependency.make.length() > 0 ) |
454 #if ( $dependency.make.length() > 0 ) |
445 cat >> $TEMP_DIR/make.mk << __EOF__ |
455 cat >> $TEMP_DIR/make.mk << __EOF__ |
446 $dependency.make |
456 $dependency.make |
515 CXXFLAGS= |
525 CXXFLAGS= |
516 |
526 |
517 #foreach( $dependency in $target.dependencies ) |
527 #foreach( $dependency in $target.dependencies ) |
518 dependency_$dependency |
528 dependency_$dependency |
519 if [ $? -ne 0 ]; then |
529 if [ $? -ne 0 ]; then |
520 DEPENDENCIES_FAILED+="${dependency} " |
530 DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED ${dependency} " |
521 ERROR=1 |
531 ERROR=1 |
522 fi |
532 fi |
523 #end |
533 #end |
524 |
534 |
525 #foreach( $opt in $target.options ) |
535 #foreach( $opt in $target.options ) |