+2012-01-26 Gabor Rapcsanyi <rgabor@webkit.org>
+
+ [GTK] Detect cross-compilation in webkitdirs.pm to not generate gtkdoc
+ https://bugs.webkit.org/show_bug.cgi?id=76138
+
+ Reviewed by Martin Robinson.
+
+ * Scripts/webkitdirs.pm:
+ (isCrossCompilation):
+ (buildAutotoolsProject):
+
2012-01-25 Adam Barth <abarth@webkit.org>
Kentaro is a reviewer now. Yay!
return $Config{archname} =~ /^arm-/;
}
+sub isCrossCompilation()
+{
+ my $compiler = $ENV{'CC'};
+ if ($compiler =~ /gcc/) {
+ my $compiler_options = `$compiler -v 2>&1`;
+ my @host = $compiler_options =~ m/--host=(.*?)\s/;
+ my @target = $compiler_options =~ m/--target=(.*?)\s/;
+
+ return ($host[0] ne "" && $target[0] ne "" && $host[0] ne $target[0]);
+ }
+ return 0;
+}
+
sub isAppleWebKit()
{
return !(isQt() or isGtk() or isWx() or isChromium() or isEfl() or isWinCE() or isBlackBerry());
chdir ".." or die;
- if ($project eq 'WebKit') {
+ if ($project eq 'WebKit' && !isCrossCompilation()) {
my @docGenerationOptions = ($runWithJhbuild, "$gtkScriptsPath/generate-gtkdoc", "--skip-html");
if ($debug) {
push(@docGenerationOptions, "--debug");