Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
360 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
cmake_minimum_required(VERSION 3.21) | ||
project(fcitx5-quwei) | ||
|
||
find_package(Gettext REQUIRED) | ||
find_package(Fcitx5Core REQUIRED) | ||
|
||
# Setup some compiler option that is generally useful and compatible with Fcitx 5 (C++17) | ||
include("${FCITX_INSTALL_CMAKECONFIG_DIR}/Fcitx5Utils/Fcitx5CompilerSettings.cmake") | ||
|
||
add_subdirectory(src) | ||
add_subdirectory(po) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fcitx5_install_translation(fcitx5-quwei) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | ||
# This file is distributed under the same license as the fcitx5-quwei package. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: fcitx5-quwei\n" | ||
"Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" | ||
"POT-Creation-Date: 2021-11-16 10:07-0800\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"Language: LANG\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#. Translatable name of the input method | ||
#: build/src/quwei-addon.conf.in:3 src/quwei-addon.conf.in.in:3 | ||
#: src/quwei.conf.in:4 | ||
msgid "Quwei" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | ||
# This file is distributed under the same license as the fcitx5-quwei package. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: fcitx5-quwei\n" | ||
"Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" | ||
"POT-Creation-Date: 2021-11-16 10:07-0800\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"Language: LANG\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#. Translatable name of the input method | ||
#: build/src/quwei-addon.conf.in:3 src/quwei-addon.conf.in.in:3 | ||
#: src/quwei.conf.in:4 | ||
msgid "Quwei" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
# Make sure it produce quwei.so instead of libquwei.so | ||
add_library(quwei SHARED quwei.cpp) | ||
target_link_libraries(quwei PRIVATE Fcitx5::Core) | ||
set_target_properties(quwei PROPERTIES PREFIX "") | ||
install(TARGETS quwei DESTINATION "${FCITX_INSTALL_LIBDIR}/fcitx5") | ||
|
||
# Addon config file | ||
# We need additional layer of conversion because we want PROJECT_VERSION in it. | ||
configure_file(quwei-addon.conf.in quwei-addon.conf) | ||
configure_file(quwei-addon.conf.in.in quwei-addon.conf.in) | ||
fcitx5_translate_desktop_file("${CMAKE_CURRENT_BINARY_DIR}/quwei-addon.conf.in" quwei-addon.conf) | ||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/quwei-addon.conf" RENAME quwei.conf DESTINATION "${FCITX_INSTALL_PKGDATADIR}/addon") | ||
|
||
# Input Method registration file | ||
install(FILES "quwei.conf" DESTINATION "${FCITX_INSTALL_PKGDATADIR}/inputmethod") | ||
fcitx5_translate_desktop_file(quwei.conf.in quwei.conf) | ||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/quwei.conf" DESTINATION "${FCITX_INSTALL_PKGDATADIR}/inputmethod") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.