Changes between Version 82 and Version 83 of BuildingCairoOnWindows


Ignore:
Timestamp:
Apr 10, 2022, 3:01:08 PM (3 years ago)
Author:
Fujii Hironori
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildingCairoOnWindows

    v82 v83  
    3838
    3939
     40= WinCairo command prompt =
     41
     42To compile, run programs and run tests, you need to set some environment variables.
     43For ease of development, it's recommended to create a batch file to set environment variables and open powershell.
     44Create a batch file with the following content and put it in the top source directory, and double-click it to open powershell.
     45
     46{{{
     47@echo off
     48cd %~dp0
     49
     50path C:\xampp\apache\bin;%path%
     51path C:\Program Files\CMake\bin;%path%
     52path %ProgramFiles(x86)%\Microsoft Visual Studio\Installer;%path%
     53for /F "usebackq delims=" %%I in (`vswhere.exe -latest -property installationPath`) do set VSPATH=%%I
     54
     55set RC_PROJECTSOURCEVERSION=0.0.0.0.0
     56set WEBKIT_LIBRARIES=%~dp0WebKitLibraries\win
     57set WEBKIT_OUTPUTDIR=%~dp0WebKitBuild
     58set WEBKIT_TESTFONTS=%~dp0Tools\WebKitTestRunner\fonts
     59
     60set DUMPRENDERTREE_TEMP=%TEMP%
     61
     62rem set http_proxy=http://your-proxy:8080
     63rem set https_proxy=%http_proxy%
     64
     65rem set JSC_dumpOptions=1
     66rem set JSC_useJIT=0
     67rem set JSC_useDFGJIT=0
     68rem set JSC_useRegExpJIT=0
     69rem set JSC_useDOMJIT=0
     70
     71rem set WEBKIT_SHOW_FPS=1
     72
     73call "%VSPATH%\VC\Auxiliary\Build\vcvars64.bat"
     74cd %~dp0
     75start powershell
     76}}}
     77
     78You can replace `powershell` with `cmd` or `wt` if you like.
     79
    4080= Building WinCairo =
    4181
    42 Start "x64 Native Tools Command Prompt for VS 2022".
    43 
    44 Change the directory to the top source directory.
    45 Some environment variables should be set.
    46 
    47 {{{
    48 set WEBKIT_LIBRARIES=%cd%\WebKitLibraries\win
    49 set WEBKIT_OUTPUTDIR=%cd%\WebKitBuild
    50 }}}
    51 
    52 Invoke build-webkit to start building.
     82In the WinCairo command prompt, invoke build-webkit to start building.
    5383{{{
    5484perl Tools/Scripts/build-webkit --wincairo --release
     
    74104== Building from within Visual Studio ==
    75105
    76 Start "x64 Native Tools Command Prompt for VS 2022".
     106In the WinCairo command prompt,
    77107
    78108{{{
    79109perl Tools/Scripts/build-webkit --wincairo --release --no-ninja --generate-project-only
    80 }}}
    81 
    82 Some environment variables should be propagated to Visual Studio.
    83 
    84 {{{
    85 set WEBKIT_LIBRARIES=%cd%\WebKitLibraries\win
    86 set WEBKIT_OUTPUTDIR=%cd%\WebKitBuild
    87 }}}
    88 
    89 If you are behind http proxy, you need more environment variables for libcurl.
    90 
    91 {{{
    92 set http_proxy=http://proxy.example.com:8080/
    93 set https_proxy=%http_proxy%
    94 set no_proxy=localhost,127.0.0.1
    95110}}}
    96111
     
    148163XAMPP contains openssl.exe in C:\xampp\apache\bin directory. Append the directory to your PATH.
    149164
    150 Open a command prompt as administrator because http tests need to run Apache service.
    151 Set some environment variables.
    152 
    153 {{{
    154 set WEBKIT_LIBRARIES=%cd%\WebKitLibraries\win
    155 set WEBKIT_OUTPUTDIR=%cd%\WebKitBuild
    156 set WEBKIT_TESTFONTS=%cd%\Tools\WebKitTestRunner\fonts
    157 set DUMPRENDERTREE_TEMP=%TEMP%
    158 }}}
     165Open the WinCairo command prompt as administrator because http tests need to run Apache service.
    159166
    160167Invoke run-webkit-tests.