yocto.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* [meta-mingw] [PATCH] mingw32: Add WINDRES export for SDK
@ 2023-05-24  0:45 Khem Raj
  0 siblings, 0 replies; only message in thread
From: Khem Raj @ 2023-05-24  0:45 UTC (permalink / raw)
  To: yocto; +Cc: jpewhacker, Khem Raj

GCC-13 has added code where windres is called on a rc file which
includes winuser.h, this requires to call windres with -I option to
point to right header directory duting gcc-candian-cross builds

Fixes
../../../../../../../work-shared/gcc-13.1.0-r0/gcc-13.1.0/gcc/config/i386/utf8-mingw32.rc:1:10: fatal error: winuser.h: No such file or directory
|     1 | #include <winuser.h>
|       |          ^~~~~~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 conf/machine-sdk/include/mingw32-common.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/conf/machine-sdk/include/mingw32-common.inc b/conf/machine-sdk/include/mingw32-common.inc
index af6bfc4..9ec6e07 100644
--- a/conf/machine-sdk/include/mingw32-common.inc
+++ b/conf/machine-sdk/include/mingw32-common.inc
@@ -38,6 +38,9 @@ TESTSDKEXT_CLASS_NAME = ""
 WINDMC:mingw32 = "${HOST_PREFIX}windmc"
 WINDRES:mingw32 = "${HOST_PREFIX}windres --include-dir=${STAGING_INCDIR}"
 RC:mingw32 = "${WINDRES}"
+WINDMC:sdkmingw32 = "${HOST_PREFIX}windmc"
+WINDRES:sdkmingw32 = "${HOST_PREFIX}windres --include-dir=${STAGING_INCDIR}"
+RC:sdkmingw32 = "${WINDRES}"
 
 export WINDMC
 export WINDRES
-- 
2.40.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-24  0:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-24  0:45 [meta-mingw] [PATCH] mingw32: Add WINDRES export for SDK Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).