Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: third_party/libxml/libxml.scons

Issue 18243: Remove the build time generation of config.h and xmlversion.h. (Closed)
Patch Set: add sln files Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/libxml/build/using_libxml.vsprops ('k') | third_party/libxml/win32/config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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'))
OLDNEW
« no previous file with comments | « third_party/libxml/build/using_libxml.vsprops ('k') | third_party/libxml/win32/config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698