Changeset 152226 in webkit


Ignore:
Timestamp:
Jul 1, 2013 9:25:21 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL][GTK] Migrate from WEBKITOUTPUTDIR to WEBKIT_OUTPUTDIR
https://bugs.webkit.org/show_bug.cgi?id=117249

Patch by Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> on 2013-07-01
Reviewed by Brent Fulgham.

Finish converting all use cases of WEBKITOUTPUTDIR to
WEBKIT_OUTPUTDIR, which seems to be preferred these days.

  • DumpRenderTree/efl/FontManagement.cpp:

(getCustomBuildDir):
(getPlatformFontsPath):

  • DumpRenderTree/gtk/DumpRenderTree.cpp:

(getOutputDir):

  • Scripts/webkitdirs.pm:

(determineBaseProductDir):
(usesPerConfigurationBuildDirectory):

  • Scripts/webkitpy/port/base.py:

(Port.to.setup_environ_for_server):

  • Scripts/webkitpy/port/driver.py:

(Driver._setup_environ_for_driver):

  • Scripts/webkitpy/port/gtk.py:

(GtkPort.setup_environ_for_server):

  • WebKitTestRunner/InjectedBundle/gtk/ActivateFontsGtk.cpp:

(WTR::getOutputDir):

  • jhbuild/jhbuildutils.py:

(get_dependencies_path):

