summaryrefslogtreecommitdiffstats
path: root/trinity-base/kig/files/kig-14.1.4-fix-build-without-scripting.patch
blob: 3346d4832dc5ad54072d6e6c88f8e5d5abaa51ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
From 1f644fbf744816bc4524ea2e4fc78eede6f64b93 Mon Sep 17 00:00:00 2001
From: Alexander Golubev <fatzer2@gmail.com>
Date: Sat, 9 Aug 2025 05:59:48 +0300
Subject: [PATCH] kig: fix build without scripting

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
---
 kig/CMakeLists.txt | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/kig/CMakeLists.txt b/kig/CMakeLists.txt
index 40d738a2..23a5511d 100644
--- a/kig/CMakeLists.txt
+++ b/kig/CMakeLists.txt
@@ -9,9 +9,13 @@ add_subdirectory( tdefile   )
 add_subdirectory( data      )
 add_subdirectory( icons     )
 add_subdirectory( pykig     )
-add_subdirectory( scripting )
 add_subdirectory( examples  )
 
+if( WITH_KIG_PYTHON_SCRIPTING )
+  add_subdirectory( scripting )
+  set( KIGSCRIPTING_LIBRARIES kigscripting-static )
+endif( )
+
 include_directories(
   ${CMAKE_BINARY_DIR}
   ${CMAKE_CURRENT_BINARY_DIR}
@@ -25,7 +29,6 @@ link_directories(
   ${TDE_LIB_DIR}
 )
 
-
 ##### libkigpart (kpart)
 
 configure_file( ${TDE_CMAKE_TEMPLATES}/tde_dummy_cpp.cmake dummy.cpp COPYONLY )
@@ -43,7 +46,7 @@ tde_add_kpart( libkigpart AUTOMOC
      kigobjects-static
      kigfilters-static
      kigmodes-static
-     kigscripting-static
+     ${KIGSCRIPTING_LIBRARIES}
 
   EMBED
      kigpart-static
-- 
2.49.1