Changes between Version 82 and Version 83 of BuildingCairoOnWindows
- Timestamp:
- Apr 10, 2022, 3:01:08 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingCairoOnWindows
v82 v83 38 38 39 39 40 = WinCairo command prompt = 41 42 To compile, run programs and run tests, you need to set some environment variables. 43 For ease of development, it's recommended to create a batch file to set environment variables and open powershell. 44 Create 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 48 cd %~dp0 49 50 path C:\xampp\apache\bin;%path% 51 path C:\Program Files\CMake\bin;%path% 52 path %ProgramFiles(x86)%\Microsoft Visual Studio\Installer;%path% 53 for /F "usebackq delims=" %%I in (`vswhere.exe -latest -property installationPath`) do set VSPATH=%%I 54 55 set RC_PROJECTSOURCEVERSION=0.0.0.0.0 56 set WEBKIT_LIBRARIES=%~dp0WebKitLibraries\win 57 set WEBKIT_OUTPUTDIR=%~dp0WebKitBuild 58 set WEBKIT_TESTFONTS=%~dp0Tools\WebKitTestRunner\fonts 59 60 set DUMPRENDERTREE_TEMP=%TEMP% 61 62 rem set http_proxy=http://your-proxy:8080 63 rem set https_proxy=%http_proxy% 64 65 rem set JSC_dumpOptions=1 66 rem set JSC_useJIT=0 67 rem set JSC_useDFGJIT=0 68 rem set JSC_useRegExpJIT=0 69 rem set JSC_useDOMJIT=0 70 71 rem set WEBKIT_SHOW_FPS=1 72 73 call "%VSPATH%\VC\Auxiliary\Build\vcvars64.bat" 74 cd %~dp0 75 start powershell 76 }}} 77 78 You can replace `powershell` with `cmd` or `wt` if you like. 79 40 80 = Building WinCairo = 41 81 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. 82 In the WinCairo command prompt, invoke build-webkit to start building. 53 83 {{{ 54 84 perl Tools/Scripts/build-webkit --wincairo --release … … 74 104 == Building from within Visual Studio == 75 105 76 Start "x64 Native Tools Command Prompt for VS 2022". 106 In the WinCairo command prompt, 77 107 78 108 {{{ 79 109 perl 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\win86 set WEBKIT_OUTPUTDIR=%cd%\WebKitBuild87 }}}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.195 110 }}} 96 111 … … 148 163 XAMPP contains openssl.exe in C:\xampp\apache\bin directory. Append the directory to your PATH. 149 164 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 }}} 165 Open the WinCairo command prompt as administrator because http tests need to run Apache service. 159 166 160 167 Invoke run-webkit-tests.