Skip to content

Commit

Permalink
Update Microsoft.Web.WebView2 to version 1.0 (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ngo Iok Ui (Wu Yu Wei) committed Jan 24, 2021
1 parent 7b1b723 commit 3d6f70c
Show file tree
Hide file tree
Showing 47 changed files with 16,651 additions and 11 deletions.
Binary file modified dll/x64/WebView2Loader.dll
Binary file not shown.
Binary file modified dll/x64/webview.dll
Binary file not shown.
Binary file modified dll/x86/WebView2Loader.dll
Binary file not shown.
Binary file modified dll/x86/webview.dll
Binary file not shown.
22 changes: 11 additions & 11 deletions script/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -33,34 +33,34 @@ call "%vc_dir%\Common7\Tools\vsdevcmd.bat" -arch=x86 -host_arch=x64
echo Building webview.dll (x86)
mkdir "%src_dir%\dll\x86"
cl /D "WEBVIEW_API=__declspec(dllexport)" ^
/I "%src_dir%\script\microsoft.web.webview2.0.9.488\build\native\include" ^
"%src_dir%\script\microsoft.web.webview2.0.9.488\build\native\x86\WebView2Loader.dll.lib" ^
/I "%src_dir%\script\microsoft.web.webview2.1.0.664.37\build\native\include" ^
"%src_dir%\script\microsoft.web.webview2.1.0.664.37\build\native\x86\WebView2Loader.dll.lib" ^
/std:c++17 /EHsc "/Fo%build_dir%"\ ^
"%src_dir%\webview.cc" /link /DLL "/OUT:%build_dir%\webview.dll" || exit \b
copy "%build_dir%\webview.dll" "%src_dir%\dll\x86"
copy "%src_dir%\script\microsoft.web.webview2.0.9.488\build\native\x86\WebView2Loader.dll" "%src_dir%\dll\x86"
copy "%src_dir%\script\microsoft.web.webview2.1.0.664.37\build\native\x86\WebView2Loader.dll" "%src_dir%\dll\x86"

call "%vc_dir%\Common7\Tools\vsdevcmd.bat" -arch=x64 -host_arch=x64
echo Building webview.dll (x64)
mkdir "%src_dir%\dll\x64"
cl /D "WEBVIEW_API=__declspec(dllexport)" ^
/I "%src_dir%\script\microsoft.web.webview2.0.9.488\build\native\include" ^
"%src_dir%\script\microsoft.web.webview2.0.9.488\build\native\x64\WebView2Loader.dll.lib" ^
/I "%src_dir%\script\microsoft.web.webview2.1.0.664.37\build\native\include" ^
"%src_dir%\script\microsoft.web.webview2.1.0.664.37\build\native\x64\WebView2Loader.dll.lib" ^
/std:c++17 /EHsc "/Fo%build_dir%"\ ^
"%src_dir%\webview.cc" /link /DLL "/OUT:%build_dir%\webview.dll" || exit \b
copy "%build_dir%\webview.dll" "%src_dir%\dll\x64"
copy "%src_dir%\script\microsoft.web.webview2.0.9.488\build\native\x64\WebView2Loader.dll" "%build_dir%"
copy "%src_dir%\script\microsoft.web.webview2.0.9.488\build\native\x64\WebView2Loader.dll" "%src_dir%\dll\x64"
copy "%src_dir%\script\microsoft.web.webview2.1.0.664.37\build\native\x64\WebView2Loader.dll" "%build_dir%"
copy "%src_dir%\script\microsoft.web.webview2.1.0.664.37\build\native\x64\WebView2Loader.dll" "%src_dir%\dll\x64"

echo Building webview.exe (x64)
cl /I "%src_dir%\script\microsoft.web.webview2.0.9.488\build\native\include" ^
"%src_dir%\script\microsoft.web.webview2.0.9.488\build\native\x64\WebView2Loader.dll.lib" ^
cl /I "%src_dir%\script\microsoft.web.webview2.1.0.664.37\build\native\include" ^
"%src_dir%\script\microsoft.web.webview2.1.0.664.37\build\native\x64\WebView2Loader.dll.lib" ^
/std:c++17 /EHsc "/Fo%build_dir%"\ ^
"%src_dir%\main.cc" /link "/OUT:%build_dir%\webview.exe" || exit \b

echo Building webview_test.exe (x64)
cl /I "%src_dir%\script\microsoft.web.webview2.0.9.488\build\native\include" ^
"%src_dir%\script\microsoft.web.webview2.0.9.488\build\native\x64\WebView2Loader.dll.lib" ^
cl /I "%src_dir%\script\microsoft.web.webview2.1.0.664.37\build\native\include" ^
"%src_dir%\script\microsoft.web.webview2.1.0.664.37\build\native\x64\WebView2Loader.dll.lib" ^
/std:c++17 /EHsc "/Fo%build_dir%"\ ^
"%src_dir%\webview_test.cc" /link "/OUT:%build_dir%\webview_test.exe" || exit \b

Expand Down
Binary file not shown.
27 changes: 27 additions & 0 deletions script/microsoft.web.webview2.1.0.664.37/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright (C) Microsoft Corporation. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* The name of Microsoft Corporation, or the names of its contributors
may not be used to endorse or promote products derived from this
software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>Microsoft.Web.WebView2</id>
<version>1.0.664.37</version>
<authors>Microsoft</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="file">LICENSE.txt</license>
<licenseUrl>https://aka.ms/deprecateLicenseUrl</licenseUrl>
<projectUrl>https://aka.ms/webview</projectUrl>
<iconUrl>https://aka.ms/webviewlogo</iconUrl>
<description>The WebView2 control enables you to embed web technologies (HTML, CSS, and JavaScript) in your native applications powered by Microsoft Edge (Chromium).
This package is necessary for Win 32 C/C++ applications. To learn more about package versions checkout https://aka.ms/wv2-packageversion. To learn best practices checkout: https://aka.ms/wv2-bestpractices.</description>
<releaseNotes>Release notes are at https://aka.ms/webviewrelease</releaseNotes>
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
<tags>Microsoft Web WebView Native native package Edge C++ Win32 Webview2</tags>
<dependencies>
<group targetFramework="native0.0" />
</dependencies>
</metadata>
</package>
Loading

0 comments on commit 3d6f70c

Please sign in to comment.