| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 '$LIBXML_DIR/build/libxml_config.vcproj', | 120 '$LIBXML_DIR/build/libxml_config.vcproj', |
| 121 ], | 121 ], |
| 122 guid='{F9810DE8-CBC3-4605-A7B1-ECA2D5292FD7}') | 122 guid='{F9810DE8-CBC3-4605-A7B1-ECA2D5292FD7}') |
| 123 | 123 |
| 124 env.ChromeMSVSProject('$LIBXML_DIR/build/libxml_config.vcproj', | 124 env.ChromeMSVSProject('$LIBXML_DIR/build/libxml_config.vcproj', |
| 125 guid='{31D88CBF-DC28-47A8-8838-BF81D528EE74}') | 125 guid='{31D88CBF-DC28-47A8-8838-BF81D528EE74}') |
| 126 | 126 |
| 127 | 127 |
| 128 if env.Bit('windows'): | 128 if env.Bit('windows'): |
| 129 config_files = [ | 129 config_files = [ |
| 130 # The configure.js script must be first in this list; the | 130 'config.h', |
| 131 # env.Command() call below executes the first list element. | 131 'include/libxml/xmlversion.h', |
| 132 | |
| 133 'win32/configure.js', | |
| 134 'win32/Makefile.msvc', | |
| 135 | |
| 136 'config.h.in', | |
| 137 'configure.in', | |
| 138 'libxml-2.0-uninstalled.pc.in', | |
| 139 'libxml-2.0.pc.in', | |
| 140 'libxml.spec.in', | |
| 141 'xml2-config.in', | |
| 142 'xml2Conf.sh.in', | |
| 143 | |
| 144 'include/libxml/xmlversion.h.in', | |
| 145 'include/win32config.h', | |
| 146 ] | 132 ] |
| 147 | |
| 148 copied_files = [] | |
| 149 for cf in config_files: | 133 for cf in config_files: |
| 150 result = env.Command('DerivedSources/' + cf, cf, Copy('$TARGET', '$SOURCE')) | 134 result = env.Command('DerivedSources/' + cf, 'win32/' + cf, |
| 151 copied_files.extend(result) | 135 Copy('$TARGET', '$SOURCE')) |
| 152 | |
| 153 env.Command(['DerivedSources/config.h', | |
| 154 'DerivedSources/include/libxml/xmlversion.h'], | |
| 155 copied_files, | |
| 156 'cd ${SOURCE.dir} && $CSCRIPT ${SOURCE.file} $CONFIG_OPTIONS', | |
| 157 CONFIG_OPTIONS='compiler=msvc iconv=no icu=yes') | |
| 158 elif env.Bit('linux'): | 136 elif env.Bit('linux'): |
| 159 config_files = [ | 137 config_files = [ |
| 160 'config.h', | 138 'config.h', |
| 161 'include/libxml/xmlversion.h', | 139 'include/libxml/xmlversion.h', |
| 162 'xml2-config', | 140 'xml2-config', |
| 163 ] | 141 ] |
| 164 for cf in config_files: | 142 for cf in config_files: |
| 165 result = env.Command('DerivedSources/' + cf, 'linux/' + cf, | 143 result = env.Command('DerivedSources/' + cf, 'linux/' + cf, |
| 166 Copy('$TARGET', '$SOURCE')) | 144 Copy('$TARGET', '$SOURCE')) |
| OLD | NEW |