Warning, /packaging/yocto-meta-kde/recipes-support/libpinyin/0003-Add-option-to-disable-data-generation.patch is written in an unsupported language. File is not indexed.
0001 From 6669cda619e7adbf460de95dc792513e1ffb098b Mon Sep 17 00:00:00 2001 0002 From: Andreas Cord-Landwehr <cordlandwehr@kde.org> 0003 Date: Sun, 3 Jan 2021 18:18:34 +0100 0004 Subject: [PATCH 3/3] Add option to disable data generation 0005 0006 The data generation is not needed when only the library and the 0007 utilities are built. 0008 --- 0009 CMakeLists.txt | 5 ++++- 0010 1 file changed, 4 insertions(+), 1 deletion(-) 0011 0012 diff --git a/CMakeLists.txt b/CMakeLists.txt 0013 index 7044fb2..8001e45 100644 0014 --- a/CMakeLists.txt 0015 +++ b/CMakeLists.txt 0016 @@ -69,6 +69,7 @@ find_package(GLIB2 REQUIRED) 0017 0018 option(INSTALL_UTILS "Build QtMultimedia sound backend" OFF) 0019 option(DOWNLOAD_MODEL_DATA_ARCHIVE "Update the model data archive while building" ON) 0020 +option(DISABLE_DATA_GENERATION OFF) 0021 0022 # DBM: BerkeleyDB 0023 find_package(BerkeleyDB) 0024 @@ -185,4 +186,6 @@ include_directories( 0025 add_subdirectory(src) 0026 add_subdirectory(tests) 0027 add_subdirectory(utils) 0028 -add_subdirectory(data) 0029 +if(NOT DISABLE_DATA_GENERATION) 0030 + add_subdirectory(data) 0031 +endif() 0032 -- 0033 2.34.1 0034