[yocto] [meta-mingw][master/sumo][PATCH] swig: Add swig environment setup for SDK

Joshua Watt jpewhacker at gmail.com
Thu Aug 30 07:12:21 PDT 2018


On Fri, Aug 24, 2018, 09:54 Joshua Watt <jpewhacker at gmail.com> wrote:

> Configures the mingw SDK environment to set the SWIG_LIB environment
> variable so that swig can find its core library. Otherwise, swig will
> look for a directory called "Lib" next to the executable.
>
> Signed-off-by: Joshua Watt <JPEWhacker at gmail.com>
> ---
>  recipes-devtools/swig/swig_%.bbappend | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>  create mode 100644 recipes-devtools/swig/swig_%.bbappend
>
> diff --git a/recipes-devtools/swig/swig_%.bbappend
> b/recipes-devtools/swig/swig_%.bbappend
> new file mode 100644
> index 0000000..de40609
> --- /dev/null
> +++ b/recipes-devtools/swig/swig_%.bbappend
> @@ -0,0 +1,12 @@
> +# A wrapper script won't work to set SWIG_LIB for a mingw SDK. Instead,
> add an
> +# environment setup batch file to set SWIG_LIB when the SDK is configured.
> +do_install_append_class-nativesdk_mingw32() {
> +    install -d ${D}${SDKPATHNATIVE}/environment-setup.d
> +
> +    cat <<HEREDOC > ${D}${SDKPATHNATIVE}/environment-setup.d/swig.bat
> +set SWIG_LIB=%OECORE_NATIVE_SYSROOT%\\usr\\share\\${BPN}\\${PV}
> +HEREDOC
> +}
> +
> +FILES_${PN}_append_class-nativesdk_mingw32 = "
> ${SDKPATHNATIVE}/environment-setup.d"
> +
> --
> 2.17.1
>

Ping

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180830/63b7e628/attachment-0001.html>


More information about the yocto mailing list