Permalink
Browse files

[Build] Added source files for mingw cross-compilation.

  • Loading branch information...
1 parent 85d2ab0 commit 0583ecbef992da515fba96c92ddff47b27cb7b5e @denisarnaud denisarnaud committed Jan 14, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 libs/locale/src/CMakeLists.txt
@@ -14,6 +14,12 @@ else (ICU_FOUND AND ICU_I18N_FOUND)
colormsg (CYAN "+-- ICU (unicode) not available for locale, disabling support.")
endif (ICU_FOUND AND ICU_I18N_FOUND)
+if (WIN32)
+ add_definitions (-DBOOST_LOCALE_NO_POSIX_BACKEND=1)
+ set (WIN32_SOURCES win32/collate.cpp win32/converter.cpp win32/lcid.cpp
+ win32/numeric.cpp win32/win_backend.cpp std/codecvt.cpp std/collate.cpp
+ std/converter.cpp std/numeric.cpp std/std_backend.cpp util/gregorian.cpp)
+endif (WIN32)
add_definitions (-DBOOST_THREAD_NO_LIB=1)
boost_add_library (
@@ -27,6 +33,7 @@ boost_add_library (
shared/localization_backend.cpp
shared/message.cpp
shared/mo_lambda.cpp
+ ${WIN32_SOURCES}
util/codecvt_converter.cpp
util/default_locale.cpp
util/info.cpp
@@ -35,4 +42,5 @@ boost_add_library (
LINK_LIBS ${BOOST_LOCALE_ICU_LIBRARIES}
SHARED_COMPILE_FLAGS -DBOOST_LOCALE_DYN_LINK=1
${NO_STATIC_IF_ICU_FOUND}
- )
+)
+

0 comments on commit 0583ecb

Please sign in to comment.