This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.win.cmd
28 lines (20 loc) · 1.49 KB
/
build.win.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
REM "c:\Program Files\Microsoft Visual Studio 8\vc\vcvarsall.bat"
set CFLAGS=/nologo /I. /O2 /DCLD_WINDOWS /DWIN32 /EHsc
set LDFLAGS=-L.
set CC=cl.exe
set AR=lib.exe
del *.obj
del libcld.lib
set 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
REM encodings/compact_lang_det/win/cld_unicodetext.cc \
echo ""
echo "Compile..."
%CC% /c %CFLAGS% %SOURCES%
echo ""
echo "Make libcld"
%AR% *.obj -OUT:libcld.lib
echo ""
echo "Compile example.cc"
%CC% %CFLAGS% %LFLAGS% example.cc libcld.lib
echo
echo "Done!"