diff src/qt6-qttranslations.mk @ 6944:9414e8cf3e4f

Minor overhaul of Qt6 build rules * src/qt6-qt5compat.mk, src/qt6-qtbase.mk, src/qt6-qtimageformats.mk, src/qt6-qtsvg.mk, src/qt6-qttools.mk, src/qt6-qttranslations.mk: Use Ninja generator (only generator supported by upstream). Specify source and build tree directories in CMake configuration flags. Use separate build tree.
author Markus Mützel <markus.muetzel@gmx.de>
date Sun, 29 Oct 2023 10:45:35 +0100
parents b0e560738283
children 6bef17ab3e08
line wrap: on
line diff
--- a/src/qt6-qttranslations.mk	Sat Oct 28 13:32:14 2023 -0400
+++ b/src/qt6-qttranslations.mk	Sun Oct 29 10:45:35 2023 +0100
@@ -14,8 +14,11 @@
 endef
 
 define $(PKG)_BUILD
-    cd '$(1)' && '$(HOST_PREFIX)/qt6/bin/qt-cmake-private' -DCMAKE_INSTALL_PREFIX='$(HOST_PREFIX)/qt6' -DQT_HOST_PATH='$(BUILD_TOOLS_PREFIX)/qt6'
-    cmake --build $(1) -j '$(JOBS)'
-    cmake --install $(1)
+    '$(HOST_PREFIX)/qt6/bin/qt-cmake-private' \
+      -S '$(1)' -B '$(1).build' \
+      -DCMAKE_INSTALL_PREFIX='$(HOST_PREFIX)/qt6' \
+      -DQT_HOST_PATH='$(BUILD_TOOLS_PREFIX)/qt6'
+    cmake --build '$(1).build' -j '$(JOBS)'
+    cmake --install '$(1).build'
 endef