From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wDXRAa011GOrgAEAbAwnHQ (envelope-from ) for ; Fri, 27 Jan 2023 21:35:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EJajAa011GMSVgAAauVa8A (envelope-from ) for ; Fri, 27 Jan 2023 21:35:57 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A9483125A3 for ; Fri, 27 Jan 2023 21:35:56 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLVRB-0006se-IJ; Fri, 27 Jan 2023 15:35:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLVR9-0006s9-4X for guix-patches@gnu.org; Fri, 27 Jan 2023 15:35:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pLVR8-0004Yf-Rh for guix-patches@gnu.org; Fri, 27 Jan 2023 15:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pLVR8-0006Od-Cs for guix-patches@gnu.org; Fri, 27 Jan 2023 15:35:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60695] [PATCH v2 2/9] gnu: Add qtimgui. Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 27 Jan 2023 20:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60695 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60695@debbugs.gnu.org Received: via spool by 60695-submit@debbugs.gnu.org id=B60695.167485168624480 (code B ref 60695); Fri, 27 Jan 2023 20:35:02 +0000 Received: (at 60695) by debbugs.gnu.org; 27 Jan 2023 20:34:46 +0000 Received: from localhost ([127.0.0.1]:38580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLVQs-0006Mb-10 for submit@debbugs.gnu.org; Fri, 27 Jan 2023 15:34:46 -0500 Received: from mailout.easymail.ca ([64.68.200.34]:56704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLVQq-0006Ly-1s for 60695@debbugs.gnu.org; Fri, 27 Jan 2023 15:34:45 -0500 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id B2553E8525 for <60695@debbugs.gnu.org>; Fri, 27 Jan 2023 20:34:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo08-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo08-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PsBDAu8JBNkz for <60695@debbugs.gnu.org>; Fri, 27 Jan 2023 20:34:37 +0000 (UTC) Received: from localhost.localdomain (23-233-96-72.cpe.pppoe.ca [23.233.96.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 8FA62E8512 for <60695@debbugs.gnu.org>; Fri, 27 Jan 2023 20:34:36 +0000 (UTC) From: Simon South Date: Fri, 27 Jan 2023 15:34:27 -0500 Message-Id: X-Mailer: git-send-email 2.39.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674851756; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=0WDwoF/YhwpW3KeR51KjuJe4FVHE6q//ltCiCmct/Xs=; b=bPEjsXUcYkxgxdouIbTZMjMbK1mm2ILiu7MD0RzlbJ8QDSHd/1PMjbq4Lv9t9awE/UZj7B 0vD6PlA9iPEjDQ75uYtB89uDJVwbOmepb3KVSvq2kYOrYxFynGyL1RXl72ak2wYODM1F45 A08ttNqGCZbU33iZR48t8/XP1IUJgmkK/26h7Wk2v8I2X6E7S9gcjiQU0K94gRiBza4DJc N4eGdI4anrPTX15JNDGNd08o2kzQrumY7doGJkwtla/v5+L+x1aNOaiNjEMYhikLfA6bGu tR+yZsEDKwTYyc3JTMuRe/AAoI574UMnESC/nn2JABQ8nyD6ZVB8H310EiK7fQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674851756; a=rsa-sha256; cv=none; b=Sxr9TL0V0QsuRDqHduc+aWJsE5NjT0nW2UJkWoqsXXUW6TV+JEX5sxk89ij7g/NdXMbUHc kXEKc591AHC73pL3CNngSOWSrXk8aBQBblFFj3rAKQkjjJe+GkRR35R2kKGePvbzeaKwme XoEkXFB5LBGN4/nWV2MlsuCEm2X/zFND6KJFFu4zNs9Ha9ImZK9a5m5xKOU9g7IORF//Ij 3AFxHOAblm11SqNb5Omji6rbX+49MqjPiGIHxeF/K7lVRPDK9jQ1SuixhmwkXAa/+b19mL KvKxoFxUha+KRSRWfDO8B9cJLAKPj8nEPnwBcCSkd/7geQTQpCSP6Br89bCUcA== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -1.67 X-Spam-Score: -1.67 X-Migadu-Queue-Id: A9483125A3 X-TUID: 7t0qII9J176w * gnu/packages/qt.scm (qtimgui): New variable. --- gnu/packages/qt.scm | 63 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 14fc73ef28..d513794484 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -26,6 +26,7 @@ ;;; Copyright © 2022 Foo Chuan Wei ;;; Copyright © 2022 Zhu Zihao ;;; Copyright © 2022 Petr Hodina +;;; Copyright © 2023 Simon South ;;; ;;; This file is part of GNU Guix. ;;; @@ -114,6 +115,7 @@ (define-module (gnu packages qt) #:use-module (gnu packages sqlite) #:use-module (gnu packages telephony) #:use-module (gnu packages tls) + #:use-module (gnu packages toolkits) #:use-module (gnu packages valgrind) #:use-module (gnu packages video) #:use-module (gnu packages vulkan) @@ -3550,6 +3552,67 @@ (define-public python-pyqt+qscintilla (description "This package contains the union of PyQt and the Qscintilla extension."))) +(define-public qtimgui + (let ((commit "48d64a715b75dee24e398f7e5b0942c2ca329334") + (revision "0")) + (package + (name "qtimgui") + (version (git-version "0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/seanchas116/qtimgui") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0x71j8m15w003ak0d7q346rlwyvklkda9l0dwbxfx6kny3gsl11k")))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags #~(list "-DQTIMGUI_BUILD_IMGUI=OFF" + "-DQTIMGUI_BUILD_IMPLOT=OFF") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-source + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "CMakeLists.txt" + ;; Disable building the examples. + (("^add_subdirectory\\(examples\\)") "")) + (substitute* "src/CMakeLists.txt" + ;; Build shared libraries, not static. + (("STATIC") "SHARED") + ;; Compile with the system imgui headers. + (("^(target_include_directories.*)\\)" _ prefix) + (string-append prefix + " " + (search-input-directory inputs + "include/imgui") + ")"))))) + (replace 'install + ;; No install target provided; manually copy the header and + ;; library files to the output. + (lambda* (#:key source #:allow-other-keys) + (for-each + (lambda (file-name) + (install-file (string-append source "/src/" file-name) + (string-append #$output "/include/qtimgui"))) + '("ImGuiRenderer.h" "QtImGui.h")) + (for-each + (lambda (file-name) + (install-file (string-append "src/" file-name) + (string-append #$output "/lib"))) + '("libqt_imgui_quick.so" "libqt_imgui_widgets.so"))))) + #:tests? #f)) ; no test suite + (inputs + (list imgui-1.86 implot qtbase-5 qtdeclarative-5)) + (home-page "https://github.com/seanchas116/qtimgui") + (synopsis "Qt backend for the ImGui GUI library") + (description "QtImGui allows the ImGui C++ GUI library to be used by Qt +applications within subclasses of @code{QOpenGLWidget} and +@code{QOpenGLWindow}.") + (license license:expat)))) + (define-public qtkeychain (package (name "qtkeychain") -- 2.38.1