All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [meta-mingw][PATCH] expat: Switch platform to Windows in CMake toolchain file
       [not found] <20200718160325.18297-1-oleksandr.s.popovych@globallogic.com>
@ 2020-07-20 17:47 ` Joshua Watt
  2020-07-21 10:03   ` Oleksandr
  0 siblings, 1 reply; 3+ messages in thread
From: Joshua Watt @ 2020-07-20 17:47 UTC (permalink / raw)
  To: Oleksandr Popovych; +Cc: yocto

On Sat, Jul 18, 2020 at 11:03 AM Oleksandr Popovych
<oleksandr.s.popovych@globallogic.com> wrote:
>
> GNU Autotools build system is considered in upstream as potentially
> deprecated (https://github.com/libexpat/libexpat/issues/330), and
> expat library will be switched to use CMake.
>
> So this patch depends on "expat: Added ptest" patch for 'meta' layer,
> and fixes CMake toolchain file to work correctly with 'meta-mingw'
> layer.
> ---
>  recipes-core/expat/expat_%.bbappend | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/recipes-core/expat/expat_%.bbappend b/recipes-core/expat/expat_%.bbappend
> index 626ea5b..0fe3aa0 100644
> --- a/recipes-core/expat/expat_%.bbappend
> +++ b/recipes-core/expat/expat_%.bbappend
> @@ -1,3 +1,9 @@
>
>  FILES_${PN}-bin_mingw32 = "${bindir}/*.exe ${sbindir}/*.exe"
>
> +cmake_do_generate_toolchain_file_append_mingw32() {
> +    cat >> ${WORKDIR}/toolchain.cmake <<EOF
> +set( CMAKE_SYSTEM_NAME Windows )
> +EOF
> +}
> +

Hmm, this seems like the kind of thing that should be set for all
mingw32 builds....

> --
> 2.17.1
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [meta-mingw][PATCH] expat: Switch platform to Windows in CMake toolchain file
  2020-07-20 17:47 ` [meta-mingw][PATCH] expat: Switch platform to Windows in CMake toolchain file Joshua Watt
@ 2020-07-21 10:03   ` Oleksandr
  0 siblings, 0 replies; 3+ messages in thread
From: Oleksandr @ 2020-07-21 10:03 UTC (permalink / raw)
  To: Joshua Watt; +Cc: yocto

Hello Joshua,

On Mon, Jul 20, 2020 at 8:47 PM Joshua Watt <jpewhacker@gmail.com> wrote:
>
> Hmm, this seems like the kind of thing that should be set for all
> mingw32 builds....
>

Do you mean "set for all CMake-based recipes by default"? Maybe this is a better
option than adding the same function manually.

But then next question appears:
Should this be done by duplicating already existing "cmake.bbclass"
file to "meta-mingw"
layer and making changes there, or creating new class that inherits
"cmake.bbclass" and
adds necessary changes?
If there is a better way to achieve this goal, I`ll be glad to check it out.

Thanks for your attention.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [meta-mingw][PATCH] expat: Switch platform to Windows in CMake toolchain file
@ 2020-07-18 16:06 Oleksandr
  0 siblings, 0 replies; 3+ messages in thread
From: Oleksandr @ 2020-07-18 16:06 UTC (permalink / raw)
  To: yocto; +Cc: jpewhacker, Oleksandr Popovych

GNU Autotools build system is considered in upstream as potentially 
deprecated (https://github.com/libexpat/libexpat/issues/330), and
expat library will be switched to use CMake.

So this patch depends on "expat: Added ptest" patch for 'meta' layer, 
and fixes CMake toolchain file to work correctly with 'meta-mingw' 
layer.
---
 recipes-core/expat/expat_%.bbappend | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/recipes-core/expat/expat_%.bbappend b/recipes-core/expat/expat_%.bbappend
index 626ea5b..0fe3aa0 100644
--- a/recipes-core/expat/expat_%.bbappend
+++ b/recipes-core/expat/expat_%.bbappend
@@ -1,3 +1,9 @@
 
 FILES_${PN}-bin_mingw32 = "${bindir}/*.exe ${sbindir}/*.exe"
 
+cmake_do_generate_toolchain_file_append_mingw32() {
+    cat >> ${WORKDIR}/toolchain.cmake <<EOF
+set( CMAKE_SYSTEM_NAME Windows )
+EOF
+}
+
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-21 10:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20200718160325.18297-1-oleksandr.s.popovych@globallogic.com>
2020-07-20 17:47 ` [meta-mingw][PATCH] expat: Switch platform to Windows in CMake toolchain file Joshua Watt
2020-07-21 10:03   ` Oleksandr
2020-07-18 16:06 Oleksandr

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.