From 019b0db52208847d6adeb7254ef5d83f00a8eb67 Mon Sep 17 00:00:00 2001 From: Daniel Dada Date: Wed, 17 Dec 2025 13:32:26 +0300 Subject: [PATCH] build: added gtk dep --- AUR/PKGBUILD | 4 +++- AUR/PKGBUILD-git | 2 ++ AUR/PKGBUILD.in | 2 ++ CMakeLists.txt | 2 +- VERSION | 2 +- cmake/Dependencies.cmake | 5 +++++ package.nix | 1 + src/core/version.hpp | 2 +- src/gui/CMakeLists.txt | 5 +---- 9 files changed, 17 insertions(+), 8 deletions(-) diff --git a/AUR/PKGBUILD b/AUR/PKGBUILD index c8af2ca..e6e24fb 100644 --- a/AUR/PKGBUILD +++ b/AUR/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Daniel Dada pkgname=clrsync -pkgver=0.1.4 +pkgver=0.1.5 pkgrel=1 pkgdesc="Color scheme manager" arch=('x86_64') @@ -14,6 +14,7 @@ depends=( mesa libglvnd libxcursor + gtk3 ) makedepends=( @@ -26,6 +27,7 @@ makedepends=( libxcursor wayland wayland-protocols + gtk3 ) source=("$pkgname-$pkgver.tar.gz::https://github.com/obsqrbtz/clrsync/archive/refs/tags/v$pkgver.tar.gz") diff --git a/AUR/PKGBUILD-git b/AUR/PKGBUILD-git index 64709cc..3e78ae8 100644 --- a/AUR/PKGBUILD-git +++ b/AUR/PKGBUILD-git @@ -13,6 +13,7 @@ depends=( mesa libglvnd libxcursor + gtk3 ) makedepends=( @@ -26,6 +27,7 @@ makedepends=( libxcursor wayland wayland-protocols + gtk3 ) provides=('clrsync') conflicts=('clrsync') diff --git a/AUR/PKGBUILD.in b/AUR/PKGBUILD.in index be80acc..1bc9e45 100644 --- a/AUR/PKGBUILD.in +++ b/AUR/PKGBUILD.in @@ -14,6 +14,7 @@ depends=( mesa libglvnd libxcursor + gtk3 ) makedepends=( @@ -26,6 +27,7 @@ makedepends=( libxcursor wayland wayland-protocols + gtk3 ) source=("$pkgname-$pkgver.tar.gz::https://github.com/obsqrbtz/clrsync/archive/refs/tags/v$pkgver.tar.gz") diff --git a/CMakeLists.txt b/CMakeLists.txt index a523e66..1173adb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(clrsync VERSION 0.1.4 LANGUAGES CXX) +project(clrsync VERSION 0.1.5 LANGUAGES CXX) include(GNUInstallDirs) diff --git a/VERSION b/VERSION index 845639e..9faa1b7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.4 +0.1.5 diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake index 58e25ae..934e21d 100644 --- a/cmake/Dependencies.cmake +++ b/cmake/Dependencies.cmake @@ -24,6 +24,11 @@ else() pkg_check_modules(WAYLAND_EGL wayland-egl) endif() +if (LINUX) + find_package(PkgConfig REQUIRED) + pkg_check_modules(GTK3 REQUIRED gtk+-3.0) +endif() + if(USE_SYSTEM_GLFW) pkg_check_modules(GLFW REQUIRED glfw3) else() diff --git a/package.nix b/package.nix index a3ed9fa..40b05d6 100644 --- a/package.nix +++ b/package.nix @@ -67,6 +67,7 @@ stdenv.mkDerivation rec { libxkbcommon zlib bzip2 + gtk3 ]; cmakeFlags = [ diff --git a/src/core/version.hpp b/src/core/version.hpp index bc2bb38..04f3619 100644 --- a/src/core/version.hpp +++ b/src/core/version.hpp @@ -6,7 +6,7 @@ namespace clrsync::core { -const std::string GIT_SEMVER = "0.1.4+git.gb4ca5e1"; +const std::string GIT_SEMVER = "0.1.4+git.g58eff4d"; const std::string version_string(); } // namespace clrsync::core diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index fde12b9..59b52a3 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -43,10 +43,7 @@ elseif(APPLE) OpenGL::GL "-framework Cocoa" ) -else() - find_package(PkgConfig REQUIRED) - pkg_check_modules(GTK3 REQUIRED gtk+-3.0) - +else() target_link_libraries(clrsync_gui PRIVATE clrsync_core imgui