Location:
trunk/Tools
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r152224 r152226  
     12013-07-01  Raphael Kubo da Costa  <raphael.kubo.da.costa@intel.com>
     2
     3        [EFL][GTK] Migrate from WEBKITOUTPUTDIR to WEBKIT_OUTPUTDIR
     4        https://bugs.webkit.org/show_bug.cgi?id=117249
     5
     6        Reviewed by Brent Fulgham.
     7
     8        Finish converting all use cases of WEBKITOUTPUTDIR to
     9        WEBKIT_OUTPUTDIR, which seems to be preferred these days.
     10
     11        * DumpRenderTree/efl/FontManagement.cpp:
     12        (getCustomBuildDir):
     13        (getPlatformFontsPath):
     14        * DumpRenderTree/gtk/DumpRenderTree.cpp:
     15        (getOutputDir):
     16        * Scripts/webkitdirs.pm:
     17        (determineBaseProductDir):
     18        (usesPerConfigurationBuildDirectory):
     19        * Scripts/webkitpy/port/base.py:
     20        (Port.to.setup_environ_for_server):
     21        * Scripts/webkitpy/port/driver.py:
     22        (Driver._setup_environ_for_driver):
     23        * Scripts/webkitpy/port/gtk.py:
     24        (GtkPort.setup_environ_for_server):
     25        * WebKitTestRunner/InjectedBundle/gtk/ActivateFontsGtk.cpp:
     26        (WTR::getOutputDir):
     27        * jhbuild/jhbuildutils.py:
     28        (get_dependencies_path):
     29
    1302013-07-01  Rafael Brandao  <rafael.lobo@webkit.org>
    231
  • trunk/Tools/DumpRenderTree/efl/FontManagement.cpp

    r128292 r152226  
    9090static CString getCustomBuildDir()
    9191{
    92     if (const char* userChosenBuildDir = getenv("WEBKITOUTPUTDIR")) {
     92    if (const char* userChosenBuildDir = getenv("WEBKIT_OUTPUTDIR")) {
    9393        if (ecore_file_is_dir(userChosenBuildDir))
    9494            return userChosenBuildDir;
    95         fprintf(stderr, "WEBKITOUTPUTDIR set to '%s', but path doesn't exist.\n", userChosenBuildDir);
     95        fprintf(stderr, "WEBKIT_OUTPUTDIR set to '%s', but path doesn't exist.\n", userChosenBuildDir);
    9696    }
    9797
     
    105105        CString fontsPath = buildPath(customBuildDir.data(), "Dependencies", "Root", "webkitgtk-test-fonts", 0);
    106106        if (!ecore_file_exists(fontsPath.data()))
    107             fprintf(stderr, "WEBKITOUTPUTDIR set to '%s', but could not local test fonts.\n", customBuildDir.data());
     107            fprintf(stderr, "WEBKIT_OUTPUTDIR set to '%s', but could not local test fonts.\n", customBuildDir.data());
    108108        return fontsPath;
    109109    }
     
    113113        return fontsPath;
    114114
    115     fprintf(stderr, "Could not locate tests fonts, try setting WEBKITOUTPUTDIR.\n");
     115    fprintf(stderr, "Could not locate tests fonts, try setting WEBKIT_OUTPUTDIR.\n");
    116116    return CString();
    117117}
  • trunk/Tools/DumpRenderTree/gtk/DumpRenderTree.cpp

    r150275 r152226  
    197197CString getOutputDir()
    198198{
    199     const char* webkitOutputDir = g_getenv("WEBKITOUTPUTDIR");
     199    const char* webkitOutputDir = g_getenv("WEBKIT_OUTPUTDIR");
    200200    if (webkitOutputDir)
    201201        return webkitOutputDir;
  • trunk/Tools/Scripts/webkitdirs.pm

    r152191 r152226  
    184184
    185185    my $setSharedPrecompsDir;
    186 
    187     # FIXME: See https://bugs.webkit.org/show_bug.cgi?id=117249.
    188     #        Once all ports have migrated to WEBKIT_OUTPUTDIR, we can stop
    189     #        reading the WEBKITOUTPUTDIR environment variable.
    190186    $baseProductDir = $ENV{"WEBKIT_OUTPUTDIR"};
    191     $baseProductDir = $ENV{"WEBKITOUTPUTDIR"} if not $baseProductDir;
    192187
    193188    if (!defined($baseProductDir) and isAppleMacWebKit()) {
     
    466461    # [Gtk] We don't have Release/Debug configurations in straight
    467462    # autotool builds (non build-webkit). In this case and if
    468     # WEBKITOUTPUTDIR exist, use that as our configuration dir. This will
     463    # WEBKIT_OUTPUTDIR exist, use that as our configuration dir. This will
    469464    # allows us to run run-webkit-tests without using build-webkit.
    470     return ($ENV{"WEBKITOUTPUTDIR"} && isGtk()) || isAppleWinWebKit();
     465    return ($ENV{"WEBKIT_OUTPUTDIR"} && isGtk()) || isAppleWinWebKit();
    471466}
    472467
  • trunk/Tools/Scripts/webkitpy/port/base.py

    r152133 r152226  
    897897            # Most ports (?):
    898898            'WEBKIT_TESTFONTS',
    899             'WEBKITOUTPUTDIR',
     899            'WEBKIT_OUTPUTDIR',
    900900
    901901            # Chromium:
  • trunk/Tools/Scripts/webkitpy/port/driver.py

    r150677 r152226  
    290290        environment['DUMPRENDERTREE_TEMP'] = str(self._driver_tempdir)
    291291        environment['LOCAL_RESOURCE_ROOT'] = self._port.layout_tests_dir()
    292         if 'WEBKITOUTPUTDIR' in os.environ:
    293             environment['WEBKITOUTPUTDIR'] = os.environ['WEBKITOUTPUTDIR']
     292        if 'WEBKIT_OUTPUTDIR' in os.environ:
     293            environment['WEBKIT_OUTPUTDIR'] = os.environ['WEBKIT_OUTPUTDIR']
    294294        if self._profiler:
    295295            environment = self._profiler.adjusted_environment(environment)
  • trunk/Tools/Scripts/webkitpy/port/gtk.py

    r148502 r152226  
    7474        environment['WEBKIT_INSPECTOR_PATH'] = self._build_path('Programs', 'resources', 'inspector')
    7575        environment['AUDIO_RESOURCES_PATH'] = self.path_from_webkit_base('Source', 'WebCore', 'platform', 'audio', 'resources')
    76         self._copy_value_from_environ_if_set(environment, 'WEBKITOUTPUTDIR')
     76        self._copy_value_from_environ_if_set(environment, 'WEBKIT_OUTPUTDIR')
    7777        return environment
    7878
  • trunk/Tools/WebKitTestRunner/InjectedBundle/gtk/ActivateFontsGtk.cpp

    r143463 r152226  
    5757CString getOutputDir()
    5858{
    59     const char* webkitOutputDir = g_getenv("WEBKITOUTPUTDIR");
     59    const char* webkitOutputDir = g_getenv("WEBKIT_OUTPUTDIR");
    6060    if (webkitOutputDir)
    6161        return webkitOutputDir;
  • trunk/Tools/jhbuild/jhbuildutils.py

    r124307 r152226  
    1515
    1616def get_dependencies_path():
    17     if 'WEBKITOUTPUTDIR' in os.environ:
    18         return os.path.abspath(os.path.join(os.environ['WEBKITOUTPUTDIR'], 'Dependencies'))
     17    if 'WEBKIT_OUTPUTDIR' in os.environ:
     18        return os.path.abspath(os.path.join(os.environ['WEBKIT_OUTPUTDIR'], 'Dependencies'))
    1919    else:
    2020        return os.path.abspath(top_level_path('WebKitBuild', 'Dependencies'))
Note: See TracChangeset for help on using the changeset viewer.