Skip to content

Commit

Permalink
Add libthai and libiconv rules (#15)
Browse files Browse the repository at this point in the history
Co-authored-by: Rocka <i@rocka.me>
  • Loading branch information
eagleoflqj and rocka authored Jul 28, 2024
1 parent 774dae3 commit 4750ae9
Show file tree
Hide file tree
Showing 13 changed files with 1,970 additions and 1 deletion.
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

0 comments on commit 4750ae9

Please sign in to comment.