From 149938cc445f99b1aa40c490014aad72cf698dec Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sun, 15 Dec 2024 06:41:07 +0100 Subject: lxdrgen-cpp: add a Qt backend Motivation: some Android NDKs do not have iconv. --- README.adoc | 3 ++- tools/lxdrgen-cpp-qt.cpp | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 tools/lxdrgen-cpp-qt.cpp diff --git a/README.adoc b/README.adoc index debedf1..20a4612 100644 --- a/README.adoc +++ b/README.adoc @@ -45,8 +45,9 @@ lxdrgen-c.awk:: LibertyXDR backend that builds on top of the C pseudolibrary. lxdrgen-cpp.awk:: -lxdrgen-cpp-win32.cpp:: lxdrgen-cpp-posix.cpp:: +lxdrgen-cpp-qt.cpp:: +lxdrgen-cpp-win32.cpp:: LibertyXDR backend for C++, primarily targeting Win32 and its wide strings. Link the result together with one of the accompanied source files. diff --git a/tools/lxdrgen-cpp-qt.cpp b/tools/lxdrgen-cpp-qt.cpp new file mode 100644 index 0000000..60e7293 --- /dev/null +++ b/tools/lxdrgen-cpp-qt.cpp @@ -0,0 +1,23 @@ +// lxdrgen-cpp-qt.cpp: Qt support code for lxdrgen-cpp.awk. +// +// Copyright (c) 2024, Přemysl Eric Janouch
+// SPDX-License-Identifier: 0BSD
+#include