Changeset 34767 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jun 24, 2008, 7:33:32 AM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r34762 r34767 1 2008-06-24 Joerg Bornemann <[email protected]> 2 3 Reviewed by Simon. 4 5 For the Qt build on Windows don't depend on the presence of GNU CPP 6 but use MSVC's preprocessor instead. 7 dftables accepts a --preprocessor option which is set in pcre.pri for MSVC platforms. 8 9 * pcre/dftables: Added support for specifying the preprocessor command 10 to use via --preprocessor, similar to 11 WebCore/bindings/scripts/generate-bindings.pl. 12 * pcre/pcre.pri: Pass --preprocessor='cl /e' to dftables, or more 13 generally speaking QMAKE_CC /E for the win32-msvc buildspecs. 14 1 15 2008-06-24 Simon Hausmann <[email protected]> 2 16 -
trunk/JavaScriptCore/pcre/dftables
r31030 r34767 48 48 use File::Spec; 49 49 use File::Temp; 50 use Getopt::Long; 50 51 51 52 sub readHeaderValues(); … … 53 54 my %pcre_internal; 54 55 55 if (scalar(@ARGV) !=1) {56 print STDERR "Usage: ", basename($0), " output-file\n";56 if (scalar(@ARGV) < 1) { 57 print STDERR "Usage: ", basename($0), " [--preprocessor=program] output-file\n"; 57 58 exit 1; 58 59 } 59 60 60 my $outputFile = shift @ARGV; 61 my $outputFile; 62 my $preprocessor; 63 GetOptions('preprocessor=s' => \$preprocessor); 64 if (not $preprocessor) { 65 $preprocessor = "cpp"; 66 } 67 68 $outputFile = $ARGV[0]; 69 die('Must specify output file.') unless defined($outputFile); 61 70 62 71 readHeaderValues(); … … 233 242 234 243 my $headerPath = File::Spec->catfile(dirname($0), "pcre_internal.h"); 235 244 236 245 my $fh = new File::Temp( 237 246 DIR => ($ENV{'TMPDIR'} || "/tmp"), … … 256 265 close($fh); 257 266 258 open(CPP, " cpp\"$tempFile\" |") or die "$!";267 open(CPP, "$preprocessor \"$tempFile\" |") or die "$!"; 259 268 my $content = <CPP>; 260 269 close(CPP); 261 270 262 271 eval $content; 263 272 die "$@" if $@; -
trunk/JavaScriptCore/pcre/pcre.pri
r29402 r34767 24 24 25 25 # GENERATOR: "chartables.c": compile and execute the chartables generator (and add it to sources) 26 win32-msvc*|wince*: PREPROCESSOR = "--preprocessor=\"$$QMAKE_CC /E\"" 26 27 DFTABLES = $$PWD/dftables 27 28 ctgen.input = DFTABLES 28 29 ctgen.output = $$GENERATED_SOURCES_DIR/chartables.c 29 ctgen.commands = perl $$DFTABLES ${QMAKE_FILE_OUT} 30 ctgen.commands = perl $$DFTABLES ${QMAKE_FILE_OUT} $$PREPROCESSOR 30 31 ctgen.CONFIG += target_predeps no_link 31 32 ctgen.variable_out = GENERATED_SOURCES
Note:
See TracChangeset
for help on using the changeset viewer.