JavaScriptCore:
[WebKit-https.git] / WebKitTools / Scripts / build-webkit
index 9d6f933c10cf0cff169aebc7c4c32293dbbf8701..62f114d190bcd8e70b185e1ec3cb9eff58b7db84 100755 (executable)
@@ -58,6 +58,7 @@ my $wmlSupport = 0;
 my $coverageSupport = 0;
 my $videoSupport = isAppleWebKit(); # Enable by default for Apple's builds
 my $workersSupport = (isAppleWebKit() || isGtk()); # Enable by default for Apple's builds (mac/win) and Gtk+
+my $geolocationSupport = (isAppleMacWebKit() && !isTiger() && !isLeopard());
 my $showHelp = 0;
 my $clean = 0;
 my $buildUniversal = 0;
@@ -93,6 +94,7 @@ Usage: $programName [options] [options to pass to build system]
   --[no-]wml                    Toggle WML support (default: $wmlSupport)
   --[no-]video                  Toggle Video support (default: $videoSupport)
   --[no-]workers                Toggle Web Workers support (default: $workersSupport)
+  --[no-]geolocation            Toggle Geolocation support (default: $geolocationSupport)
   --[no-]coverage               Toggle code coverage support (default: $coverageSupport)
 EOF
 
@@ -116,6 +118,7 @@ GetOptions(
            'wml!' => \$wmlSupport,
            'video!' => \$videoSupport,
            'workers!' => \$workersSupport,
+           'geolocation!' => \$geolocationSupport,
            'coverage!' => \$coverageSupport,
            'help' => \$showHelp,
            'universal' => \$buildUniversal,
@@ -165,6 +168,7 @@ push @overrideFeatureDefinesOption, "ENABLE_WORKERS" if $workersSupport;
 push @overrideFeatureDefinesOption, "ENABLE_XPATH" if $xpathSupport;
 push @overrideFeatureDefinesOption, "ENABLE_XSLT" if $xsltSupport;
 push @overrideFeatureDefinesOption, "ENABLE_WML" if $wmlSupport;
+push @overrideFeatureDefinesOption, "ENABLE_GEOLOCATION" if $geolocationSupport;
 my $overrideFeatureDefinesString = "FEATURE_DEFINES=" . join(" ", @overrideFeatureDefinesOption);
 
 my @coverageSupportOption = ($coverageSupport) ? XcodeCoverageSupportOptions() : ();