All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Oleksandr" <oleksandr.s.popovych@globallogic.com>
To: yocto@lists.yoctoproject.org
Cc: jpewhacker@gmail.com,
	Oleksandr Popovych <oleksandr.s.popovych@globallogic.com>
Subject: [meta-mingw][PATCH] expat: Switch platform to Windows in CMake toolchain file
Date: Sat, 18 Jul 2020 19:06:30 +0300	[thread overview]
Message-ID: <20200718160630.18677-1-oleksandr.s.popovych@globallogic.com> (raw)

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


             reply	other threads:[~2020-07-18 16:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-18 16:06 Oleksandr [this message]
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200718160630.18677-1-oleksandr.s.popovych@globallogic.com \
    --to=oleksandr.s.popovych@globallogic.com \
    --cc=jpewhacker@gmail.com \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.