OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / lib / boost / patches / boost_1_39_0-optional-wchar.patch
1 --- a/libs/filesystem/build/Jamfile.v2
2 +++ b/libs/filesystem/build/Jamfile.v2
3 @@ -16,7 +16,11 @@ project boost/filesystem
4      ;
5  
6  SOURCES =
7 -    operations path portability utf8_codecvt_facet ;
8 +    operations path portability ;
9 +if ! [ modules.peek : NO_WCHAR ]
10 +{
11 +    SOURCES += utf8_codecvt_facet ;
12 +}
13  
14  lib boost_filesystem
15      :
16 @@ -29,4 +33,4 @@ lib boost_filesystem
17      :
18      ;
19  
20 -boost-install boost_filesystem ;
21 \ No newline at end of file
22 +boost-install boost_filesystem ;
23 --- a/libs/program_options/build/Jamfile.v2
24 +++ b/libs/program_options/build/Jamfile.v2
25 @@ -6,9 +6,12 @@ project boost/program_options
26  
27  SOURCES =
28      cmdline config_file options_description parsers variables_map 
29 -    value_semantic positional_options utf8_codecvt_facet
30 -    convert winmain
31 +    value_semantic positional_options winmain
32      ;
33 +if ! [ modules.peek : NO_WCHAR ]
34 +{
35 +    SOURCES += utf8_codecvt_facet convert ;
36 +}
37  
38  lib boost_program_options
39      :
40 @@ -17,4 +20,4 @@ lib boost_program_options
41      <link>shared:<define>BOOST_PROGRAM_OPTIONS_DYN_LINK=1 # tell source we're building dll's
42      ;
43  
44 -boost-install boost_program_options ;
45 \ No newline at end of file
46 +boost-install boost_program_options ;
47 --- a/libs/serialization/build/Jamfile.v2
48 +++ b/libs/serialization/build/Jamfile.v2
49 @@ -100,6 +100,10 @@ lib boost_serialization
50      <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1
51      ;
52  
53 +boost-install boost_serialization ;
54 +
55 +if ! [ modules.peek : NO_WCHAR ]
56 +{
57  lib boost_wserialization 
58      : $(WSOURCES).cpp boost_serialization 
59      :     
60 @@ -107,4 +111,5 @@ lib boost_wserialization
61      <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1
62      ;
63  
64 -boost-install boost_serialization boost_wserialization ;
65 +boost-install boost_wserialization ;
66 +}