From 0e567cfba1337914a0da68ac2add8f4c20540560 Mon Sep 17 00:00:00 2001 From: Qijia Liu Date: Sat, 7 Dec 2024 20:30:57 -0500 Subject: [PATCH] support static addon --- CMakeLists.txt | 4 ++-- src/CMakeLists.txt | 2 +- src/hallelujah-addon.conf.in.in | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ffcf34..170ad36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.6.0) -project(fcitx5-hallelujah VERSION 5.0.1) +project(fcitx5-hallelujah VERSION 5.0.2) find_package(ECM 1.0.0 REQUIRED) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_MODULE_PATH}) @@ -12,7 +12,7 @@ option(ENABLE_TEST "Build Test" On) option(BUILD_DATA "Build data" On) find_package(Gettext REQUIRED) -find_package(Fcitx5Core 5.1.9 REQUIRED) +find_package(Fcitx5Core 5.1.12 REQUIRED) find_package(Fcitx5Module REQUIRED COMPONENTS Spell TestFrontend) find_package(PkgConfig REQUIRED) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bf6da01..5e83c96 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,4 +1,4 @@ -add_library(hallelujah MODULE hallelujah.cpp factory.cpp) +add_fcitx5_addon(hallelujah hallelujah.cpp factory.cpp) target_link_libraries(hallelujah Fcitx5::Core Fcitx5::Module::Spell fmt::fmt ${MARISA_TARGET} ${JSONC_TARGET}) install(TARGETS hallelujah DESTINATION "${FCITX_INSTALL_LIBDIR}/fcitx5") fcitx5_translate_desktop_file(hallelujah.conf.in hallelujah.conf) diff --git a/src/hallelujah-addon.conf.in.in b/src/hallelujah-addon.conf.in.in index 619f711..10777b3 100644 --- a/src/hallelujah-addon.conf.in.in +++ b/src/hallelujah-addon.conf.in.in @@ -3,7 +3,7 @@ Name=Hallelujah Category=InputMethod Version=@PROJECT_VERSION@ Library=libhallelujah -Type=SharedLibrary +Type=@FCITX_ADDON_TYPE@ OnDemand=True Configurable=True