Skip to content

Add libthai and libiconv rules #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: |
pacman -Syu --needed --noconfirm \
git unzip ghc cabal-install haskell-shake haskell-aeson-pretty \
cmake extra-cmake-modules ninja fmt fcitx5 boost python opencc jre-openjdk
cmake extra-cmake-modules ninja fmt fcitx5 boost python opencc jre-openjdk gperf

- name: Fetch source code
uses: actions/checkout@v4
Expand Down
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,9 @@
[submodule "librime-predict"]
path = librime-predict
url = https://github.com/rime/librime-predict
[submodule "libthai"]
path = libthai
url = https://github.com/tlwg/libthai
[submodule "libiconv"]
path = libiconv
url = https://git.savannah.gnu.org/git/libiconv
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ Cabal is required to build this project.
* librime-octagram: [rime/librime-octagram](https://github.com/lotem/librime-octagram)
* libhangul: [libhangul/libhangul](https://github.com/libhangul/libhangul)
* libchewing: [chewing/libchewing](https://github.com/chewing/libchewing)
* libthai: [tlwg/libthai](https://github.com/tlwg/libthai)
* libiconv: [GNU/libiconv](https://savannah.gnu.org/projects/libiconv)
1 change: 1 addition & 0 deletions libiconv
Submodule libiconv added at 4b9c27
1 change: 1 addition & 0 deletions libthai
Submodule libthai added at 618e44
15 changes: 15 additions & 0 deletions patches/libiconv/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
cmake_minimum_required(VERSION 3.22.1)
project(libiconv)

set(LIBICONV_HEADER
"include/iconv.h"
)
set(LIBICONV_SOURCE
lib/iconv.c
libcharset/lib/localcharset.c
)

add_library(iconv STATIC ${LIBICONV_SOURCE})
target_include_directories(iconv PRIVATE include libcharset/include)
install(TARGETS iconv)
install(FILES ${LIBICONV_HEADER} DESTINATION include)
Loading