Skip to content

Commit

Permalink
Remove cld2 sources and libraries from repository
Browse files Browse the repository at this point in the history
  • Loading branch information
DeinAlptraum committed Jun 20, 2024
1 parent bc84c7d commit af395b9
Show file tree
Hide file tree
Showing 95 changed files with 9 additions and 905,268 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@ jobs:
copy build/taglib/Release/tag.lib ../lib/win64
- name: Install cld2
run: |
git clone https://github.com/CLD2Owners/cld2.git
cd cld2/internal
cd include/cld2/internal
cl /TP /GR /EHsc /c /MD cldutil.cc cldutil_shared.cc compact_lang_det.cc compact_lang_det_hint_code.cc compact_lang_det_impl.cc debug.cc fixunicodevalue.cc generated_entities.cc generated_language.cc generated_ulscript.cc getonescriptspan.cc lang_script.cc offsetmap.cc scoreonescriptspan.cc tote.cc utf8statetable.cc cld_generated_cjk_uni_prop_80.cc cld2_generated_cjk_compatible.cc cld_generated_cjk_delta_bi_32.cc generated_distinct_bi_0.cc cld2_generated_quad0122.cc cld2_generated_deltaocta0122.cc cld2_generated_distinctocta0122.cc cld_generated_score_quad_octa_0122.cc
link /dll /out:cld2.dll *.obj
lib /out:cld2.lib *.obj
copy .\cld2.lib ..\..\lib\win64
copy .\cld2.dll ..\..\lib\win64
copy .\cld2.lib ..\..\..\lib\win64
copy .\cld2.dll ..\..\..\lib\win64
- name: Build
run: |
cd src
Expand Down Expand Up @@ -87,16 +86,15 @@ jobs:
brew install qt
- name: Install cld2
run: |
git clone https://github.com/CLD2Owners/cld2.git
cd cld2/internal/
cd include/cld2/internal/
export CFLAGS="-Wno-narrowing -O3"
sed -i '' "s/soname=/install_name,/g" compile_libs.sh
sed -i '' "s/-shared/-dynamiclib/g" compile_libs.sh
sed -i '' "s/libcld2.so/libcld2.dylib/g" compile_libs.sh
sed -i '' "s/libcld2_full.so/libcld2_full.dylib/g" compile_libs.sh
cat compile_libs.sh
./compile_libs.sh
cp libcld2.dylib ../../lib/macx
cp libcld2.dylib ../../../lib/macx
- name: Fix Qt lib rpaths # see: https://github.com/orgs/Homebrew/discussions/2823#discussioncomment-2010340)
run: |
install_name_tool -id '@rpath/QtCore.framework/Versions/A/QtCore' $(brew --prefix)/lib/QtCore.framework/Versions/A/QtCore
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "include/cld2"]
path = include/cld2
url = https://github.com/CLD2Owners/cld2.git
1 change: 1 addition & 0 deletions include/cld2
Submodule cld2 added at b56fa7
277 changes: 0 additions & 277 deletions include/cld2/internal/cld2_do_score.cc

This file was deleted.

37 changes: 0 additions & 37 deletions include/cld2/internal/cld2_dynamic_compat.h

This file was deleted.

Loading

0 comments on commit af395b9

Please sign in to comment.