OLD | NEW |
1 # Copyright 2008, Google Inc. | 1 # Copyright 2008, Google Inc. |
2 # All rights reserved. | 2 # All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 Import('env') | 30 Import('env') |
31 | 31 |
32 env = env.Clone() | 32 env = env.Clone() |
33 | 33 |
34 env.Prepend( | 34 env.Prepend( |
35 CPPPATH = [ | 35 CPPPATH = [ |
36 '$ICU38_DIR/public/common', | 36 '$ICU38_DIR/public/common', |
37 '$ICU38_DIR/public/18n', | 37 '$ICU38_DIR/public/18n', |
38 '$ZLIB_DIR', | 38 '$ZLIB_DIR', |
39 'scons', | 39 'DerivedSources', |
40 'scons/include', | 40 'DerivedSources/include', |
41 'include', | 41 'include', |
42 ], | 42 ], |
43 ) | 43 ) |
44 | 44 |
45 env.Append( | 45 env.Append( |
46 CPPDEFINES = [ | 46 CPPDEFINES = [ |
47 'U_STATIC_IMPLEMENTATION', | 47 'U_STATIC_IMPLEMENTATION', |
48 'LIBXML_STATIC', | 48 'LIBXML_STATIC', |
49 ], | 49 ], |
50 ) | 50 ) |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 'libxml.spec.in', | 131 'libxml.spec.in', |
132 'xml2-config.in', | 132 'xml2-config.in', |
133 'xml2Conf.sh.in', | 133 'xml2Conf.sh.in', |
134 | 134 |
135 'include/libxml/xmlversion.h.in', | 135 'include/libxml/xmlversion.h.in', |
136 'include/win32config.h', | 136 'include/win32config.h', |
137 ] | 137 ] |
138 | 138 |
139 copied_files = [] | 139 copied_files = [] |
140 for cf in config_files: | 140 for cf in config_files: |
141 result = env.Command('scons/' + cf, cf, Copy('$TARGET', '$SOURCE')) | 141 result = env.Command('DerivedSources/' + cf, cf, Copy('$TARGET', '$SOURCE')) |
142 copied_files.extend(result) | 142 copied_files.extend(result) |
143 | 143 |
144 env.Command(['scons/config.h', 'scons/include/libxml/xmlversion.h'], | 144 env.Command(['DerivedSources/config.h', |
| 145 'DerivedSources/include/libxml/xmlversion.h'], |
145 copied_files, | 146 copied_files, |
146 'cd ${SOURCE.dir} && $CSCRIPT ${SOURCE.file} $CONFIG_OPTIONS', | 147 'cd ${SOURCE.dir} && $CSCRIPT ${SOURCE.file} $CONFIG_OPTIONS', |
147 CONFIG_OPTIONS='compiler=msvc iconv=no icu=yes') | 148 CONFIG_OPTIONS='compiler=msvc iconv=no icu=yes') |
148 elif env['PLATFORM'] == 'posix': | 149 elif env['PLATFORM'] == 'posix': |
149 config_files = [ | 150 config_files = [ |
150 'config.h', | 151 'config.h', |
151 'include/libxml/xmlversion.h', | 152 'include/libxml/xmlversion.h', |
152 'xml2-config', | 153 'xml2-config', |
153 ] | 154 ] |
154 for cf in config_files: | 155 for cf in config_files: |
155 result = env.Command('scons/' + cf, 'linux/' + cf, | 156 result = env.Command('DerivedSources/' + cf, 'linux/' + cf, |
156 Copy('$TARGET', '$SOURCE')) | 157 Copy('$TARGET', '$SOURCE')) |
OLD | NEW |