Changeset 175555 in webkit


Ignore:
Timestamp:
Nov 4, 2014, 11:05:42 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

[jhbuild] Make it possible to build GTK/EFL in same repository
https://bugs.webkit.org/show_bug.cgi?id=137448

Patch by Tibor Meszaros <tmeszaros.u-szeged@partner.samsung.com> on 2014-11-04
Reviewed by Martin Robinson.

  • Scripts/webkitdirs.pm:

(getJhbuildPath):

  • WebKitTestRunner/InjectedBundle/efl/FontManagement.cpp:

(getPlatformFontsPath):

  • WebKitTestRunner/InjectedBundle/gtk/ActivateFontsGtk.cpp:

(WTR::getFontsPath):

  • jhbuild/jhbuild-wrapper:

(determine_platform):
(install_jhbuild):

  • jhbuild/jhbuildrc_common.py:

(init):

Location:
trunk/Tools
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r175545 r175555  
     12014-11-04  Tibor Meszaros  <tmeszaros.u-szeged@partner.samsung.com>
     2
     3        [jhbuild] Make it possible to build GTK/EFL in same repository
     4        https://bugs.webkit.org/show_bug.cgi?id=137448
     5
     6        Reviewed by Martin Robinson.
     7
     8        * Scripts/webkitdirs.pm:
     9        (getJhbuildPath):
     10        * WebKitTestRunner/InjectedBundle/efl/FontManagement.cpp:
     11        (getPlatformFontsPath):
     12        * WebKitTestRunner/InjectedBundle/gtk/ActivateFontsGtk.cpp:
     13        (WTR::getFontsPath):
     14        * jhbuild/jhbuild-wrapper:
     15        (determine_platform):
     16        (install_jhbuild):
     17        * jhbuild/jhbuildrc_common.py:
     18        (init):
     19
    1202014-11-04  Dániel Bátyai  <dbatyai.u-szeged@partner.samsung.com>
    221
  • trunk/Tools/Scripts/webkitdirs.pm

    r175469 r175555  
    16371637        pop(@jhbuildPath);
    16381638    }
    1639     push(@jhbuildPath, "Dependencies");
     1639    if (isEfl()) {
     1640        push(@jhbuildPath, "DependenciesEFL");
     1641    } elsif (isGtk()) {
     1642        push(@jhbuildPath, "DependenciesGTK");
     1643    } else {
     1644        die "Cannot get JHBuild path for platform that isn't GTK+ or EFL.\n";
     1645    }
    16401646    return File::Spec->catdir(@jhbuildPath);
    16411647}
  • trunk/Tools/WebKitTestRunner/InjectedBundle/efl/FontManagement.cpp

    r170230 r175555  
    103103    CString customBuildDir = getCustomBuildDir();
    104104    if (!customBuildDir.isNull()) {
    105         CString fontsPath = buildPath(customBuildDir.data(), "Dependencies", "Root", "webkitgtk-test-fonts", 0);
     105        CString fontsPath = buildPath(customBuildDir.data(), "DependenciesEFL", "Root", "webkitgtk-test-fonts", 0);
    106106        if (!ecore_file_exists(fontsPath.data()))
    107107            fprintf(stderr, "WEBKIT_OUTPUTDIR set to '%s', but could not local test fonts.\n", customBuildDir.data());
  • trunk/Tools/WebKitTestRunner/InjectedBundle/gtk/ActivateFontsGtk.cpp

    r165676 r175555  
    6969{
    7070    CString webkitOutputDir = getOutputDir();
    71     GUniquePtr<char> fontsPath(g_build_filename(webkitOutputDir.data(), "Dependencies", "Root", "webkitgtk-test-fonts", nullptr));
     71    GUniquePtr<char> fontsPath(g_build_filename(webkitOutputDir.data(), "DependenciesGTK", "Root", "webkitgtk-test-fonts", nullptr));
    7272    if (g_file_test(fontsPath.get(), static_cast<GFileTest>(G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR)))
    7373        return fontsPath.get();
  • trunk/Tools/jhbuild/jhbuild-wrapper

    r171552 r175555  
    2727jhbuild_revision = 'c0cb46177d79189ffe0f760703c732f1c7ea8b29'
    2828
     29def determine_platform():
     30    if '--efl' in sys.argv:
     31        return "efl";
     32    if '--gtk' in sys.argv:
     33        return "gtk";
     34    raise ValueError('No platform specified for jhbuild-wrapper.')
     35
     36try:
     37    platform = determine_platform()
     38except ValueError as e:
     39    sys.exit(e)
     40
    2941dependencies_path = jhbuildutils.get_dependencies_path()
    30 installation_prefix = os.path.abspath(os.path.join(dependencies_path, 'Root'))
    31 source_path = os.path.abspath(os.path.join(dependencies_path, 'Source'))
     42installation_prefix = os.path.abspath(os.path.join(dependencies_path + platform.upper(), 'Root'))
     43source_path = os.path.abspath(os.path.join(dependencies_path + platform.upper(), 'Source'))
    3244jhbuild_source_path = os.path.join(source_path, 'jhbuild')
    3345jhbuild_path = os.path.join(installation_prefix, 'bin', 'jhbuild')
     
    93105        raise Exception('jhbuild configure failed with return code: %i' % process.returncode)
    94106
    95 
    96 def determine_platform():
    97     if '--efl' in sys.argv:
    98         return "efl";
    99     if '--gtk' in sys.argv:
    100         return "gtk";
    101     raise ValueError('No platform specified for jhbuild-wrapper.')
    102 
    103 
    104107def ensure_jhbuild(platform):
    105108    if not jhbuild_cloned():
     
    117120    del os.environ['ACLOCAL_FLAGS']
    118121
    119 try:
    120     platform = determine_platform()
    121 except ValueError as e:
    122     sys.exit(e)
    123122ensure_jhbuild(platform)
    124123
  • trunk/Tools/jhbuild/jhbuildrc_common.py

    r166061 r175555  
    5555
    5656    if 'WEBKIT_OUTPUTDIR' in os.environ:
    57         jhbuildrc_globals["checkoutroot"] = checkoutroot = os.path.abspath(os.path.join(os.environ['WEBKIT_OUTPUTDIR'], 'Dependencies', 'Source'))
    58         jhbuildrc_globals["prefix"] = os.path.abspath(os.path.join(os.environ['WEBKIT_OUTPUTDIR'], 'Dependencies', 'Root'))
     57        jhbuildrc_globals["checkoutroot"] = checkoutroot = os.path.abspath(os.path.join(os.environ['WEBKIT_OUTPUTDIR'], 'Dependencies' + platform.upper(), 'Source'))
     58        jhbuildrc_globals["prefix"] = os.path.abspath(os.path.join(os.environ['WEBKIT_OUTPUTDIR'], 'Dependencies' + platform.upper(), 'Root'))
    5959    else:
    60         jhbuildrc_globals["checkoutroot"] = checkoutroot = os.path.abspath(top_level_path('WebKitBuild', 'Dependencies', 'Source'))
    61         jhbuildrc_globals["prefix"] = os.path.abspath(top_level_path('WebKitBuild', 'Dependencies', 'Root'))
     60        jhbuildrc_globals["checkoutroot"] = checkoutroot = os.path.abspath(top_level_path('WebKitBuild', 'Dependencies' + platform.upper(), 'Source'))
     61        jhbuildrc_globals["prefix"] = os.path.abspath(top_level_path('WebKitBuild', 'Dependencies' + platform.upper(), 'Root'))
    6262
    6363    jhbuildrc_globals["nonotify"] = True
Note: See TracChangeset for help on using the changeset viewer.