Browse files

simple build script for windows; haven't gotten py extension compiled…

… yet but .\example runs
  • Loading branch information...
1 parent b922ff5 commit 6a0ccbdf5c4d5205ec7dbc4aa9aed8ac18c8ec03 Michael McCandless committed Oct 22, 2011
Showing with 28 additions and 0 deletions.
  1. +28 −0 build.win.cmd
View
28 build.win.cmd
@@ -0,0 +1,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!"

0 comments on commit 6a0ccbd

Please sign in to comment.