[oe] [PATCH] Add toolchain file generation to cmake bbclass

Matthew Dombroski matthew at 4d-electronics.co.nz
Wed Aug 26 22:38:47 UTC 2009


>
>> I have tried it, and the only thing I now have in the EXTRA_OECMAKE 
>> is QT_QMAKE_EXECUTABLE to be sure that it takes the one from staging 
>> and not the one from my system.
>>
>>> inherit qt4e cmake
>>> EXTRA_OECMAKE += "-DSHARED_LIBS:BOOL=ON -DCMD_LINE:BOOL=ON \
>>>         -DQT_QMAKE_EXECUTABLE=${OE_QMAKE_QMAKE} \
>>>         "
>>>
>>> export QT_CONF_PATH="${WORKDIR}/trunk/qt.conf"
>>>
>>> do_configure_prepend() {
>>>     echo "[Paths]" > $QT_CONF_PATH
>>>     echo "Prefix=${STAGING_DIR}/${HOST_SYS}/usr" >> $QT_CONF_PATH
>>>     echo "Documentation=${docdir}/${QT_DIR_NAME}" >> $QT_CONF_PATH
>>>     echo "Headers=${STAGING_INCDIR}/${QT_DIR_NAME}" >> $QT_CONF_PATH
>>>     echo "Libraries=${STAGING_LIBDIR}" >> $QT_CONF_PATH
>>>     echo "Binaries=${STAGING_BINDIR_NATIVE}" >> $QT_CONF_PATH
>>>     echo "Plugins=${libdir}/${QT_DIR_NAME}/plugins" >> $QT_CONF_PATH
>>>     echo "Data=${datadir}/${QT_DIR_NAME}" >> $QT_CONF_PATH
>>>     echo "Translations=${datadir}/${QT_DIR_NAME}/translations" >> 
>>> $QT_CONF_PATH
>>>     echo "Settings=${sysconfdir}/${QT_DIR_NAME}" >> $QT_CONF_PATH
>>>     echo "Examples=${bindir}/${QT_DIR_NAME}/examples" >> $QT_CONF_PATH
>>>     echo "Demos=${bindir}/${QT_DIR_NAME}/demos" >> $QT_CONF_PATH
>>> }
>>>
> That looks quite good now, maybe it's a good idea to add a 
> generate_qt_conf() to qmake2.bbclass.
> That way it's independent of what build system we're using.

Have tried it, didn't work.
cmake is able to find libs, headers and some executables but a lot of 
stuff is unfound.

~Matt





More information about the Openembedded-devel mailing list