File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ include(ECMSetupVersion)
10
10
include (ECMUninstallTarget)
11
11
12
12
find_package (Lua 5.3 REQUIRED)
13
- find_package (Fcitx5Core REQUIRED)
13
+ find_package (Fcitx5Core 5.1.12 REQUIRED)
14
14
find_package (Gettext REQUIRED)
15
15
find_package (Pthread REQUIRED)
16
16
find_package (Fcitx5Module REQUIRED COMPONENTS QuickPhrase)
Original file line number Diff line number Diff line change 1
- add_library (luaaddonloader MODULE luastate.cpp luaaddonstate.cpp luaaddonloader.cpp luaaddon.cpp luahelper.cpp)
1
+ add_fcitx5_addon (luaaddonloader luastate.cpp luaaddonstate.cpp luaaddonloader.cpp luaaddon.cpp luahelper.cpp)
2
2
target_link_libraries (luaaddonloader Lua::_LuaLibrary Fcitx5::Core Fcitx5::Module::QuickPhrase)
3
3
target_include_directories (luaaddonloader PRIVATE ${CMAKE_CURRENT_BINARY_DIR} )
4
4
install (TARGETS luaaddonloader DESTINATION "${CMAKE_INSTALL_LIBDIR} /fcitx5" )
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Name=Lua Addon Loader
3
3
Comment=Lua Addon support
4
4
Category=Module
5
5
Version=@PROJECT_VERSION@
6
- Type=SharedLibrary
6
+ Type=@FCITX_ADDON_TYPE@
7
7
OnDemand=True
8
8
Configurable=False
9
9
Library=libluaaddonloader
Original file line number Diff line number Diff line change @@ -84,4 +84,4 @@ AddonInstance *LuaAddonLoaderFactory::create(AddonManager *manager) {
84
84
85
85
} // namespace fcitx
86
86
87
- FCITX_ADDON_FACTORY ( fcitx::LuaAddonLoaderFactory);
87
+ FCITX_ADDON_FACTORY_V2 (luaaddonloader, fcitx::LuaAddonLoaderFactory)
You can’t perform that action at this time.
0 commit comments