[meta-mingw][PATCH v2 2/2] cmake: add support for building nativesdk-cmake


Samuli Piippo
 

Build nativesdk-cmake and dependency libs without without openssl.

Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
---
recipes-devtools/cmake/cmake_%.bbappend | 7 +++++++
recipes-extended/libarchive/libarchive_%.bbappend | 1 +
recipes-support/curl/curl_%.bbappend | 2 ++
3 files changed, 10 insertions(+)
create mode 100644 recipes-devtools/cmake/cmake_%.bbappend
create mode 100644 recipes-extended/libarchive/libarchive_%.bbappend
create mode 100644 recipes-support/curl/curl_%.bbappend

diff --git a/recipes-devtools/cmake/cmake_%.bbappend b/recipes-devtools/cmake/cmake_%.bbappend
new file mode 100644
index 0000000..d9d7ceb
--- /dev/null
+++ b/recipes-devtools/cmake/cmake_%.bbappend
@@ -0,0 +1,7 @@
+DEPENDS_remove_mingw32 = "ncurses"
+
+cmake_do_generate_toolchain_file_append_mingw32() {
+ cat >> ${WORKDIR}/toolchain.cmake <<EOF
+set( CMAKE_SYSTEM_NAME Windows )
+EOF
+}
diff --git a/recipes-extended/libarchive/libarchive_%.bbappend b/recipes-extended/libarchive/libarchive_%.bbappend
new file mode 100644
index 0000000..a411b40
--- /dev/null
+++ b/recipes-extended/libarchive/libarchive_%.bbappend
@@ -0,0 +1 @@
+EXTRA_OECONF_append_mingw32 = " --without-cng"
diff --git a/recipes-support/curl/curl_%.bbappend b/recipes-support/curl/curl_%.bbappend
new file mode 100644
index 0000000..7865b46
--- /dev/null
+++ b/recipes-support/curl/curl_%.bbappend
@@ -0,0 +1,2 @@
+PACKAGECONFIG_remove_class-nativesdk_mingw32 = "ssl"
+RRECOMMENDS_lib${BPN}_remove_mingw32 = "ca-certificates"
--
2.17.1

Join yocto@lists.yoctoproject.org to automatically receive all group messages.