Changeset 175555 in webkit
- Timestamp:
- Nov 4, 2014, 11:05:42 AM (10 years ago)
- Location:
- trunk/Tools
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r175545 r175555 1 2014-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 1 20 2014-11-04 Dániel Bátyai <dbatyai.u-szeged@partner.samsung.com> 2 21 -
trunk/Tools/Scripts/webkitdirs.pm
r175469 r175555 1637 1637 pop(@jhbuildPath); 1638 1638 } 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 } 1640 1646 return File::Spec->catdir(@jhbuildPath); 1641 1647 } -
trunk/Tools/WebKitTestRunner/InjectedBundle/efl/FontManagement.cpp
r170230 r175555 103 103 CString customBuildDir = getCustomBuildDir(); 104 104 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); 106 106 if (!ecore_file_exists(fontsPath.data())) 107 107 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 69 69 { 70 70 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)); 72 72 if (g_file_test(fontsPath.get(), static_cast<GFileTest>(G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR))) 73 73 return fontsPath.get(); -
trunk/Tools/jhbuild/jhbuild-wrapper
r171552 r175555 27 27 jhbuild_revision = 'c0cb46177d79189ffe0f760703c732f1c7ea8b29' 28 28 29 def 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 36 try: 37 platform = determine_platform() 38 except ValueError as e: 39 sys.exit(e) 40 29 41 dependencies_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'))42 installation_prefix = os.path.abspath(os.path.join(dependencies_path + platform.upper(), 'Root')) 43 source_path = os.path.abspath(os.path.join(dependencies_path + platform.upper(), 'Source')) 32 44 jhbuild_source_path = os.path.join(source_path, 'jhbuild') 33 45 jhbuild_path = os.path.join(installation_prefix, 'bin', 'jhbuild') … … 93 105 raise Exception('jhbuild configure failed with return code: %i' % process.returncode) 94 106 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 104 107 def ensure_jhbuild(platform): 105 108 if not jhbuild_cloned(): … … 117 120 del os.environ['ACLOCAL_FLAGS'] 118 121 119 try:120 platform = determine_platform()121 except ValueError as e:122 sys.exit(e)123 122 ensure_jhbuild(platform) 124 123 -
trunk/Tools/jhbuild/jhbuildrc_common.py
r166061 r175555 55 55 56 56 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')) 59 59 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')) 62 62 63 63 jhbuildrc_globals["nonotify"] = True
Note:
See TracChangeset
for help on using the changeset viewer.