# Copyright (C) 2005, 2006, 2007 Apple Inc. All rights reserved.
# Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
# Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com)
+# Copyright (C) 2007 Eric Seidel <eric@webkit.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
chdirWebKit();
if(!defined($root)){
- my $buildResult;
- if (isCygwin()) {
- $buildResult = buildVisualStudioProject("WebKitTools/DumpRenderTree/DumpRenderTree.sln");
- } else {
- # Push the parameters to build-dumprendertree as an array
- my @args;
- push(@args, $configuration);
-
- if (isQt()) {
- push(@args, "--qt");
- } elsif (isGtk()) {
- push(@args, "--gtk");
- }
-
- $buildResult = system "WebKitTools/Scripts/build-dumprendertree", @args;
- }
+ # Push the parameters to build-dumprendertree as an array
+ my @args;
+ push(@args, "--" . $configuration);
+ push(@args, "--qt") if isQt();
+ push(@args, "--gtk") if isGtk();
+ my $buildResult = system "WebKitTools/Scripts/build-dumprendertree", @args;
if ($buildResult) {
print STDERR "Compiling DumpRenderTree failed!\n";
exit WEXITSTATUS($buildResult);