Import the vocalinux source tree (tray app, Next.js site in web/, packaging, installers, docs and tests) on top of the Gitea template commit. The project README replaces the template README, and the template CI files (.gitea/workflows/ci.yml, .jscpd.json, CI.md) are kept.
44 lines
1.2 KiB
Diff
44 lines
1.2 KiB
Diff
From 8a09e6ad33c58c017c0c8fd756da036fc39428ea Mon Sep 17 00:00:00 2001
|
|
From: Alexander Koskovich <akoskovich@pm.me>
|
|
Date: Sun, 29 Sep 2024 13:47:54 -0400
|
|
Subject: [PATCH 1/1] Make introspection configurable
|
|
|
|
---
|
|
CMakeLists.txt | 1 +
|
|
src/CMakeLists.txt | 4 ++++
|
|
2 files changed, 5 insertions(+)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 0e13fcd..f3e9ec0 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -12,6 +12,7 @@ endif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
|
option(ENABLE_TESTS "Enable all tests and checks" OFF)
|
|
option(ENABLE_COVERAGE "Enable coverage reports (includes enabling all tests and checks)" OFF)
|
|
option(ENABLE_WERROR "Treat all build warnings as errors" OFF)
|
|
+option(ENABLE_INTROSPECTION "Enable introspection" ON)
|
|
|
|
if(ENABLE_COVERAGE)
|
|
set(ENABLE_TESTS ON)
|
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index 5b3638d..aca9481 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -108,6 +108,8 @@ install(TARGETS "ayatana-ido3-0.4" LIBRARY DESTINATION "${CMAKE_INSTALL_FULL_LIB
|
|
|
|
# AyatanaIdo3-0.4.gir
|
|
|
|
+if (ENABLE_INTROSPECTION)
|
|
+
|
|
find_package(GObjectIntrospection REQUIRED QUIET)
|
|
|
|
if (INTROSPECTION_FOUND)
|
|
@@ -183,3 +185,5 @@ if (INTROSPECTION_FOUND)
|
|
endif ()
|
|
|
|
endif ()
|
|
+
|
|
+endif ()
|
|
--
|
|
2.46.2
|