-
Notifications
You must be signed in to change notification settings - Fork 0
/
boost-1.48.0-locale.patch
61 lines (58 loc) · 2.2 KB
/
boost-1.48.0-locale.patch
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
diff -up boost_1_48_0/libs/locale/src/CMakeLists.txt\~ boost_1_48_0/libs/locale/src/CMakeLists.txt
--- boost_1_48_0/libs/locale/src/CMakeLists.txt~ 2012-06-07 00:46:43.651884964 +0200
+++ boost_1_48_0/libs/locale/src/CMakeLists.txt 2012-06-21 19:01:16.321372875 +0200
@@ -10,6 +10,10 @@ if (ICU_FOUND AND ICU_I18N_FOUND)
set (BOOST_LOCALE_ICU_LIBRARIES ${ICU_LIBRARIES} ${ICU_I18N_LIBRARIES})
colormsg (GREEN "+-- ICU (unicode) available for locale, enabling support.")
- set (NO_STATIC_IF_ICU_FOUND "NO_STATIC")
+ set (NO_STATIC_IF_ICU_FOUND NO_STATIC NO_SINGLE_THREADED)
+ set (ICU_SOURCES icu/boundary.cpp icu/codecvt.cpp icu/collator.cpp
+ icu/conversion.cpp icu/date_time.cpp icu/formatter.cpp
+ icu/icu_backend.cpp icu/numeric.cpp icu/time_zone.cpp )
+ set (ICU_DEPENDS boost_thread)
else (ICU_FOUND AND ICU_I18N_FOUND)
colormsg (CYAN "+-- ICU (unicode) not available for locale, disabling support.")
endif (ICU_FOUND AND ICU_I18N_FOUND)
@@ -17,8 +17,9 @@ 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)
+ win32/numeric.cpp win32/win_backend.cpp )
+else (WIN32)
+ add_definitions (-DBOOST_LOCALE_NO_WINAPI_BACKEND=1)
endif (WIN32)
add_definitions (-DBOOST_THREAD_NO_LIB=1)
@@ -33,12 +34,29 @@ 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
- util/locale_data.cpp
+ util/locale_data.cpp
+ util/gregorian.cpp
+
+ std/codecvt.cpp
+ std/collate.cpp
+ std/converter.cpp
+ std/numeric.cpp
+ std/std_backend.cpp
+
+ posix/codecvt.cpp
+ posix/collate.cpp
+ posix/converter.cpp
+ posix/numeric.cpp
+ posix/posix_backend.cpp
+
+ ${WIN32_SOURCES}
+ ${ICU_SOURCES}
+ DEPENDS ${ICU_DEPENDS}
LINK_LIBS ${BOOST_LOCALE_ICU_LIBRARIES}
SHARED_COMPILE_FLAGS -DBOOST_LOCALE_DYN_LINK=1
${NO_STATIC_IF_ICU_FOUND}
Diff finished. Thu Jun 21 19:05:54 2012