Changeset 22676 in vbox
- Timestamp:
- Sep 1, 2009 3:02:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r22628 r22676 1323 1323 test_header Qt4 1324 1324 if [ "$OS" = "darwin" ]; then 1325 if [ -f "/System/Library/Frameworks/QtCore.framework/QtCore" ]; then 1326 PATH_SDK_QT4="/System/Library/Framework/QtCore.framework" 1327 elif [ -f "/Library/Frameworks/QtCore.framework/QtCore" ]; then 1328 PATH_SDK_QT4="/Library/Frameworks/QtCore.framework" 1329 fi 1325 # First check if there is the internal version of Qt. If yes nothing else 1326 # has to be done. 1327 QT_INTERNAL=`/bin/ls -rd1 $PWD/tools/$BUILD_TARGET.$BUILD_PLATFORM_ARCH/qt/* 2> /dev/null` 1328 for t in $QT_INTERNAL; do 1329 if [ -f "$t/Frameworks/QtCoreVBox.framework/QtCoreVBox" ]; then 1330 cnf_append "VBOX_WITH_QT4_SUN" "1" 1331 log_success "use internal version" 1332 return 1333 fi 1334 done 1335 # Now try the user provided directory and some of the standard directories. 1336 QT_TRIES="$QT4DIR /System/Library /Library" 1337 for t in $QT_TRIES; do 1338 if [ -f "$t/Frameworks/QtCore.framework/QtCore" ]; then 1339 PATH_SDK_QT4="$t" 1340 break 1341 fi 1342 done 1343 # Add the necessary params for building the test application 1330 1344 if [ -n "$PATH_SDK_QT4" ]; then 1331 1345 foundqt4=1 1332 INCQT4= "$PATH_SDK_QT4/Headers"1333 LIBQT4= 1346 INCQT4=-I$PATH_SDK_QT4/Frameworks/QtCore.framework/Headers 1347 LIBQT4=-F$PATH_SDK_QT4/Frameworks 1334 1348 FLGQT4="-framework QtCore" 1335 1349 else … … 1416 1430 if test_compile "$LIBQT4 $LIBPTHREAD $I_INCQT4 $FLGQT4" qt4 qt4 nofatal; then 1417 1431 if test_execute_path "`strip_L "$LIBQT4"`"; then 1418 if [ "$OS" != "darwin" ]; then 1432 if [ "$OS" = "darwin" ]; then 1433 # Successful build & run the test application so add the necessary 1434 # params to AutoConfig.kmk 1435 cnf_append "PATH_SDK_QT4_INC" "$PATH_SDK_QT4/Frameworks" 1436 cnf_append "PATH_SDK_QT4_LIB" "$PATH_SDK_QT4/Frameworks" 1437 cnf_append "PATH_SDK_QT4" "$PATH_SDK_QT4/Frameworks" 1438 # Check for the moc tool in the Qt directory found & some standard 1439 # directories. 1440 for q in $PATH_SDK_QT4 /usr /Developer/Tools/Qt; do 1441 if which_wrapper "$q/bin/moc" > /dev/null; then 1442 cnf_append "PATH_TOOL_QT4" "$q" 1443 cnf_append "PATH_TOOL_QT4_BIN" "$q/bin" 1444 fi 1445 done 1446 else 1419 1447 # strip .../QtCore as we add components ourself 1420 1448 INCQT4=`echo "$INCQT4"|$KBUILD_SED 's|\([^ ]*\)/QtCore|\1|g; s| $||g'`
Note:
See TracChangeset
for help on using the changeset viewer.