PKGBUILDs/qt6-activeqt/mingw-w64/0002-Build-tools-for-the-ta...

66 lines
2.1 KiB
Diff
Raw Normal View History

From 6bc80ca098ad18394ecdfa1c36df1b0d633d8876 Mon Sep 17 00:00:00 2001
2021-04-28 17:11:48 +02:00
From: Martchus <martchus@gmx.net>
Date: Fri, 7 May 2021 16:10:47 +0200
2022-09-11 12:19:18 +02:00
Subject: [PATCH 2/3] Build tools for the target platform
2021-04-28 17:11:48 +02:00
These tools seem to be not portable so they should not be built for the
host platform. If they need to be executed on the host they could be
executed using WINE.
---
src/tools/idc/CMakeLists.txt | 5 +++--
tools/dumpcpp/CMakeLists.txt | 3 +--
tools/dumpdoc/CMakeLists.txt | 3 +--
3 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/tools/idc/CMakeLists.txt b/src/tools/idc/CMakeLists.txt
2023-03-31 23:09:26 +02:00
index f1d784e..b595ac5 100644
2021-04-28 17:11:48 +02:00
--- a/src/tools/idc/CMakeLists.txt
+++ b/src/tools/idc/CMakeLists.txt
2023-03-31 23:09:26 +02:00
@@ -6,10 +6,11 @@
2021-04-28 17:11:48 +02:00
#####################################################################
qt_get_tool_target_name(target_name idc)
2023-03-31 23:09:26 +02:00
-qt_internal_add_tool(${target_name}
+qt_internal_add_app(${target_name}
2021-04-28 17:11:48 +02:00
TARGET_DESCRIPTION "Active Qt Interface Description Compiler"
2023-03-31 23:09:26 +02:00
- TOOLS_TARGET AxServer
2021-04-28 17:11:48 +02:00
SOURCES
main.cpp
+ PUBLIC_LIBRARIES
+ Qt::Core
)
2022-04-10 00:11:10 +02:00
qt_internal_return_unless_building_tools()
2021-04-28 17:11:48 +02:00
diff --git a/tools/dumpcpp/CMakeLists.txt b/tools/dumpcpp/CMakeLists.txt
2023-03-31 23:09:26 +02:00
index 571f830..7cbec30 100644
2021-04-28 17:11:48 +02:00
--- a/tools/dumpcpp/CMakeLists.txt
+++ b/tools/dumpcpp/CMakeLists.txt
2023-03-31 23:09:26 +02:00
@@ -6,9 +6,8 @@
2021-04-28 17:11:48 +02:00
#####################################################################
qt_get_tool_target_name(target_name dumpcpp)
2023-03-31 23:09:26 +02:00
-qt_internal_add_tool(${target_name}
+qt_internal_add_app(${target_name}
2021-04-28 17:11:48 +02:00
TARGET_DESCRIPTION "Active Qt DumpCpp"
2023-03-31 23:09:26 +02:00
- TOOLS_TARGET AxContainer
2021-04-28 17:11:48 +02:00
SOURCES
main.cpp
moc.cpp moc.h
diff --git a/tools/dumpdoc/CMakeLists.txt b/tools/dumpdoc/CMakeLists.txt
2023-03-31 23:09:26 +02:00
index 84b4018..1dc4b9e 100644
2021-04-28 17:11:48 +02:00
--- a/tools/dumpdoc/CMakeLists.txt
+++ b/tools/dumpdoc/CMakeLists.txt
2023-03-31 23:09:26 +02:00
@@ -6,9 +6,8 @@
2021-04-28 17:11:48 +02:00
#####################################################################
qt_get_tool_target_name(target_name dumpdoc)
2023-03-31 23:09:26 +02:00
-qt_internal_add_tool(${target_name}
+qt_internal_add_app(${target_name}
2021-04-28 17:11:48 +02:00
TARGET_DESCRIPTION "Active Qt DumpDoc"
2023-03-31 23:09:26 +02:00
- TOOLS_TARGET AxContainer
2021-04-28 17:11:48 +02:00
SOURCES
main.cpp
2023-03-31 23:09:26 +02:00
LIBRARIES
2021-04-28 17:11:48 +02:00
--
2.44.0
2021-04-28 17:11:48 +02:00