Changeset 166239 in webkit
- Timestamp:
- Mar 25, 2014 10:45:52 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 22 deleted
- 35 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/.gitignore
r163970 r166239 22 22 *~ 23 23 .*.sw[a-p] 24 25 # Though the GTK build builds in a subdirectory, autogen.sh still deposits26 # a few files into the source tree.27 /aclocal.m428 /autom4te.cache29 /Source/autotools/compile30 /Source/autotools/config.guess31 /Source/autotools/config.sub32 /Source/autotools/depcomp33 /Source/autotools/gtk-doc.m434 /Source/autotools/install-sh35 /Source/autotools/libtool.m436 /Source/autotools/ltmain.sh37 /Source/autotools/ltoptions.m438 /Source/autotools/ltsugar.m439 /Source/autotools/ltversion.m440 /Source/autotools/lt~obsolete.m441 /Source/autotools/missing42 /Source/WebCore/GNUmakefile.features.am43 /Source/WebKit/gtk/docs/GNUmakefile.in44 /Source/WebKit/gtk/po/*.pot45 /autotoolsconfig.h.in46 /configure47 /GNUmakefile.in48 /gtk-doc.make49 /INSTALL50 /README51 24 52 25 # Ignore files installed by WebKitSupportLibrary/WebKitAuxiliaryLibrary -
trunk/ChangeLog
r166232 r166239 1 2014-03-25 Martin Robinson <mrobinson@igalia.com> 2 3 [GTK] Remove the autotools build 4 https://bugs.webkit.org/show_bug.cgi?id=130717 5 6 Reviewed by Anders Carlsson. 7 8 * .gitignore: Remove references to autotools files. 9 * GNUmakefile.am: Removed. 10 * Source/autotools/CheckSystemAndBasicDependencies.m4: Removed. 11 * Source/autotools/CustomMacros.m4: Removed. 12 * Source/autotools/FindDependencies.m4: Removed. 13 * Source/autotools/PrintBuildConfiguration.m4: Removed. 14 * Source/autotools/ReadCommandLineArguments.m4: Removed. 15 * Source/autotools/SetupAutoconfHeader.m4: Removed. 16 * Source/autotools/SetupAutomake.m4: Removed. 17 * Source/autotools/SetupCompilerFlags.m4: Removed. 18 * Source/autotools/SetupLibtool.m4: Removed. 19 * Source/autotools/SetupWebKitFeatures.m4: Removed. 20 * Source/autotools/Versions.m4: Removed. 21 * Source/autotools/acinclude.m4: Removed. 22 * Source/autotools/dolt.m4: Removed. 23 * Source/autotools/gsettings.m4: Removed. 24 * Source/cmake/OptionsGTK.cmake: 25 * autogen.sh: Removed. 26 * configure.ac: Removed. 27 1 28 2014-03-25 Gabor Rapcsanyi <rgabor@webkit.org> 2 29 -
trunk/Source/JavaScriptCore/ChangeLog
r166218 r166239 1 2014-03-25 Martin Robinson <mrobinson@igalia.com> 2 3 [GTK] Remove the autotools build 4 https://bugs.webkit.org/show_bug.cgi?id=130717 5 6 Reviewed by Anders Carlsson. 7 8 * GNUmakefile.am: Removed. 9 * config.h: Remove references to the autotools configure file. 10 1 11 2014-03-24 Filip Pizlo <fpizlo@apple.com> 2 12 -
trunk/Source/JavaScriptCore/config.h
r156302 r166239 20 20 */ 21 21 22 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H 23 #ifdef BUILDING_WITH_CMAKE 22 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H && defined(BUILDING_WITH_CMAKE) 24 23 #include "cmakeconfig.h" 25 #else26 #include "autotoolsconfig.h"27 #endif28 24 #endif 29 25 -
trunk/Source/Platform/ChangeLog
r162427 r166239 1 2014-03-25 Martin Robinson <mrobinson@igalia.com> 2 3 [GTK] Remove the autotools build 4 https://bugs.webkit.org/show_bug.cgi?id=130717 5 6 Reviewed by Anders Carlsson. 7 8 * GNUmakefile.am: Removed. 9 1 10 2014-01-20 Ryuan Choi <ryuan.choi@samsung.com> 2 11 -
trunk/Source/ThirdParty/ANGLE/ChangeLog
r165677 r166239 1 2014-03-25 Martin Robinson <mrobinson@igalia.com> 2 3 [GTK] Remove the autotools build 4 https://bugs.webkit.org/show_bug.cgi?id=130717 5 6 Reviewed by Anders Carlsson. 7 8 * GNUmakefile.am: Removed. 9 1 10 2014-03-14 Mark Rowe <mrowe@apple.com> 2 11 -
trunk/Source/ThirdParty/ChangeLog
r166232 r166239 1 2014-03-25 Martin Robinson <mrobinson@igalia.com> 2 3 [GTK] Remove the autotools build 4 https://bugs.webkit.org/show_bug.cgi?id=130717 5 6 Reviewed by Anders Carlsson. 7 8 * gtest/GNUmakefile.am: Removed. 9 * leveldb/GNUmakefile.am: Removed. 10 1 11 2014-03-25 Gabor Rapcsanyi <rgabor@webkit.org> 2 12 -
trunk/Source/WTF/ChangeLog
r166234 r166239 1 2014-03-25 Martin Robinson <mrobinson@igalia.com> 2 3 [GTK] Remove the autotools build 4 https://bugs.webkit.org/show_bug.cgi?id=130717 5 6 Reviewed by Anders Carlsson. 7 8 * GNUmakefile.am: Removed. 9 * config.h: Removed references to the autotools configure file. 10 1 11 2014-03-25 Gabor Rapcsanyi <rgabor@webkit.org> 2 12 -
trunk/Source/WTF/config.h
r156302 r166239 20 20 */ 21 21 22 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H 23 #ifdef BUILDING_WITH_CMAKE 22 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H && defined(BUILDING_WITH_CMAKE) 24 23 #include "cmakeconfig.h" 25 #else26 #include "autotoolsconfig.h"27 #endif28 24 #endif 29 25 -
trunk/Source/WebCore/ChangeLog
r166238 r166239 1 2014-03-25 Martin Robinson <mrobinson@igalia.com> 2 3 [GTK] Remove the autotools build 4 https://bugs.webkit.org/show_bug.cgi?id=130717 5 6 Reviewed by Anders Carlsson. 7 8 * GNUmakefile.am: Removed. 9 * bindings/gobject/GNUmakefile.am: Removed. 10 * config.h: Removed references to autotools configure file. 11 1 12 2014-03-24 Brent Fulgham <bfulgham@apple.com> 2 13 -
trunk/Source/WebCore/config.h
r164358 r166239 20 20 */ 21 21 22 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H 23 #ifdef BUILDING_WITH_CMAKE 22 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H && defined(BUILDING_WITH_CMAKE) 24 23 #include "cmakeconfig.h" 25 #else26 #include "autotoolsconfig.h"27 #endif28 24 #endif 29 25 -
trunk/Source/WebCore/platform/gtk/po/ChangeLog
r165875 r166239 1 2014-03-25 Martin Robinson <mrobinson@igalia.com> 2 3 [GTK] Remove the autotools build 4 https://bugs.webkit.org/show_bug.cgi?id=130717 5 6 Reviewed by Anders Carlsson. 7 8 * GNUmakefile.am: Removed. 9 1 10 2014-03-19 Piotr Drąg <piotrdrag@gmail.com> 2 11 -
trunk/Source/WebInspectorUI/ChangeLog
r166190 r166239 1 2014-03-25 Martin Robinson <mrobinson@igalia.com> 2 3 [GTK] Remove the autotools build 4 https://bugs.webkit.org/show_bug.cgi?id=130717 5 6 Reviewed by Anders Carlsson. 7 8 * GNUmakefile.am: Removed. 9 1 10 2014-03-24 Timothy Hatcher <timothy@apple.com> 2 11 -
trunk/Source/WebKit/gtk/ChangeLog
r165810 r166239 1 2014-03-25 Martin Robinson <mrobinson@igalia.com> 2 3 [GTK] Remove the autotools build 4 https://bugs.webkit.org/show_bug.cgi?id=130717 5 6 Reviewed by Anders Carlsson. 7 8 * GNUmakefile.am: Removed. 9 1 10 2014-03-18 Jae Hyun Park <jaepark@webkit.org> 2 11 -
trunk/Source/WebKit2/ChangeLog
r166230 r166239 1 2014-03-25 Martin Robinson <mrobinson@igalia.com> 2 3 [GTK] Remove the autotools build 4 https://bugs.webkit.org/show_bug.cgi?id=130717 5 6 Reviewed by Anders Carlsson. 7 8 * GNUmakefile.am: Removed. 9 * WebKit2Prefix.h: Removed references to the autotools configure file. 10 * config.h: Ditto. 11 1 12 2014-03-25 Michał Pakuła vel Rutka <m.pakula@samsung.com> 2 13 -
trunk/Source/WebKit2/WebKit2Prefix.h
r164357 r166239 25 25 */ 26 26 27 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H 28 #ifdef BUILDING_WITH_CMAKE 27 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H && defined(BUILDING_WITH_CMAKE) 29 28 #include "cmakeconfig.h" 30 #else31 #include "autotoolsconfig.h"32 #endif33 29 #endif 34 30 -
trunk/Source/WebKit2/config.h
r164714 r166239 25 25 */ 26 26 27 #if defined( BUILDING_WITH_CMAKE)27 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H && defined(BUILDING_WITH_CMAKE) 28 28 #include "cmakeconfig.h" 29 #elif defined(BUILDING_GTK__)30 #include "autotoolsconfig.h"31 29 #endif 32 30 -
trunk/Tools/ChangeLog
r166235 r166239 1 2014-03-25 Martin Robinson <mrobinson@igalia.com> 2 3 [GTK] Remove the autotools build 4 https://bugs.webkit.org/show_bug.cgi?id=130717 5 6 Reviewed by Anders Carlsson. 7 8 * DumpRenderTree/config.h: Remove references to the autotools configure file. 9 * GNUmakefile.am: Removed. 10 * GtkLauncher/GNUmakefile.am: Removed. 11 * GtkLauncher/main.c: Remove references to the autotools configure file. 12 * MiniBrowser/gtk/BrowserDownloadsBar.c: Ditto. 13 * MiniBrowser/gtk/BrowserSearchBar.c: Ditto. 14 * MiniBrowser/gtk/BrowserWindow.c: Ditto. 15 * MiniBrowser/gtk/GNUmakefile.am: Removed. 16 * MiniBrowser/gtk/main.c: Remove references to the autotools configure file. 17 * Scripts/build-webkit: No longer handle autotools. 18 * Scripts/run-gtk-tests: Ditto. 19 (TestRunner._setup_testing_environment): 20 * Scripts/run-launcher: Ditto. 21 * Scripts/webkitdirs.pm: Ditto. 22 * Scripts/webkitpy/common/config/contributionareas.py: Remove autotools as a contribution area. 23 * Scripts/webkitpy/common/config/contributors.json: Ditto. 24 * Scripts/webkitpy/port/gtk.py: No longer handle autotools. 25 * Scripts/webkitpy/style/checker.py: 26 * TestWebKitAPI/GNUmakefile.am: Removed. 27 * TestWebKitAPI/config.h: Remove references to the autotools configure file. 28 * WebKitTestRunner/GNUmakefile.am: Removed. 29 * WebKitTestRunner/WebKitTestRunnerPrefix.h: Ditto. 30 * gtk/GNUmakefile.am: Removed. 31 * gtk/common.py: Remove checks for the autotools build. 32 * gtk/symbols.filter: Renamed from Source/autotools/symbols.filter. 33 1 34 2014-03-25 László Langó <llango.u-szeged@partner.samsung.com> 2 35 -
trunk/Tools/DumpRenderTree/config.h
r164270 r166239 21 21 #define Config_H 22 22 23 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H 24 #if defined(BUILDING_WITH_CMAKE) 23 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H && defined(BUILDING_WITH_CMAKE) 25 24 #include "cmakeconfig.h" 26 #else27 #include "autotoolsconfig.h"28 #endif29 25 #endif 30 26 -
trunk/Tools/GtkLauncher/main.c
r165676 r166239 26 26 */ 27 27 28 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H29 #ifdef BUILDING_WITH_CMAKE30 28 #include "cmakeconfig.h" 31 #else32 #include "autotoolsconfig.h"33 #endif34 #endif35 36 29 #include "LauncherInspectorWindow.h" 37 30 #include <errno.h> -
trunk/Tools/MiniBrowser/gtk/BrowserDownloadsBar.c
r165488 r166239 24 24 */ 25 25 26 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H27 #ifdef BUILDING_WITH_CMAKE28 26 #include "cmakeconfig.h" 29 #else30 #include "autotoolsconfig.h"31 #endif32 #endif33 27 #include "BrowserDownloadsBar.h" 34 28 -
trunk/Tools/MiniBrowser/gtk/BrowserSearchBar.c
r165488 r166239 24 24 */ 25 25 26 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H27 #ifdef BUILDING_WITH_CMAKE28 26 #include "cmakeconfig.h" 29 #else30 #include "autotoolsconfig.h"31 #endif32 #endif33 27 #include "BrowserSearchBar.h" 34 35 28 36 29 static const char *searchEntryFailedStyle = "GtkEntry#searchEntry {background-color: #ff6666;}"; -
trunk/Tools/MiniBrowser/gtk/BrowserWindow.c
r165697 r166239 26 26 */ 27 27 28 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H 29 #ifdef BUILDING_WITH_CMAKE 28 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H && defined(BUILDING_WITH_CMAKE) 30 29 #include "cmakeconfig.h" 31 #else32 #include "autotoolsconfig.h"33 #endif34 30 #endif 35 31 #include "BrowserWindow.h" -
trunk/Tools/MiniBrowser/gtk/main.c
r165735 r166239 26 26 */ 27 27 28 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H29 #ifdef BUILDING_WITH_CMAKE30 28 #include "cmakeconfig.h" 31 #else32 #include "autotoolsconfig.h"33 #endif34 #endif35 29 36 30 #include "BrowserWindow.h" -
trunk/Tools/Scripts/build-webkit
r166058 r166239 288 288 $result = 0; 289 289 290 # For Gtk the WebKit project builds all others291 if (isGtkAutotools() && $dir ne "Source/WebKit") {292 chdirWebKit();293 next;294 }295 296 290 my $project = basename($dir); 297 291 my $baseProductDir = baseProductDir(); 298 if (isGtkAutotools()) { 299 $result = buildGtkProject($project, $clean, $prefixPath, $makeArgs, $noWebKit1, $noWebKit2, @features); 300 } elsif (isAppleMacWebKit()) { 292 if (isAppleMacWebKit()) { 301 293 my @local_options = @options; 302 294 push @local_options, XcodeCoverageSupportOptions() if $coverageSupport; -
trunk/Tools/Scripts/run-gtk-tests
r164739 r166239 197 197 self._test_env['GSETTINGS_BACKEND'] = 'memory' 198 198 self._test_env["TEST_WEBKIT_API_WEBKIT2_RESOURCES_PATH"] = common.top_level_path("Tools", "TestWebKitAPI", "Tests", "WebKit2") 199 self._test_env["TEST_WEBKIT_API_WEBKIT2_INJECTED_BUNDLE_PATH"] = common. tests_library_build_path()199 self._test_env["TEST_WEBKIT_API_WEBKIT2_INJECTED_BUNDLE_PATH"] = common.library_build_path() 200 200 self._test_env["WEBKIT_EXEC_PATH"] = self._programs_path 201 201 -
trunk/Tools/Scripts/run-launcher
r165676 r166239 46 46 47 47 # Set paths according to the build system used 48 if (isGtk()) { 49 if (isGtkAutotools()) { 50 $launcherPath = catdir($productDir, "Programs"); 51 } else { 52 $launcherPath = catdir($productDir, "bin"); 53 } 54 55 if (isWK2()) { 56 $launcherPath = catdir($launcherPath, "MiniBrowser"); 57 } else { 58 $launcherPath = catdir($launcherPath, "GtkLauncher"); 59 } 60 } 61 62 if (isEfl()) { 48 if (isGtk() || isEfl()) { 63 49 if (isWK2()) { 64 50 $launcherPath = catdir($productDir, "bin", "MiniBrowser"); 65 } el se{51 } elif (isEfl()) { 66 52 $launcherPath = catdir($productDir, "bin", "EWebLauncher"); 53 } elif (isGtk()) { 54 $launcherPath = catdir($productDir, "bin", "GtkLauncher"); 67 55 } 68 56 } -
trunk/Tools/Scripts/webkitdirs.pm
r166232 r166239 93 93 my $osXVersion; 94 94 my $generateDsym; 95 my $isGtkAutotools; 96 my $isGtkCMake; 95 my $isGtk; 97 96 my $isWinCE; 98 97 my $isWinCairo; … … 288 287 determineXcodeSDK(); 289 288 290 if (isGtkAutotools()) { 291 determineConfigurationProductDir(); 292 my $host_triple = `grep -E '^host = ' $configurationProductDir/GNUmakefile 2> /dev/null`; 293 if ($host_triple =~ m/^host = ([^-]+)-/) { 294 # We have a configured build tree; use it. 295 $architecture = $1; 296 } 297 } elsif (isAppleMacWebKit()) { 289 if (isAppleMacWebKit()) { 298 290 if (open ARCHITECTURE, "$baseProductDir/Architecture") { 299 291 $architecture = <ARCHITECTURE>; … … 313 305 } 314 306 } 315 } elsif (isEfl() || isGtk CMake()) {307 } elsif (isEfl() || isGtk()) { 316 308 my $host_processor = ""; 317 309 $host_processor = `cmake --system-information | grep CMAKE_SYSTEM_PROCESSOR`; … … 386 378 push(@args, '--32-bit') if ($architecture ne "x86_64" and !isWin64()); 387 379 push(@args, '--64-bit') if (isWin64()); 388 push(@args, '--gtkautotools') if isGtkAutotools(); 389 push(@args, '--gtk') if isGtkCMake(); 380 push(@args, '--gtk') if isGtk(); 390 381 push(@args, '--efl') if isEfl(); 391 382 push(@args, '--wincairo') if isWinCairo(); … … 552 543 { 553 544 my $productDir = productDir(); 554 $productDir .= "/bin" if (isEfl() || isGtkCMake()); 555 $productDir .= "/Programs" if isGtkAutotools(); 545 $productDir .= "/bin" if (isEfl() || isGtk()); 556 546 557 547 return $productDir; … … 803 793 my @libraries = ("libwebkitgtk-1.0", "libwebkitgtk-3.0", "libwebkit2gtk-3.0"); 804 794 my $extension = isDarwin() ? ".dylib" : ".so"; 805 806 my $builtLibraryPath = "$configurationProductDir/.libs/"; 807 if (isGtkCMake()) { 808 $builtLibraryPath = "$configurationProductDir/lib/"; 809 } 795 my $builtLibraryPath = "$configurationProductDir/lib/"; 810 796 811 797 foreach $libraryName (@libraries) { … … 960 946 } 961 947 962 sub determineIsGtkCMake() 963 { 964 return if defined($isGtkCMake); 965 $isGtkCMake = checkForArgumentAndRemoveFromARGV("--gtk"); 966 } 967 968 sub isGtkCMake() 969 { 970 determineIsGtkCMake(); 971 return $isGtkCMake; 972 } 973 974 sub isGtkAutotools() 975 { 976 determineIsGtkAutotools(); 977 return $isGtkAutotools; 948 sub determineIsGtk() 949 { 950 return if defined($isGtk); 951 $isGtk = checkForArgumentAndRemoveFromARGV("--gtk"); 978 952 } 979 953 980 954 sub isGtk() 981 955 { 982 return isGtkCMake() || isGtkAutotools(); 983 } 984 985 sub determineIsGtkAutotools() 986 { 987 return if defined($isGtkAutotools); 988 $isGtkAutotools = checkForArgumentAndRemoveFromARGV("--gtkautotools"); 956 determineIsGtk(); 957 return $isGtk; 989 958 } 990 959 … … 1692 1661 } 1693 1662 1694 sub autotoolsFlag($$)1695 {1696 my ($flag, $feature) = @_;1697 my $prefix = $flag ? "--enable" : "--disable";1698 1699 return $prefix . '-' . $feature;1700 }1701 1702 sub runAutogenForAutotoolsProjectIfNecessary($@)1703 {1704 my ($dir, $prefix, $sourceDir, $project, $joinedOverridableFeatures, @buildArgs) = @_;1705 1706 # Always enable introspection when building WebKitGTK+.1707 unshift(@buildArgs, "--enable-introspection");1708 1709 # Also, always enable developer mode for developer/test builds.1710 unshift(@buildArgs, "--enable-developer-mode");1711 1712 # Optimize for running WebKit inside the build tree1713 unshift(@buildArgs, "--disable-fast-install");1714 1715 my $joinedBuildArgs = join(" ", @buildArgs);1716 1717 if (-e "GNUmakefile") {1718 # Just assume that build-jsc will never be used to reconfigure JSC. Later1719 # we can go back and make this more complicated if the demand is there.1720 if ($project ne "WebKit") {1721 return;1722 }1723 1724 # Run autogen.sh again if either the features overrided by build-webkit or build arguments have changed.1725 if (!isCachedArgumentfileOutOfDate("WebKitFeatureOverrides.txt", $joinedOverridableFeatures)1726 && !isCachedArgumentfileOutOfDate("previous-autogen-arguments.txt", $joinedBuildArgs)) {1727 return;1728 }1729 }1730 1731 print "Calling autogen.sh in " . $dir . "\n\n";1732 print "Installation prefix directory: $prefix\n" if(defined($prefix));1733 1734 # Only for WebKit, write the autogen.sh arguments to a file so that we can detect1735 # when they change and automatically re-run it.1736 if ($project eq 'WebKit') {1737 open(OVERRIDABLE_FEATURES, ">WebKitFeatureOverrides.txt");1738 print OVERRIDABLE_FEATURES $joinedOverridableFeatures;1739 close(OVERRIDABLE_FEATURES);1740 1741 open(AUTOTOOLS_ARGUMENTS, ">previous-autogen-arguments.txt");1742 print AUTOTOOLS_ARGUMENTS $joinedBuildArgs;1743 close(AUTOTOOLS_ARGUMENTS);1744 }1745 1746 # Make the path relative since it will appear in all -I compiler flags.1747 # Long argument lists cause bizarre slowdowns in libtool.1748 my $relSourceDir = File::Spec->abs2rel($sourceDir) || ".";1749 1750 # Compiler options to keep floating point values consistent1751 # between 32-bit and 64-bit architectures. The options are also1752 # used on Chromium build.1753 determineArchitecture();1754 if ($architecture ne "x86_64" && !isARM() && !isCrossCompilation()) {1755 $ENV{'CXXFLAGS'} = "-march=pentium4 -msse2 -mfpmath=sse " . ($ENV{'CXXFLAGS'} || "");1756 }1757 1758 # Prefix the command with jhbuild run.1759 unshift(@buildArgs, "$relSourceDir/autogen.sh");1760 unshift(@buildArgs, jhbuildWrapperPrefixIfNeeded());1761 if (system(@buildArgs) ne 0) {1762 die "Calling autogen.sh failed!\n";1763 }1764 }1765 1766 1663 sub getJhbuildPath() 1767 1664 { … … 1791 1688 print "New contents are: $currentContents\n"; 1792 1689 return 1; 1793 }1794 1795 return 0;1796 }1797 1798 sub buildAutotoolsProject($@)1799 {1800 my ($project, $clean, $prefix, $makeArgs, $noWebKit1, $noWebKit2, @features) = @_;1801 1802 my $make = $ENV{'MAKE'} //= 'make';1803 my $dir = productDir();1804 my $config = passedConfiguration() || configuration();1805 1806 # Use rm to clean the build directory since distclean may miss files1807 if ($clean && -d $dir) {1808 system "rm", "-rf", "$dir";1809 }1810 1811 if (! -d $dir) {1812 File::Path::mkpath($dir) or die "Failed to create build directory " . $dir1813 }1814 chdir $dir or die "Failed to cd into " . $dir . "\n";1815 1816 if ($clean) {1817 return 0;1818 }1819 1820 my @buildArgs = @ARGV;1821 if ($noWebKit1) {1822 unshift(@buildArgs, "--disable-webkit1");1823 }1824 if ($noWebKit2) {1825 unshift(@buildArgs, "--disable-webkit2");1826 }1827 1828 # Configurable features listed here should be kept in sync with the1829 # features for which there exists a configuration option in configure.ac.1830 my %configurableFeatures = (1831 "battery-status" => 1,1832 "gamepad" => 1,1833 "geolocation" => 1,1834 "svg" => 1,1835 "svg-fonts" => 1,1836 "video" => 1,1837 "webgl" => 1,1838 "web-audio" => 1,1839 );1840 1841 # These features are ones which build-webkit cannot control, typically because1842 # they can only be active when we have the proper dependencies.1843 my %unsetFeatures = (1844 "accelerated-2d-canvas" => 1,1845 );1846 1847 my @overridableFeatures = ();1848 foreach (@features) {1849 if ($configurableFeatures{$_->{option}}) {1850 push @buildArgs, autotoolsFlag(${$_->{value}}, $_->{option});;1851 } elsif (!$unsetFeatures{$_->{option}}) {1852 push @overridableFeatures, $_->{define} . "=" . (${$_->{value}} ? "1" : "0");1853 }1854 }1855 1856 $makeArgs = $makeArgs || "";1857 $makeArgs = $makeArgs . " " . $ENV{"WebKitMakeArguments"} if $ENV{"WebKitMakeArguments"};1858 1859 # Automatically determine the number of CPUs for make only1860 # if make arguments haven't already been specified.1861 if ($makeArgs eq "") {1862 $makeArgs = "-j" . numberOfCPUs();1863 }1864 1865 # WebKit is the default target, so we don't need to specify anything.1866 if ($project eq "JavaScriptCore") {1867 $makeArgs .= " jsc";1868 } elsif ($project eq "WTF") {1869 $makeArgs .= " libWTF.la";1870 }1871 1872 $prefix = $ENV{"WebKitInstallationPrefix"} if !defined($prefix);1873 push @buildArgs, "--prefix=" . $prefix if defined($prefix);1874 1875 # Check if configuration is Debug.1876 my $debug = $config =~ m/debug/i;1877 if ($debug) {1878 push @buildArgs, "--enable-debug";1879 } else {1880 push @buildArgs, "--disable-debug";1881 }1882 1883 if (checkForArgumentAndRemoveFromArrayRef("--update-gtk", \@buildArgs)) {1884 # Force autogen to run, to catch the possibly updated libraries.1885 system("rm -f previous-autogen-arguments.txt");1886 1887 system("perl", "$sourceDir/Tools/Scripts/update-webkitgtk-libs") == 0 or die $!;1888 }1889 1890 # If GNUmakefile exists, don't run autogen.sh unless its arguments1891 # have changed. The makefile should be smart enough to track autotools1892 # dependencies and re-run autogen.sh when build files change.1893 my $joinedOverridableFeatures = join(" ", @overridableFeatures);1894 runAutogenForAutotoolsProjectIfNecessary($dir, $prefix, $sourceDir, $project, $joinedOverridableFeatures, @buildArgs);1895 1896 my $runWithJhbuild = join(" ", jhbuildWrapperPrefixIfNeeded());1897 if (system("$runWithJhbuild $make $makeArgs") ne 0) {1898 die "\nFailed to build WebKit using '$make'!\n";1899 }1900 1901 chdir ".." or die;1902 1903 if (!checkForArgumentAndRemoveFromARGV("--disable-gtk-doc")) {1904 if ($project eq 'WebKit' && !isCrossCompilation() && !($noWebKit1 && $noWebKit2)) {1905 my @docGenerationOptions = ("$sourceDir/Tools/gtk/generate-gtkdoc", "--skip-html");1906 unshift(@docGenerationOptions, jhbuildWrapperPrefixIfNeeded());1907 1908 if (system(@docGenerationOptions)) {1909 die "\n gtkdoc did not build without warnings\n";1910 }1911 }1912 1690 } 1913 1691 … … 2129 1907 return "Efl" if isEfl(); 2130 1908 return "WinCE" if isWinCE(); 2131 return "GTK" if isGtk CMake();1909 return "GTK" if isGtk(); 2132 1910 return ""; 2133 1911 } … … 2135 1913 sub isCMakeBuild() 2136 1914 { 2137 return isEfl() || isWinCE() || isGtk CMake();1915 return isEfl() || isWinCE() || isGtk(); 2138 1916 } 2139 1917 … … 2145 1923 chomp(my $input = <STDIN>); 2146 1924 return $input ? $input : $default; 2147 }2148 2149 sub buildGtkProject2150 {2151 my ($project, $clean, $prefix, $makeArgs, $noWebKit1, $noWebKit2, @features) = @_;2152 2153 if ($project ne "WebKit" and $project ne "JavaScriptCore" and $project ne "WTF") {2154 die "Unsupported project: $project. Supported projects: WebKit, JavaScriptCore, WTF\n";2155 }2156 2157 return buildAutotoolsProject($project, $clean, $prefix, $makeArgs, $noWebKit1, $noWebKit2, @features);2158 1925 } 2159 1926 … … 2341 2108 if (isAppleMacWebKit()) { 2342 2109 return runMacWebKitApp(File::Spec->catfile(productDir(), "WebKitTestRunner")); 2343 } elsif (isGtk()) {2344 my $productDir = productDir();2345 my $injectedBundlePath = "$productDir/Libraries/.libs/libTestRunnerInjectedBundle";2346 print "Starting WebKitTestRunner with TEST_RUNNER_INJECTED_BUNDLE_FILENAME set to point to $injectedBundlePath.\n";2347 $ENV{TEST_RUNNER_INJECTED_BUNDLE_FILENAME} = $injectedBundlePath;2348 my @args = ("$productDir/Programs/WebKitTestRunner", @ARGV);2349 return system {$args[0] } @args;2350 2110 } 2351 2111 -
trunk/Tools/Scripts/webkitpy/common/config/contributionareas.py
r149347 r166239 73 73 _Area('Animation', ['animation', 'animator']), 74 74 _Area('Apple\'s Windows port', ['win', 'windows']), # FIXME: need to exclude chromium... 75 _Area('Autotools Build', ['autotools']),76 75 _Area('Basic types and data structures (WTF)', ['wtf']), 77 76 # FIXME: 'Bidirectional text' -
trunk/Tools/Scripts/webkitpy/common/config/contributors.json
r165868 r166239 3871 3871 "jmalonzo@webkit.org" 3872 3872 ], 3873 "expertise" : "The WebKitGtk Port , Autotools Build",3873 "expertise" : "The WebKitGtk Port", 3874 3874 "nicks" : [ 3875 3875 "janm" -
trunk/Tools/Scripts/webkitpy/port/gtk.py
r165284 r166239 54 54 raise ValueError('use --wrapper=\"valgrind\" for memory leak detection on GTK') 55 55 56 def _is_cmake_build(self):57 # Look for the autotools config.log file, which means that we58 # assume a CMake build (--gtk) when lacking evidence of either.59 return not os.path.exists(self._build_path('config.log'))60 61 56 def _built_executables_path(self, *path): 62 if self._is_cmake_build(): 63 return self._build_path(*(('bin',) + path)) 64 else: 65 return self._build_path(*(('Programs',) + path)) 57 return self._build_path(*(('bin',) + path)) 66 58 67 59 def _built_libraries_path(self, *path): 68 if self._is_cmake_build(): 69 return self._build_path(*(('lib',) + path)) 70 else: 71 return self._build_path(*(('.libs',) + path)) 60 return self._build_path(*(('lib',) + path)) 72 61 73 62 def warn_if_bug_missing_in_test_expectations(self): … … 75 64 76 65 def _port_flag_for_scripts(self): 77 if self._is_cmake_build(): 78 return "--gtk" 79 else: 80 return "--gtkautotools" 66 return "--gtk" 81 67 82 68 @memoized … … 115 101 environment['GSETTINGS_BACKEND'] = 'memory' 116 102 environment['LIBOVERLAY_SCROLLBAR'] = '0' 117 if self._is_cmake_build(): 118 environment['TEST_RUNNER_INJECTED_BUNDLE_FILENAME'] = self._build_path('lib', 'libTestRunnerInjectedBundle.so') 119 environment['TEST_RUNNER_TEST_PLUGIN_PATH'] = self._build_path('lib') 120 else: 121 environment['TEST_RUNNER_INJECTED_BUNDLE_FILENAME'] = self._build_path('Libraries', 'libTestRunnerInjectedBundle.la') 122 environment['TEST_RUNNER_TEST_PLUGIN_PATH'] = self._build_path('TestNetscapePlugin', '.libs') 103 environment['TEST_RUNNER_INJECTED_BUNDLE_FILENAME'] = self._build_path('lib', 'libTestRunnerInjectedBundle.so') 104 environment['TEST_RUNNER_TEST_PLUGIN_PATH'] = self._build_path('lib') 123 105 environment['AUDIO_RESOURCES_PATH'] = self.path_from_webkit_base('Source', 'WebCore', 'platform', 'audio', 'resources') 124 106 self._copy_value_from_environ_if_set(environment, 'WEBKIT_OUTPUTDIR') … … 217 199 def build_webkit_command(self, build_style=None): 218 200 command = super(GtkPort, self).build_webkit_command(build_style) 219 if self._is_cmake_build(): 220 command.extend(["--gtk", "--update-gtk"]) 221 else: 222 command.extend(["--gtkautotools", "--update-gtk"]) 201 command.extend(["--gtk", "--update-gtk"]) 223 202 224 203 if self.get_option('webkit_test_runner'): -
trunk/Tools/Scripts/webkitpy/style/checker.py
r164360 r166239 147 147 ["-readability/naming"]), 148 148 149 ([# The GTK+ port uses the autotoolsconfig.h header in some C sources 150 # to serve the same purpose of config.h. 149 ([# The GTK+ port uses the cmakeconfig.h header directly in some C sources. 151 150 "Tools/GtkLauncher/main.c"], 152 151 ["-build/include_order"]), -
trunk/Tools/TestWebKitAPI/config.h
r164295 r166239 24 24 */ 25 25 26 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H 27 #ifdef BUILDING_WITH_CMAKE 26 #if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H && defined(BUILDING_WITH_CMAKE) 28 27 #include "cmakeconfig.h" 29 #else30 #include "autotoolsconfig.h"31 #endif32 28 #endif 33 29 -
trunk/Tools/WebKitTestRunner/WebKitTestRunnerPrefix.h
r162729 r166239 28 28 #endif 29 29 30 #if defined(BUILDING_GTK__)31 #include "autotoolsconfig.h"32 #endif /* defined (BUILDING_GTK__) */33 34 30 #include <wtf/Platform.h> 35 31 #include <WebKit2/WebKit2_C.h> -
trunk/Tools/gtk/common.py
r165328 r166239 26 26 library_build_dir = None 27 27 tests_library_build_dir = None 28 is_cmake = None29 28 build_types = ('Release', 'Debug') 30 29 … … 42 41 43 42 44 def is_cmake_build():45 global is_cmake46 if is_cmake is None:47 is_cmake = not os.path.exists(build_path('config.log'))48 return is_cmake49 50 51 43 def library_build_path(*args): 52 44 global library_build_dir 53 45 if not library_build_dir: 54 if is_cmake_build(): 55 library_build_dir = build_path('lib', *args) 56 else: 57 library_build_dir = build_path('.libs', *args) 46 library_build_dir = build_path('lib', *args) 58 47 return library_build_dir 59 60 61 def tests_library_build_path(*args):62 if is_cmake_build():63 return library_build_path(*args)64 65 global tests_library_build_dir66 if not tests_library_build_dir:67 tests_library_build_dir = build_path('Libraries', *args)68 return tests_library_build_dir69 48 70 49 … … 72 51 global library_build_dir 73 52 if not library_build_dir: 74 if is_cmake_build(): 75 library_build_dir = build_path('bin', *args) 76 else: 77 library_build_dir = build_path('Programs', *args) 53 library_build_dir = build_path('bin', *args) 78 54 return library_build_dir 79 55 … … 85 61 86 62 def is_valid_build_directory(path): 87 return os.path.exists(os.path.join(path, 'GNUmakefile')) or \ 88 os.path.exists(os.path.join(path, 'Programs', 'GtkLauncher')) or \ 89 os.path.exists(os.path.join(path, 'Programs', 'MiniBrowser')) or \ 90 os.path.exists(os.path.join(path, 'CMakeCache.txt')) or \ 63 return os.path.exists(os.path.join(path, 'CMakeCache.txt')) or \ 91 64 os.path.exists(os.path.join(path, 'bin/GtkLauncher')) or \ 92 65 os.path.exists(os.path.join(path, 'bin/MiniBrowser'))
Note: See TracChangeset
for help on using the changeset viewer.