* [meta-mingw][master/sumo][PATCH] swig: Add swig environment setup for SDK
@ 2018-08-24 14:53 Joshua Watt
2018-08-30 14:12 ` Joshua Watt
0 siblings, 1 reply; 3+ messages in thread
From: Joshua Watt @ 2018-08-24 14:53 UTC (permalink / raw)
To: yocto
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@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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [meta-mingw][master/sumo][PATCH] swig: Add swig environment setup for SDK
2018-08-24 14:53 [meta-mingw][master/sumo][PATCH] swig: Add swig environment setup for SDK Joshua Watt
@ 2018-08-30 14:12 ` Joshua Watt
2018-08-30 21:22 ` Burton, Ross
0 siblings, 1 reply; 3+ messages in thread
From: Joshua Watt @ 2018-08-30 14:12 UTC (permalink / raw)
To: Yocto list discussion
[-- Attachment #1: Type: text/plain, Size: 1308 bytes --]
On Fri, Aug 24, 2018, 09:54 Joshua Watt <jpewhacker@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@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
>
[-- Attachment #2: Type: text/html, Size: 1987 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [meta-mingw][master/sumo][PATCH] swig: Add swig environment setup for SDK
2018-08-30 14:12 ` Joshua Watt
@ 2018-08-30 21:22 ` Burton, Ross
0 siblings, 0 replies; 3+ messages in thread
From: Burton, Ross @ 2018-08-30 21:22 UTC (permalink / raw)
To: Joshua Watt; +Cc: Yocto list discussion
Was away for a week, back now. Merged to both master and sumo.
Thanks,
Ross
On 30 August 2018 at 15:12, Joshua Watt <jpewhacker@gmail.com> wrote:
>
>
> On Fri, Aug 24, 2018, 09:54 Joshua Watt <jpewhacker@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@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
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-08-30 21:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-24 14:53 [meta-mingw][master/sumo][PATCH] swig: Add swig environment setup for SDK Joshua Watt
2018-08-30 14:12 ` Joshua Watt
2018-08-30 21:22 ` Burton, Ross
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.