diff options
author | Richard Purdie <richard@openedhand.com> | 2006-05-09 17:41:09 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-05-09 17:41:09 +0000 |
commit | ba7e2a07578dda8bc38dd9b1bc591859c39f33cc (patch) | |
tree | 76d70729005a110ced3a2d771584c2536fd7a07e /openembedded/classes | |
parent | 572f07af31f16b04f83755ee4d7a245eaf38a9f9 (diff) | |
download | poky-ba7e2a07578dda8bc38dd9b1bc591859c39f33cc.tar.gz |
Further site and class updates from OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@381 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/classes')
-rw-r--r-- | openembedded/classes/base.bbclass | 8 | ||||
-rw-r--r-- | openembedded/classes/qt3x11.bbclass | 20 | ||||
-rw-r--r-- | openembedded/classes/qt4x11.bbclass | 25 |
3 files changed, 29 insertions, 24 deletions
diff --git a/openembedded/classes/base.bbclass b/openembedded/classes/base.bbclass index 1728b65709..5f0e0d2fce 100644 --- a/openembedded/classes/base.bbclass +++ b/openembedded/classes/base.bbclass | |||
@@ -196,7 +196,7 @@ oe_libinstall() { | |||
196 | # stop libtool using the final directory name for libraries | 196 | # stop libtool using the final directory name for libraries |
197 | # in staging: | 197 | # in staging: |
198 | __runcmd rm -f $destpath/$libname.la | 198 | __runcmd rm -f $destpath/$libname.la |
199 | __runcmd sed -e 's/^installed=yes$/installed=no/' -e '/^dependency_libs=/s,${WORKDIR}[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),${STAGING_LIBDIR}/\1,' $dotlai >$destpath/$libname.la | 199 | __runcmd sed -e 's/^installed=yes$/installed=no/' -e '/^dependency_libs=/s,${WORKDIR}[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),${STAGING_LIBDIR}/\1,g' $dotlai >$destpath/$libname.la |
200 | else | 200 | else |
201 | __runcmd install -m 0644 $dotlai $destpath/$libname.la | 201 | __runcmd install -m 0644 $dotlai $destpath/$libname.la |
202 | fi | 202 | fi |
@@ -513,15 +513,15 @@ python base_eventhandler() { | |||
513 | if name.startswith("BuildStarted"): | 513 | if name.startswith("BuildStarted"): |
514 | bb.data.setVar( 'BB_VERSION', bb.__version__, e.data ) | 514 | bb.data.setVar( 'BB_VERSION', bb.__version__, e.data ) |
515 | path_to_bbfiles = bb.data.getVar( 'BBFILES', e.data, 1 ) | 515 | path_to_bbfiles = bb.data.getVar( 'BBFILES', e.data, 1 ) |
516 | path_to_packages = path_to_bbfiles[:path_to_bbfiles.index( "packages" )] | 516 | path_to_packages = path_to_bbfiles[:path_to_bbfiles.rindex( "packages" )] |
517 | monotone_revision = "<unknown>" | 517 | monotone_revision = "<unknown>" |
518 | try: | 518 | try: |
519 | monotone_revision = file( "%s/MT/revision" % path_to_packages ).read().strip() | 519 | monotone_revision = file( "%s/MT/revision" % path_to_packages ).read().strip() |
520 | except IOError: | 520 | except IOError: |
521 | pass | 521 | pass |
522 | bb.data.setVar( 'OE_REVISION', monotone_revision, e.data ) | 522 | bb.data.setVar( 'OE_REVISION', monotone_revision, e.data ) |
523 | statusvars = ['BB_VERSION', 'OE_REVISION', 'TARGET_ARCH', 'TARGET_OS', 'MACHINE', 'DISTRO', 'TARGET_FPU'] | 523 | statusvars = ['BB_VERSION', 'OE_REVISION', 'TARGET_ARCH', 'TARGET_OS', 'MACHINE', 'DISTRO', 'DISTRO_VERSION','TARGET_FPU'] |
524 | statuslines = ["%-13s = \"%s\"" % (i, bb.data.getVar(i, e.data, 1) or '') for i in statusvars] | 524 | statuslines = ["%-14s = \"%s\"" % (i, bb.data.getVar(i, e.data, 1) or '') for i in statusvars] |
525 | statusmsg = "\nOE Build Configuration:\n%s\n" % '\n'.join(statuslines) | 525 | statusmsg = "\nOE Build Configuration:\n%s\n" % '\n'.join(statuslines) |
526 | print statusmsg | 526 | print statusmsg |
527 | 527 | ||
diff --git a/openembedded/classes/qt3x11.bbclass b/openembedded/classes/qt3x11.bbclass index 09b9cbac96..6e3d5f8ba2 100644 --- a/openembedded/classes/qt3x11.bbclass +++ b/openembedded/classes/qt3x11.bbclass | |||
@@ -1,11 +1,15 @@ | |||
1 | DEPENDS_prepend = "${@["qt3x11 ", ""][(bb.data.getVar('PN', d, 1) == 'qt-x11-free')]}" | ||
2 | EXTRA_QMAKEVARS_POST += "CONFIG+=thread" | ||
1 | # | 3 | # |
2 | # override variables set by qmake-base to compile Qt/X11 apps | 4 | # override variables set by qmake-base to compile Qt/X11 apps |
3 | # | 5 | # |
4 | export QTDIR="${STAGING_DIR}/${HOST_SYS}/qt3" | 6 | export QTDIR = "${STAGING_DIR}/${HOST_SYS}/qt3" |
5 | export OE_QMAKE_UIC="${STAGING_BINDIR}/uic3" | 7 | export OE_QMAKE_UIC = "${STAGING_BINDIR}/uic3" |
6 | export OE_QMAKE_MOC="${STAGING_BINDIR}/moc3" | 8 | export OE_QMAKE_MOC = "${STAGING_BINDIR}/moc3" |
7 | export OE_QMAKE_CXXFLAGS="${CXXFLAGS} -DQT_NO_XIM" | 9 | export OE_QMAKE_CXXFLAGS = "${CXXFLAGS} -DQT_NO_XIM" |
8 | export OE_QMAKE_INCDIR_QT="${QTDIR}/include" | 10 | export OE_QMAKE_INCDIR_QT = "${QTDIR}/include" |
9 | export OE_QMAKE_LIBDIR_QT="${QTDIR}/lib" | 11 | export OE_QMAKE_LIBDIR_QT = "${QTDIR}/lib" |
10 | export OE_QMAKE_LIBS_QT="qt" | 12 | export OE_QMAKE_LIBS_QT = "qt" |
11 | export OE_QMAKE_LIBS_X11="-lXext -lX11 -lm" | 13 | export OE_QMAKE_LIBS_X11 = "-lXext -lX11 -lm" |
14 | |||
15 | |||
diff --git a/openembedded/classes/qt4x11.bbclass b/openembedded/classes/qt4x11.bbclass index 04aff565be..635fc67694 100644 --- a/openembedded/classes/qt4x11.bbclass +++ b/openembedded/classes/qt4x11.bbclass | |||
@@ -1,16 +1,17 @@ | |||
1 | DEPENDS_prepend = "qmake2-native " | 1 | DEPENDS_prepend = "qmake2-native " |
2 | DEPENDS_prepend = "${@["qt4x11 ", ""][(bb.data.getVar('PN', d, 1) == 'qt4-x11-free')]}" | ||
2 | # | 3 | # |
3 | # override variables set by qmake-base to compile Qt4/X11 apps | 4 | # override variables set by qmake-base to compile Qt4/X11 apps |
4 | # | 5 | # |
5 | export QTDIR="${STAGING_DIR}/${HOST_SYS}/qt4" | 6 | export QTDIR = "${STAGING_DIR}/${HOST_SYS}/qt4" |
6 | export QMAKESPEC="${QTDIR}/mkspecs/${TARGET_OS}-oe-g++" | 7 | export QMAKESPEC = "${QTDIR}/mkspecs/${TARGET_OS}-oe-g++" |
7 | export OE_QMAKE_UIC="${STAGING_BINDIR}/uic4" | 8 | export OE_QMAKE_UIC = "${STAGING_BINDIR}/uic4" |
8 | export OE_QMAKE_MOC="${STAGING_BINDIR}/moc4" | 9 | export OE_QMAKE_MOC = "${STAGING_BINDIR}/moc4" |
9 | export OE_QMAKE_RCC="${STAGING_BINDIR}/rcc4" | 10 | export OE_QMAKE_RCC = "${STAGING_BINDIR}/rcc4" |
10 | export OE_QMAKE_QMAKE="${STAGING_BINDIR}/qmake2" | 11 | export OE_QMAKE_QMAKE = "${STAGING_BINDIR}/qmake2" |
11 | export OE_QMAKE_LINK="${CXX}" | 12 | export OE_QMAKE_LINK = "${CXX}" |
12 | export OE_QMAKE_CXXFLAGS="${CXXFLAGS}" | 13 | export OE_QMAKE_CXXFLAGS = "${CXXFLAGS}" |
13 | export OE_QMAKE_INCDIR_QT="${QTDIR}/include" | 14 | export OE_QMAKE_INCDIR_QT = "${QTDIR}/include" |
14 | export OE_QMAKE_LIBDIR_QT="${QTDIR}/lib" | 15 | export OE_QMAKE_LIBDIR_QT = "${QTDIR}/lib" |
15 | export OE_QMAKE_LIBS_QT="qt" | 16 | export OE_QMAKE_LIBS_QT = "qt" |
16 | export OE_QMAKE_LIBS_X11="-lXext -lX11 -lm" | 17 | export OE_QMAKE_LIBS_X11 = "-lXext -lX11 -lm" |