Sha256: 2d27df12af4c25c64e5c64c1e8ac630151f561f4be5bb5a8858e9645d999e02e

Contents?: true

Size: 1.61 KB

Versions: 2

Compression:

Stored size: 1.61 KB

Contents

#!/bin/bash

CFLAGS="-fPIC -I. -O2 -DCLD_WINDOWS"
LDFLAGS=-L.
CC=g++
AR=ar

rm -f *.o
rm -f libcld.a

SOURCES="encodings/compact_lang_det/cldutil.cc \
        encodings/compact_lang_det/cldutil_dbg_empty.cc \
        encodings/compact_lang_det/compact_lang_det.cc \
        encodings/compact_lang_det/compact_lang_det_impl.cc \
        encodings/compact_lang_det/ext_lang_enc.cc \
        encodings/compact_lang_det/getonescriptspan.cc \
        encodings/compact_lang_det/letterscript_enum.cc \
        encodings/compact_lang_det/tote.cc \
        encodings/compact_lang_det/generated/cld_generated_score_quadchrome_0406.cc \
        encodings/compact_lang_det/generated/compact_lang_det_generated_cjkbis_0.cc \
        encodings/compact_lang_det/generated/compact_lang_det_generated_ctjkvz.cc \
        encodings/compact_lang_det/generated/compact_lang_det_generated_deltaoctachrome.cc \
        encodings/compact_lang_det/generated/compact_lang_det_generated_quadschrome.cc \
        encodings/compact_lang_det/win/cld_htmlutils_windows.cc \
        encodings/compact_lang_det/win/cld_unilib_windows.cc \
        encodings/compact_lang_det/win/cld_utf8statetable.cc \
        encodings/compact_lang_det/win/cld_utf8utils_windows.cc \
        encodings/internal/encodings.cc \
        languages/internal/languages.cc \
        thunk.cc"

        #encodings/compact_lang_det/win/cld_unicodetext.cc \

echo
echo "Compile..."
$CC -c $CFLAGS $SOURCES

echo
echo "Make libcld.a"
$AR rcs libcld.a *.o

echo
#$CC -DCLD_WINDOWS -I. -L. -o example example.cc -lcld -lstdc++
$CC -DCLD_WINDOWS -I. -L. -shared -o cld.so -lstdc++ *.o


echo
echo "Done!"

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
krukid-cld-0.4.0 build.sh
cld-0.4.0 build.sh