Changeset 159806 in webkit


Ignore:
Timestamp:
Nov 26, 2013 10:05:27 PM (10 years ago)
Author:
marcelo.lira@openbossa.org
Message:

Nix upstreaming - Adding build files and supporting scripts
https://bugs.webkit.org/show_bug.cgi?id=118367

Reviewed by Ryosuke Niwa.

.:

  • CMakeLists.txt:
  • Source/CMakeLists.txt:
  • Source/cmake/FindEGL.cmake:
  • Source/cmake/FindOpenGLES2.cmake: Added.
  • Source/cmake/OptionsCommon.cmake:
  • Source/cmake/OptionsNix.cmake: Added.

Source/Platform:

  • CMakeLists.txt: Added.
  • PlatformNix.cmake: Added.

Source/WebCore:

No new tests needed.

  • CMakeLists.txt:
  • PlatformNix.cmake: Added.

Source/WTF:

  • wtf/FeatureDefines.h:
  • wtf/Platform.h:
  • wtf/PlatformNix.cmake: Added.

Tools:

  • Scripts/build-webkit:
  • Scripts/run-nix-tests: Added.
  • Scripts/run-webkit-tests:
  • Scripts/update-webkit-libs-jhbuild:
  • Scripts/update-webkitnix-libs: Added.
  • Scripts/webkitdirs.pm:

(determineArchitecture):
(argumentsForConfiguration):
(jscProductDir):
(builtDylibPathForName):
(determineIsNix):
(isNix):
(isAppleWebKit):
(launcherPath):
(launcherName):
(checkRequiredSystemConfig):
(copyInspectorFrontendFiles):
(jhbuildWrapperPrefixIfNeeded):
(buildCMakeProjectOrExit):
(cmakeBasedPortName):

  • Scripts/webkitpy/common/config/ports.py:

(DeprecatedPort.port):
(EflWK2Port.build_webkit_command):
(NixPort):
(NixPort.build_webkit_command):

  • Scripts/webkitpy/port/factory.py:

(platform_options):
(PortFactory):

  • Scripts/webkitpy/port/nix.py: Added.

(NixPort):
(NixPort._wk2_port_name):
(NixPort.determine_full_port_name):
(NixPort.init):
(NixPort._port_flag_for_scripts):
(NixPort.setup_test_run):
(NixPort.setup_environ_for_server):
(NixPort.default_timeout_ms):
(NixPort.clean_up_test_run):
(NixPort._generate_all_test_configurations):
(NixPort._path_to_driver):
(NixPort._path_to_image_diff):
(NixPort._image_diff_command):
(NixPort._search_paths):
(NixPort.show_results_html_file):
(NixPort._port_specific_expectations_files):
(NixPort.default_baseline_search_path):

  • Scripts/webkitpy/port/nix_unittest.py: Added.

(NixPortTest):
(NixPortTest._assert_search_path):
(NixPortTest._assert_expectations_files):
(NixPortTest.test_baseline_search_path):
(NixPortTest.test_expectations_files):
(NixPortTest.test_default_timeout_ms):

  • jhbuild/jhbuild-wrapper:

(determine_platform):

  • nix/common.py: Added.

(script_path):
(top_level_path):

  • nix/jhbuild.modules: Added.
  • nix/jhbuildrc: Added.
