Changeset 51788 in webkit


Ignore:
Timestamp:
Dec 7, 2009 12:17:20 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-07 Yaar Schnitman <yaar@chromium.org>

Reviewed by Darin Fisher.

fixes to build-webkit --chromium
https://bugs.webkit.org/show_bug.cgi?id=32179

  • DEPS:
  • WebKit.gyp:
  • gyp_webkit:

2009-12-07 Yaar Schnitman <yaar@chromium.org>

Reviewed by Darin Fisher.

fixes to build-webkit --chromium
https://bugs.webkit.org/show_bug.cgi?id=32179

  • Scripts/webkitdirs.pm:
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/chromium/ChangeLog

    r51766 r51788  
     12009-12-07  Yaar Schnitman  <yaar@chromium.org>
     2
     3        Reviewed by Darin Fisher.
     4
     5        fixes to build-webkit --chromium
     6        https://bugs.webkit.org/show_bug.cgi?id=32179
     7
     8        * DEPS:
     9        * WebKit.gyp:
     10        * gyp_webkit:
     11
    1122009-12-07  Mikhail Naganov  <mnaganov@chromium.org>
    213
  • trunk/WebKit/chromium/DEPS

    r51623 r51788  
    144144      Var('chromium_deps_svn')+'/pthreads-win32@'+Var('pthreads-win32_rev'),
    145145  },
     146  'unix': {
     147    # Linux, actually.
     148    'third_party/harfbuzz':
     149      Var('chromium_svn')+'/third_party/harfbuzz@'+Var('chromium_rev'),
     150
     151    'tools/xdisplaycheck':
     152      Var('chromium_svn')+'/tools/xdisplaycheck@'+Var('chromium_rev'),
     153  },
    146154}
    147155
  • trunk/WebKit/chromium/WebKit.gyp

    r51720 r51788  
    4141                # e.g. via build-webkit --chromium
    4242                'chromium_src_dir': '.',
     43                # FIXME: To enable shared_library in linux all code (including
     44                # dependencies) must be complied with -fPIC flag. That is
     45                # pending on changes in gyp.
    4346                'webkit_target_type': 'shared_library',
    4447            },{
     
    5154            ['OS=="mac"', {
    5255                'chromium_code': 1,
     56            }],
     57            # FIXME: To enable shared_library in linux all code (including
     58            # dependencies) must be complied with -fPIC flag. That is
     59            # pending on changes in gyp.
     60            ['OS=="linux" or OS=="freebsd"', {
     61              'webkit_target_type': 'static_library',
    5362            }],
    5463        ],
  • trunk/WebKit/chromium/gyp_webkit

    r49032 r51788  
    3333import glob
    3434import os
     35import platform
    3536import shlex
    3637import sys
     
    7778  args.extend(['-I' + i for i in additional_include_files(args)])
    7879
     80  # On linux, we want gyp to output a makefile (default is scons).
     81  if (platform.system() == 'Linux'):
     82    args.extend(['-fmake'])
     83
    7984  # Other command args:
    8085  args.extend([
     
    8893
    8994               # gyp file to execute.
    90                'webkit.gyp'])
     95               'WebKit.gyp'])
    9196
    9297  print 'Updating webkit projects from gyp files...'
  • trunk/WebKitTools/ChangeLog

    r51787 r51788  
     12009-12-07  Yaar Schnitman  <yaar@chromium.org>
     2
     3        Reviewed by Darin Fisher.
     4
     5        fixes to build-webkit --chromium
     6        https://bugs.webkit.org/show_bug.cgi?id=32179
     7
     8        * Scripts/webkitdirs.pm:
     9
    1102009-12-07  Eric Seidel  <eric@webkit.org>
    211
  • trunk/WebKitTools/Scripts/webkitdirs.pm

    r51585 r51788  
    11321132
    11331133    my $useenv = "/useenv";
    1134     if (isChromium()) {
    1135         $useenv = "";
    1136     }
    11371134
    11381135    my @command = ($vcBuildPath, $useenv, $winProjectPath, $action, $config);
     
    14061403}
    14071404
     1405sub buildChromiumMakefile($$$)
     1406{
     1407    my ($dir, $target, $clean) = @_;
     1408    chdir $dir;
     1409    if ($clean) {
     1410        return system qw(rm -rf out);
     1411    }
     1412    my $config = configuration();
     1413    my @command = ("make", "-j4", "BUILDTYPE=$config", $target);
     1414    print join(" ", @command) . "\n";
     1415    return system @command;
     1416}
     1417
     1418sub buildChromiumVisualStudioProject($$)
     1419{
     1420    my ($projectPath, $clean) = @_;
     1421
     1422    my $config = configuration();
     1423    my $action = "/build";
     1424    $action = "/clean" if $clean;
     1425
     1426    # Find Visual Studio installation.
     1427    my $vsInstallDir;
     1428    my $programFilesPath = $ENV{'PROGRAMFILES'} || "C:\\Program Files";
     1429    if ($ENV{'VSINSTALLDIR'}) {
     1430        $vsInstallDir = $ENV{'VSINSTALLDIR'};
     1431    } else {
     1432        $vsInstallDir = "$programFilesPath/Microsoft Visual Studio 8";
     1433    }
     1434    $vsInstallDir = `cygpath "$vsInstallDir"` if isCygwin();
     1435    chomp $vsInstallDir;
     1436    $vcBuildPath = "$vsInstallDir/Common7/IDE/devenv.com";
     1437
     1438    # Create command line and execute it.
     1439    my @command = ($vcBuildPath, $projectPath, $action, $config);
     1440    print "Building results into: ", baseProductDir(), "\n";
     1441    print join(" ", @command), "\n";
     1442    return system @command;
     1443}
     1444
    14081445sub buildChromium($@)
    14091446{
     
    14131450    if (isDarwin()) {
    14141451        # Mac build - builds the root xcode project.
    1415         $result = buildXCodeProject("WebKit/chromium/webkit",
    1416                                     $clean,
    1417                                     (@options));
    1418     } elsif (isCygwin()) {
     1452        $result = buildXCodeProject("WebKit/chromium/WebKit", $clean, (@options));
     1453    } elsif (isCygwin() || isWindows()) {
    14191454        # Windows build - builds the root visual studio solution.
    1420         $result = buildVisualStudioProject("WebKit/chromium/webkit.sln",
    1421                                            $clean);
     1455        $result = buildChromiumVisualStudioProject("WebKit/chromium/WebKit.sln", $clean);
    14221456    } elsif (isLinux()) {
    1423         # Linux build
    1424         # FIXME support linux.
    1425         print STDERR "Linux build is not supported. Yet.";
     1457        # Linux build - build using make.
     1458        $ result = buildChromiumMakefile("WebKit/chromium/", "WebKit", $clean);
    14261459    } else {
    1427         print STDERR "This platform is not supported by chromium.";
     1460        print STDERR "This platform is not supported by chromium.\n";
    14281461    }
    14291462    return $result;
Note: See TracChangeset for help on using the changeset viewer.