Location:
trunk
Files:
14 added
19 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r157159 r159806  
    1111set(WEBKIT2_DIR "${CMAKE_SOURCE_DIR}/Source/WebKit2")
    1212set(THIRDPARTY_DIR "${CMAKE_SOURCE_DIR}/Source/ThirdParty")
     13set(PLATFORM_DIR "${CMAKE_SOURCE_DIR}/Source/Platform")
    1314
    1415set(TOOLS_DIR "${CMAKE_SOURCE_DIR}/Tools")
     
    4041# Determine which port will be built
    4142# -----------------------------------------------------------------------------
    42 set(ALL_PORTS Efl WinCE BlackBerry GTK)
     43set(ALL_PORTS Efl WinCE BlackBerry GTK Nix)
    4344set(PORT "NOPORT" CACHE STRING "choose which WebKit port to build (one of ${ALL_PORTS})")
    4445
  • trunk/ChangeLog

    r159778 r159806  
     12013-11-26  Marcelo Lira  <marcelo.lira@openbossa.org>
     2
     3        Nix upstreaming - Adding build files and supporting scripts
     4        https://bugs.webkit.org/show_bug.cgi?id=118367
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * CMakeLists.txt:
     9        * Source/CMakeLists.txt:
     10        * Source/cmake/FindEGL.cmake:
     11        * Source/cmake/FindOpenGLES2.cmake: Added.
     12        * Source/cmake/OptionsCommon.cmake:
     13        * Source/cmake/OptionsNix.cmake: Added.
     14
    1152013-11-25  Ryuan Choi  <ryuan.choi@samsung.com>
    216
  • trunk/Source/CMakeLists.txt

    r150336 r159806  
    55
    66add_subdirectory(JavaScriptCore)
     7
     8if ("${PORT}" STREQUAL "Nix")
     9    add_subdirectory(Platform)
     10endif ()
    711
    812if (ENABLE_API_TESTS)
     
    2731# Set compiler flags for all targets
    2832# -----------------------------------------------------------------------------
     33if ("${PORT}" STREQUAL "Nix")
     34    if (NOT DISABLE_STRICT_BUILD)
     35        set(ADDITIONAL_FLAGS ENABLE_WERROR)
     36    endif ()
     37    WEBKIT_SET_EXTRA_COMPILER_FLAGS(Platform ${ADDITIONAL_FLAGS})
     38endif ()
     39
    2940if (${PORT} STREQUAL "Efl")
    3041    set(ADDITIONAL_FLAGS ENABLE_WERROR)
  • trunk/Source/Platform/ChangeLog

    r158848 r159806  
     12013-11-26  Marcelo Lira  <marcelo.lira@openbossa.org>
     2
     3        Nix upstreaming - Adding build files and supporting scripts
     4        https://bugs.webkit.org/show_bug.cgi?id=118367
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * CMakeLists.txt: Added.
     9        * PlatformNix.cmake: Added.
     10
    1112013-11-07  Denis Nomiyama  <d.nomiyama@samsung.com>
    212
  • trunk/Source/WTF/ChangeLog

    r159799 r159806  
     12013-11-26  Marcelo Lira  <marcelo.lira@openbossa.org>
     2
     3        Nix upstreaming - Adding build files and supporting scripts
     4        https://bugs.webkit.org/show_bug.cgi?id=118367
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * wtf/FeatureDefines.h:
     9        * wtf/Platform.h:
     10        * wtf/PlatformNix.cmake: Added.
     11
    1122013-11-26  Drew Yao  <ayao@apple.com>
    213
  • trunk/Source/WTF/wtf/FeatureDefines.h

    r159679 r159806  
    286286#endif /* PLATFORM(WIN_CAIRO) */
    287287
     288/* --------- NIX port (Unix) --------- */
     289#if PLATFORM(NIX)
     290#include "nix/FeatureDefinesNix.h"
     291#endif /* PLATFORM(NIX) */
     292
    288293/* --------- EFL port (Unix) --------- */
    289294#if PLATFORM(EFL)
  • trunk/Source/WTF/wtf/Platform.h

    r159735 r159806  
    453453#elif defined(BUILDING_BLACKBERRY__)
    454454#define WTF_PLATFORM_BLACKBERRY 1
     455#elif defined(BUILDING_NIX__)
     456#include "nix/PlatformNix.h"
    455457#elif OS(DARWIN)
    456458#define WTF_PLATFORM_MAC 1
  • trunk/Source/WebCore/CMakeLists.txt

    r159797 r159806  
    28582858        "${WEBCORE_DIR}/platform/graphics/gpu"
    28592859    )
    2860     if (OPENGL_FOUND)
     2860    # Nix may use either OpenGL or OpenGLES2 headers, so we handle this at PlatformNix.cmake.
     2861    if (OPENGL_FOUND AND NOT PORT STREQUAL "Nix")
    28612862        list(APPEND WebCore_INCLUDE_DIRECTORIES
    28622863            ${OPENGL_INCLUDE_DIR}
     
    28652866            ${OPENGL_gl_LIBRARY}
    28662867        )
    2867     elseif (OPENGLES2_FOUND)
     2868    elseif (OPENGLES2_FOUND AND NOT PORT STREQUAL "Nix")
    28682869        list(APPEND WebCore_INCLUDE_DIRECTORIES
    28692870            ${OPENGLES2_INCLUDE_DIR}
  • trunk/Source/WebCore/ChangeLog

    r159800 r159806  
     12013-11-26  Marcelo Lira  <marcelo.lira@openbossa.org>
     2
     3        Nix upstreaming - Adding build files and supporting scripts
     4        https://bugs.webkit.org/show_bug.cgi?id=118367
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        No new tests needed.
     9
     10        * CMakeLists.txt:
     11        * PlatformNix.cmake: Added.
     12
    1132013-11-26  Tim Horton  <timothy_horton@apple.com>
    214
  • trunk/Source/cmake/FindEGL.cmake

    r138033 r159806  
    3636include(FindPackageHandleStandardArgs)
    3737FIND_PACKAGE_HANDLE_STANDARD_ARGS(EGL DEFAULT_MSG EGL_INCLUDE_DIR EGL_LIBRARY)
     38
     39if (PORT STREQUAL "Nix")
     40   mark_as_advanced(EGL_INCLUDE_DIR EGL_LIBRARY)
     41endif ()
  • trunk/Source/cmake/OptionsCommon.cmake

    r155163 r159806  
    1 add_definitions(-DBUILDING_WITH_CMAKE=1)
    2 add_definitions(-DHAVE_CONFIG_H=1)
     1# Nix doesn't use cmakeconfig.h
     2if (NOT PORT STREQUAL "Nix")
     3    add_definitions(-DBUILDING_WITH_CMAKE=1)
     4    add_definitions(-DHAVE_CONFIG_H=1)
     5endif ()
    36
    47if (WTF_OS_UNIX)
  • trunk/Tools/ChangeLog

    r159805 r159806  
     12013-11-26  Marcelo Lira  <marcelo.lira@openbossa.org>
     2
     3        Nix upstreaming - Adding build files and supporting scripts
     4        https://bugs.webkit.org/show_bug.cgi?id=118367
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * Scripts/build-webkit:
     9        * Scripts/run-nix-tests: Added.
     10        * Scripts/run-webkit-tests:
     11        * Scripts/update-webkit-libs-jhbuild:
     12        * Scripts/update-webkitnix-libs: Added.
     13        * Scripts/webkitdirs.pm:
     14        (determineArchitecture):
     15        (argumentsForConfiguration):
     16        (jscProductDir):
     17        (builtDylibPathForName):
     18        (determineIsNix):
     19        (isNix):
     20        (isAppleWebKit):
     21        (launcherPath):
     22        (launcherName):
     23        (checkRequiredSystemConfig):
     24        (copyInspectorFrontendFiles):
     25        (jhbuildWrapperPrefixIfNeeded):
     26        (buildCMakeProjectOrExit):
     27        (cmakeBasedPortName):
     28        * Scripts/webkitpy/common/config/ports.py:
     29        (DeprecatedPort.port):
     30        (EflWK2Port.build_webkit_command):
     31        (NixPort):
     32        (NixPort.build_webkit_command):
     33        * Scripts/webkitpy/port/factory.py:
     34        (platform_options):
     35        (PortFactory):
     36        * Scripts/webkitpy/port/nix.py: Added.
     37        (NixPort):
     38        (NixPort._wk2_port_name):
     39        (NixPort.determine_full_port_name):
     40        (NixPort.__init__):
     41        (NixPort._port_flag_for_scripts):
     42        (NixPort.setup_test_run):
     43        (NixPort.setup_environ_for_server):
     44        (NixPort.default_timeout_ms):
     45        (NixPort.clean_up_test_run):
     46        (NixPort._generate_all_test_configurations):
     47        (NixPort._path_to_driver):
     48        (NixPort._path_to_image_diff):
     49        (NixPort._image_diff_command):
     50        (NixPort._search_paths):
     51        (NixPort.show_results_html_file):
     52        (NixPort._port_specific_expectations_files):
     53        (NixPort.default_baseline_search_path):
     54        * Scripts/webkitpy/port/nix_unittest.py: Added.
     55        (NixPortTest):
     56        (NixPortTest._assert_search_path):
     57        (NixPortTest._assert_expectations_files):
     58        (NixPortTest.test_baseline_search_path):
     59        (NixPortTest.test_expectations_files):
     60        (NixPortTest.test_default_timeout_ms):
     61        * jhbuild/jhbuild-wrapper:
     62        (determine_platform):
     63        * nix/common.py: Added.
     64        (script_path):
     65        (top_level_path):
     66        * nix/jhbuild.modules: Added.
     67        * nix/jhbuildrc: Added.
     68
    1692013-11-26  Ryosuke Niwa  <rniwa@webkit.org>
    270
  • trunk/Tools/Scripts/build-webkit

    r159321 r159806  
    55# Copyright (C) 2010 moiji-mobile.com All rights reserved.
    66# Copyright (C) 2011 Research In Motion Limited. All rights reserved.
     7# Copyright (C) 2013 Nokia Corporation and/or its subsidiary(-ies).
    78#
    89# Redistribution and use in source and binary forms, with or without
     
    3738use File::Spec;
    3839use FindBin;
    39 use Getopt::Long qw(:config pass_through);
     40use Getopt::Long qw(:config pass_through no_auto_abbrev);
    4041use lib $FindBin::Bin;
    4142use webkitdirs;
     
    6364my $coverageSupport = 0;
    6465my $startTime = time();
     66my $curl = 0;
     67my $opengles2 = 0;
    6568
    6669my @features = getFeatureOptionList();
     70
     71# Update defaults for the Nix port
     72if (isNix()) {
     73    # Instead of use FeatureList.pm to list enabled features, tell the compiler to
     74    # parse Source/WTF/wtf/Platform.h and get the default values of all feature flags
     75    # from the result.
     76    my $portDefine = "BUILDING_".uc(cmakeBasedPortName())."__";
     77    my $definitions = `gcc -E -P -dM -D$portDefine -I Source/WTF Source/WTF/wtf/Platform.h | grep '^#define ENABLE_\\w\\+ \[01\]\$\\|^#define WTF_USE_\\w\\+ \[01\]\$' | cut -d' ' -f2-3`;
     78
     79    my %featureDefaults;
     80    foreach (split(/\n/, $definitions)) {
     81        my @macroDefinition = split(/ /);
     82        $featureDefaults{$macroDefinition[0]} = $macroDefinition[1];
     83    }
     84
     85    @features = ();
     86    foreach (sort keys %featureDefaults) {
     87        next if (!/^ENABLE/);
     88        my $optionName = lc $_;
     89        $optionName =~ s/^enable_//;
     90        $optionName =~ s/_/-/g;
     91        my $descName = $optionName;
     92        $descName =~ s/-/ /g;
     93
     94        push @features, {
     95            option => $optionName,
     96            desc => "Toggle $descName support",
     97            define => $_,
     98            default => $featureDefaults{$_}
     99        };
     100    }
     101}
    67102
    68103# Additional environment parameters
     
    95130  --blackberry                      Build the BlackBerry port on Mac/Linux
    96131  --efl                             Build the EFL port
     132  --nix                             Build the Nix port
    97133  --gtk                             Build the GTK+ port
    98134  --wincairo                        Build using Cairo (rather than CoreGraphics) on Windows
     
    110146  --no-webkit1                      Omit WebKit1 code from the build (EFL/GTK only)
    111147  --no-webkit2                      Omit WebKit2 code from the build
     148
     149  --curl                            Use libCurl as network backend (Nix only)
     150  --opengles2                       Use EGL and OpenGLES2 instead of GLX (Nix only)
    112151
    113152EOF
     
    126165    'no-webkit2' => \$noWebKit2,
    127166    'coverage' => \$coverageSupport,
     167    'curl' => \$curl,
     168    'opengles2' => \$opengles2,
    128169);
    129170
     
    230271    exit exitStatus($result) if exitStatus($result);
    231272    @projects = ("Source/WebInspectorUI");
     273}
     274
     275if (isNix()) {
     276    if ($noWebKit2) {
     277        print STDERR "Nix is a WebKit2 port, you can't disable WebKit2 on it!\n";
     278        exit 1;
     279    }
     280
     281    # By default we build using all of the available CPUs.
     282    $makeArgs .= ($makeArgs ? " " : "") . "-j" . numberOfCPUs() if $makeArgs !~ /-j\s*\d+/;
     283    $cmakeArgs = "-DWTF_USE_CURL=ON " . $cmakeArgs if $curl;
     284    $cmakeArgs = "-DWTF_USE_OPENGL_ES_2=ON " . $cmakeArgs if $opengles2;
     285
     286    # We remove CMakeCache to avoid the bots to reuse cached flags when
     287    # we enable new features. This forces a reconfiguration.
     288    removeCMakeCache();
     289
     290    buildCMakeProjectOrExit($clean, "Nix", $prefixPath, $makeArgs, (cmakeBasedPortArguments(), cMakeArgsFromFeatures()), $cmakeArgs);
    232291}
    233292
  • trunk/Tools/Scripts/run-webkit-tests

    r156895 r159806  
    22# Copyright (C) 2010 Google Inc. All rights reserved.
    33# Copyright (C) 2013 Apple Inc. All rights reserved.
     4# Copyright (C) 2013 Nokia Corporation and/or its subsidiary(-ies).
    45#
    56# Redistribution and use in source and binary forms, with or without
     
    8182} elsif (isEfl()) {
    8283    push(@ARGV, "--efl");
     84} elsif (isNix()) {
     85    push(@ARGV, "--nix");
    8386} elsif (isWinCairo()) {
    8487    push(@ARGV, "--wincairo");
  • trunk/Tools/Scripts/update-webkit-libs-jhbuild

    r157923 r159806  
    22# Copyright (C) 2011 Igalia S.L.
    33# Copyright (C) 2012 Intel Corporation
     4# Copyright (C) 2013 Nokia Corporation and/or its subsidiary(-ies).
    45#
    56# This library is free software; you can redistribute it and/or
     
    2425my $platformEfl = 0;
    2526my $platformGtk = 0;
     27my $platformNix = 0;
    2628
    2729my $getOptionsResult = GetOptions(
    2830    'efl' => \$platformEfl,
    29     'gtk' => \$platformGtk
     31    'gtk' => \$platformGtk,
     32    'nix' => \$platformNix
    3033    );
    3134
    3235my $platform = "";
    3336if (!$getOptionsResult) {
    34     die "No platform specified for " . basename($0) .". Use --gtk or --efl.\n";
     37    die "No platform specified for " . basename($0) .". Use --gtk, --efl or --nix.\n";
    3538} else {
    3639    if ($platformEfl) {
     
    3942    if ($platformGtk) {
    4043        $platform = "gtk";
     44    }
     45    if ($platformNix) {
     46        $platform = "nix";
    4147    }
    4248}
     
    121127chdir(relativeScriptsDir() . "/../jhbuild") or die $!;
    122128
    123 my %prettyPlatform = ( "efl" => "EFL", "gtk" => "GTK+" );
     129my %prettyPlatform = ( "efl" => "EFL", "gtk" => "GTK+", "nix" => "Nix" );
    124130
    125131if (-e getJhbuildPath() && jhbuildConfigurationChanged()) {
  • trunk/Tools/Scripts/webkitdirs.pm

    r159668 r159806  
    22# Copyright (C) 2009 Google Inc. All rights reserved.
    33# Copyright (C) 2011 Research In Motion Limited. All rights reserved.
     4# Copyright (C) 2013 Nokia Corporation and/or its subsidiary(-ies).
    45#
    56# Redistribution and use in source and binary forms, with or without
     
    9596my $isWin64;
    9697my $isEfl;
     98my $isNix;
    9799my $isBlackBerry;
    98100my $isInspectorFrontend;
     
    315317            }
    316318        }
    317     } elsif (isEfl()) {
     319    } elsif (isEfl() || isNix()) {
    318320        my $host_processor = "";
    319321        $host_processor = `cmake --system-information | grep CMAKE_SYSTEM_PROCESSOR`;
     
    325327    }
    326328
    327     if (!$architecture && (isGtk() || isAppleMacWebKit() || isEfl())) {
     329    if (!$architecture && (isGtk() || isAppleMacWebKit() || isEfl() || isNix())) {
    328330        # Fall back to output of `arch', if it is present.
    329331        $architecture = `arch`;
     
    331333    }
    332334
    333     if (!$architecture && (isGtk() || isAppleMacWebKit() || isEfl())) {
     335    if (!$architecture && (isGtk() || isAppleMacWebKit() || isEfl() || isNix())) {
    334336        # Fall back to output of `uname -m', if it is present.
    335337        $architecture = `uname -m`;
     
    380382    push(@args, '--gtk') if isGtk();
    381383    push(@args, '--efl') if isEfl();
     384    push(@args, '--nix') if isNix();
    382385    push(@args, '--wincairo') if isWinCairo();
    383386    push(@args, '--wince') if isWinCE();
     
    530533{
    531534    my $productDir = productDir();
    532     $productDir .= "/bin" if isEfl();
     535    $productDir .= "/bin" if (isEfl() || isNix());
    533536    $productDir .= "/Programs" if isGtk();
    534537
     
    786789        }
    787790        return "$configurationProductDir/lib/libewebkit.so";
     791    }
     792    if (isNix()) {
     793        return "$configurationProductDir/lib/libWebKitNix.so";
    788794    }
    789795    if (isWinCE()) {
     
    10401046}
    10411047
     1048sub determineIsNix()
     1049{
     1050    return if defined($isNix);
     1051    $isNix = checkForArgumentAndRemoveFromARGV("--nix");
     1052}
     1053
     1054sub isNix()
     1055{
     1056    determineIsNix();
     1057    return $isNix;
     1058}
    10421059sub isGtk()
    10431060{
     
    11901207sub isAppleWebKit()
    11911208{
    1192     return !(isGtk() or isEfl() or isWinCE() or isBlackBerry());
     1209    return !(isGtk() or isEfl() or isWinCE() or isBlackBerry() or isNix());
    11931210}
    11941211
     
    13811398{
    13821399    my $relativeScriptsPath = relativeScriptsDir();
    1383     if (isGtk() || isEfl() || isWinCE()) {
     1400    if (isGtk() || isEfl() || isWinCE() || isNix()) {
    13841401        return "$relativeScriptsPath/run-launcher";
    13851402    } elsif (isAppleWebKit()) {
     
    13981415    } elsif (isWinCE()) {
    13991416        return "WinCELauncher";
     1417    } elsif (isNix()) {
     1418        return "MiniBrowser";
    14001419    }
    14011420}
     
    14201439            print "*************************************************************\n";
    14211440        }
    1422     } elsif (isGtk() or isEfl() or isWindows()) {
     1441    } elsif (isGtk() or isEfl() or isWindows() or isNix()) {
    14231442        my @cmds = qw(bison gperf flex);
    14241443        my @missing = ();
     
    16391658    } elsif (isAppleWinWebKit() || isWinCairo()) {
    16401659        $inspectorResourcesDirPath = $productDir . "/WebKit.resources/inspector";
    1641     } elsif (isGtk()) {
     1660    } elsif (isGtk() || isNix()) {
    16421661        my $prefix = $ENV{"WebKitInstallationPrefix"};
    16431662        $inspectorResourcesDirPath = (defined($prefix) ? $prefix : "/usr/share") . "/webkit-1.0/webinspector";
     
    19521971        } elsif (isGtk()) {
    19531972            push(@prefix, "--gtk");
     1973        } elsif (isNix()) {
     1974            push(@prefix, "--nix");
    19541975        }
    19551976        push(@prefix, "run");
     
    20462067    }
    20472068
     2069    if (isNix() && checkForArgumentAndRemoveFromARGV("--update-nix")) {
     2070        system("perl", "$sourceDir/Tools/Scripts/update-webkitnix-libs") == 0 or die $!;
     2071    }
    20482072
    20492073    $returnCode = exitStatus(generateBuildSystemFromCMakeProject($port, $prefixPath, @cmakeArgs));
     
    20692093    return "Efl" if isEfl();
    20702094    return "WinCE" if isWinCE();
     2095    return "Nix" if isNix();
    20712096    return "";
    20722097}
  • trunk/Tools/Scripts/webkitpy/common/config/ports.py

    r157682 r159806  
    11# Copyright (C) 2009, Google Inc. All rights reserved.
     2# Copyright (C) 2013 Nokia Corporation and/or its subsidiary(-ies).
    23#
    34# Redistribution and use in source and binary forms, with or without
     
    7172            "efl": EflPort,
    7273            "efl-wk2": EflWK2Port,
     74            "nix": NixPort,
    7375        }
    7476        default_port = {
     
    231233        command.append(super(EflWK2Port, self).makeArgs())
    232234        return command
     235
     236
     237class NixPort(DeprecatedPort):
     238    port_flag_name = "nix"
     239
     240    def build_webkit_command(self, build_style=None):
     241        command = super(NixPort, self).build_webkit_command(build_style=build_style)
     242        command.append("--nix")
     243        command.append("--update-nix")
     244        command.append(super(NixPort, self).makeArgs())
     245        return command
  • trunk/Tools/Scripts/webkitpy/port/factory.py

    r159282 r159806  
    11# Copyright (C) 2010 Google Inc. All rights reserved.
    22# Copyright (C) 2013 Apple Inc. All rights reserved.
     3# Copyright (C) 2013 Nokia Corporation and/or its subsidiary(-ies).
    34#
    45# Redistribution and use in source and binary forms, with or without
     
    4748            const=('efl*' if use_globs else 'efl'),
    4849            help=('Alias for --platform=efl*' if use_globs else 'Alias for --platform=efl')),
     50        optparse.make_option('--nix', action='store_const', dest='platform',
     51            const=('nix'), help=('Alias for --platform=nix')),
    4952        optparse.make_option('--gtk', action='store_const', dest='platform',
    5053            const=('gtk*' if use_globs else 'gtk'),
     
    7679    PORT_CLASSES = (
    7780        'efl.EflPort',
     81        'nix.NixPort',
    7882        'gtk.GtkPort',
    7983        'mac.MacPort',
  • trunk/Tools/jhbuild/jhbuild-wrapper

    r158912 r159806  
    33# Copyright (C) 2012 Gustavo Noronha Silva <gns@gnome.org>
    44# Copyright (C) 2012 Intel Corporation
     5# Copyright (C) 2012, 2013 Nokia Corporation and/or its subsidiary(-ies).
    56#
    67# This library is free software; you can redistribute it and/or
     
    9899    if '--gtk' in sys.argv:
    99100        return "gtk";
     101    if '--nix' in sys.argv:
     102        return "nix";
    100103    raise ValueError('No platform specified for jhbuild-wrapper.')
    101104
Note: See TracChangeset for help on using the changeset viewer.