зеркало из https://github.com/microsoft/winrtc.git
Create packages (#68)
This commit is contained in:
Родитель
b6f0d9d7fe
Коммит
87167ce767
|
@ -33,11 +33,34 @@ echo Copying contents...
|
||||||
cd /D "%~dp0"
|
cd /D "%~dp0"
|
||||||
if errorlevel 1 goto :error
|
if errorlevel 1 goto :error
|
||||||
|
|
||||||
xcopy /e /i c:\webrtc\src\out ..\output
|
call :copyFiles c:\webrtc\src\out\msvc\uwp\Release\x64\obj\webrtc.lib ..\output\msvc\uwp\Release\x64\obj\
|
||||||
if errorlevel 1 goto :error
|
call :copyFiles c:\webrtc\src\api\*.h ..\include\api\
|
||||||
|
call :copyFiles c:\webrtc\src\audio\*.h ..\include\audio\
|
||||||
|
call :copyFiles c:\webrtc\src\base\*.h ..\include\base\
|
||||||
|
call :copyFiles c:\webrtc\src\call\*.h ..\include\call\
|
||||||
|
call :copyFiles c:\webrtc\src\common_audio\*.h ..\include\common_audio\
|
||||||
|
call :copyFiles c:\webrtc\src\common_video\*.h ..\include\common_video\
|
||||||
|
call :copyFiles c:\webrtc\src\logging\*.h ..\include\logging\
|
||||||
|
call :copyFiles c:\webrtc\src\media\*.h ..\include\media\
|
||||||
|
call :copyFiles c:\webrtc\src\modules\*.h ..\include\modules\
|
||||||
|
call :copyFiles c:\webrtc\src\p2p\*.h ..\include\p2p\
|
||||||
|
call :copyFiles c:\webrtc\src\pc\*.h ..\include\pc\
|
||||||
|
call :copyFiles c:\webrtc\src\rtc_base\*.h ..\include\rtc_base\
|
||||||
|
call :copyFiles c:\webrtc\src\rtc_tools\*.h ..\include\rtc_tools\
|
||||||
|
call :copyFiles c:\webrtc\src\stats\*.h ..\include\stats\
|
||||||
|
call :copyFiles c:\webrtc\src\system_wrappers\*.h ..\include\system_wrappers\
|
||||||
|
call :copyFiles c:\webrtc\src\third_party\abseil-cpp\absl\*.h ..\include\absl\
|
||||||
|
call :copyFiles c:\webrtc\src\third_party\libyuv\include\*.h ..\include\
|
||||||
|
call :copyFiles c:\webrtc\src\video\*.h ..\include\video\
|
||||||
|
call :copyFiles c:\webrtc\src\common_types.h ..\include\
|
||||||
|
|
||||||
goto :exit
|
goto :exit
|
||||||
|
|
||||||
|
:copyFiles
|
||||||
|
xcopy /s /i %~1 %~2
|
||||||
|
if errorlevel 1 goto :error
|
||||||
|
goto :exit
|
||||||
|
|
||||||
:error
|
:error
|
||||||
echo Last command failed with erro code: %errorlevel%
|
echo Last command failed with erro code: %errorlevel%
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
@echo off
|
||||||
|
|
||||||
|
cd /D "%~dp0..\NuSpecs"
|
||||||
|
nuget pack -Version %CDP_PACKAGE_VERSION_NUMERIC%-%CDP_BUILD_TAG%
|
|
@ -10,8 +10,13 @@ environment:
|
||||||
|
|
||||||
version:
|
version:
|
||||||
name: 'WinRTC'
|
name: 'WinRTC'
|
||||||
major: 1
|
major: 84
|
||||||
minor: 0
|
minor: 0
|
||||||
|
system: 'patch'
|
||||||
|
exclude_commit: true
|
||||||
|
|
||||||
|
signing_options:
|
||||||
|
profile: 'external_distribution'
|
||||||
|
|
||||||
restore:
|
restore:
|
||||||
commands:
|
commands:
|
||||||
|
@ -31,4 +36,15 @@ build:
|
||||||
- from: 'output'
|
- from: 'output'
|
||||||
to: 'out'
|
to: 'out'
|
||||||
include:
|
include:
|
||||||
- '**/*'
|
- '**/*'
|
||||||
|
|
||||||
|
package:
|
||||||
|
commands:
|
||||||
|
- !!buildcommand
|
||||||
|
name: 'Create packages'
|
||||||
|
command: '.pipelines\package.cmd'
|
||||||
|
artifacts:
|
||||||
|
- from: 'NuSpecs'
|
||||||
|
to: 'out'
|
||||||
|
include:
|
||||||
|
- '*.nupkg'
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||||
|
<metadata>
|
||||||
|
<id>Microsoft.WinRTC.libwebrtc</id>
|
||||||
|
<version>84.0.3-alpha</version>
|
||||||
|
<authors>Microsoft</authors>
|
||||||
|
<owners>Microsoft</owners>
|
||||||
|
<projectUrl>http://github.com/microsoft/winrtc</projectUrl>
|
||||||
|
<license type="file">license.txt</license>
|
||||||
|
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||||
|
<releaseNotes>Upgrading WinRTC with the WebRTC changes up to version m84. Bringing the Media Foundation based H264 encoder and decoder from the WebRTC-UWP project.</releaseNotes>
|
||||||
|
<description>This package contains a WebRTC static library and the header files to be used to build an UWP native app or component.</description>
|
||||||
|
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
|
||||||
|
<tags>webrtc uwp windows native rtc real time communication</tags>
|
||||||
|
<dependencies>
|
||||||
|
<group targetFramework="native" />
|
||||||
|
</dependencies>
|
||||||
|
</metadata>
|
||||||
|
|
||||||
|
<files>
|
||||||
|
<file src="license.txt" />
|
||||||
|
<file src="..\output\msvc\uwp\Release\x64\obj\webrtc.lib" target="lib\native\Release\x64\v142" />
|
||||||
|
<file src="..\include\**\*.h" target="build\native\include" />
|
||||||
|
<file src="Microsoft.WinRTC.libwebrtc.props" target="build\native" />
|
||||||
|
</files>
|
||||||
|
</package>
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ImportGroup Label="PropertySheets" />
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup />
|
||||||
|
<ItemDefinitionGroup>
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">USE_AURA=1;_HAS_EXCEPTIONS=0;__STD_C;_CRT_RAND_S;_CRT_SECURE_NO_DEPRECATE;_SCL_SECURE_NO_DEPRECATE;_ATL_NO_OPENGL;_WINDOWS;CERT_CHAIN_PARA_HAS_EXTRA_FIELDS;PSAPI_VERSION=2;WIN32;_SECURE_ATL;WINUWP;WRL_NO_DEFAULT_LIB;WINAPI_FAMILY=WINAPI_FAMILY_PC_APP;WIN10=_WIN32_WINNT_WIN10;WIN32_LEAN_AND_MEAN;NOMINMAX;_UNICODE;UNICODE;NTDDI_VERSION=NTDDI_WIN10_RS2;_WIN32_WINNT=0x0A00;WINVER=0x0A00;NDEBUG;NVALGRIND;DYNAMIC_ANNOTATIONS_ENABLED=0;WEBRTC_ENABLE_PROTOBUF=0;WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE;RTC_ENABLE_VP9;HAVE_SCTP;WEBRTC_LIBRARY_IMPL;WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0;WEBRTC_WIN;ABSL_ALLOCATOR_NOTHROW=1;HAVE_SCTP;WEBRTC_VIDEO_CAPTURE_WINRT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>webrtc.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>$(MSBuildThisFileDirectory)..\..\lib\native\$(Configuration)\$(Platform)\$(PlatformToolset);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
<IgnoreSpecificDefaultLibraries Condition="'$(Configuration)|$(Platform)'=='Release|x64'">libcmt.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup />
|
||||||
|
</Project>
|
|
@ -0,0 +1,51 @@
|
||||||
|
MICROSOFT SOFTWARE LICENSE TERMS
|
||||||
|
MICROSOFT WINRTC
|
||||||
|
|
||||||
|
----------------------------------------
|
||||||
|
IF YOU LIVE IN (OR ARE A BUSINESS WITH A PRINCIPAL PLACE OF BUSINESS IN) THE UNITED STATES, PLEASE READ THE “BINDING ARBITRATION AND CLASS ACTION WAIVER” SECTION BELOW. IT AFFECTS HOW DISPUTES ARE RESOLVED.
|
||||||
|
----------------------------------------
|
||||||
|
|
||||||
|
These license terms are an agreement between you and Microsoft Corporation (or one of its affiliates). They apply to the software named above and any Microsoft services or software updates (except to the extent such services or updates are accompanied by new or additional terms, in which case those different terms apply prospectively and do not alter your or Microsoft’s rights relating to pre-updated software or services). IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE RIGHTS BELOW. BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS.
|
||||||
|
|
||||||
|
1. INSTALLATION AND USE RIGHTS.
|
||||||
|
a) General. Subject to the terms of this agreement, you may install and use any number of copies of the software.
|
||||||
|
b) Included Microsoft Applications. The software may include other Microsoft applications. These license terms apply to those included applications, if any, unless other license terms are provided with the other Microsoft applications.
|
||||||
|
c) Microsoft Platforms. The software may include components from Microsoft Windows. These components are governed by separate agreements and their own product support policies, as described in the license terms found in the installation directory for that component or in the “Licenses” folder accompanying the software.
|
||||||
|
d) Third Party Components. The software may include third party components with separate legal notices or governed by other agreements, as may be described in the ThirdPartyNotices file(s) accompanying the software.
|
||||||
|
|
||||||
|
2. DATA. This software may interact with other Microsoft products that collect data that is transmitted to Microsoft. To learn more about how Microsoft processes personal data we collect, please see the Microsoft Privacy Statement at https://go.microsoft.com/fwlink/?LinkId=248681.
|
||||||
|
|
||||||
|
3. SCOPE OF LICENSE. The software is licensed, not sold. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you will not (and have no right to):
|
||||||
|
a) work around any technical limitations in the software that only allow you to use it in certain ways;
|
||||||
|
b) reverse engineer, decompile or disassemble the software, or otherwise attempt to derive the source code for the software, except and to the extent required by third party licensing terms governing use of certain open source components that may be included in the software;
|
||||||
|
c) remove, minimize, block, or modify any notices of Microsoft or its suppliers in the software;
|
||||||
|
d) use the software in any way that is against the law or to create or propagate malware; or
|
||||||
|
e) share, publish, distribute, or lease the software, provide the software as a stand-alone offering for others to use, or transfer the software or this agreement to any third party.
|
||||||
|
|
||||||
|
4. VIDEO CODECS. THIS PRODUCT IS LICENSED UNDER THE AVC, THE VC-1, AND THE MPEG-4 PART 2 VISUAL PATENT PORTFOLIO LICENSES FOR THE PERSONAL AND NON-COMMERCIAL USE OF A CONSUMER TO (i) ENCODE VIDEO IN COMPLIANCE WITH THE ABOVE STANDARDS (“VIDEO STANDARDS”) OR (ii) DECODE AVC, VC-1, AND MPEG-4 PART 2 VIDEO THAT WAS ENCODED BY A CONSUMER ENGAGED IN A PERSONAL AND NON-COMMERCIAL ACTIVITY OR WAS OBTAINED FROM A VIDEO PROVIDER LICENSED TO PROVIDE SUCH VIDEO. NO LICENSE IS GRANTED OR SHALL BE IMPLIED FOR ANY OTHER USE. ADDITIONAL INFORMATION MAY BE OBTAINED FROM MPEG LA, L.L.C. SEE https://aka.ms/mpegla.
|
||||||
|
|
||||||
|
5. EXPORT RESTRICTIONS. You must comply with all domestic and international export laws and regulations that apply to the software, which include restrictions on destinations, end users, and end use. For further information on export restrictions, visit https://aka.ms/exporting.
|
||||||
|
|
||||||
|
6. SUPPORT SERVICES. Microsoft is not obligated under this agreement to provide any support services for the software. Any support provided is “as is”, “with all faults”, and without warranty of any kind.
|
||||||
|
|
||||||
|
7. UPDATES. The software may periodically check for updates, and download and install them for you. You may obtain updates only from Microsoft or authorized sources. Microsoft may need to update your system to provide you with updates. You agree to receive these automatic updates without any additional notice. Updates may not include or support all existing software features, services, or peripheral devices.
|
||||||
|
|
||||||
|
8. BINDING ARBITRATION AND CLASS ACTION WAIVER. This Section applies if you live in (or, if a business, your principal place of business is in) the United States. If you and Microsoft have a dispute, you and Microsoft agree to try for 60 days to resolve it informally. If you and Microsoft can’t, you and Microsoft agree to binding individual arbitration before the American Arbitration Association under the Federal Arbitration Act (“FAA”), and not to sue in court in front of a judge or jury. Instead, a neutral arbitrator will decide. Class action lawsuits, class-wide arbitrations, private attorney-general actions, and any other proceeding where someone acts in a representative capacity are not allowed; nor is combining individual proceedings without the consent of all parties. The complete Arbitration Agreement contains more terms and is at https://aka.ms/arb-agreement-4. You and Microsoft agree to these terms.
|
||||||
|
|
||||||
|
9. ENTIRE AGREEMENT. This agreement, and any other terms Microsoft may provide for supplements, updates, or third-party applications, is the entire agreement for the software.
|
||||||
|
|
||||||
|
10. APPLICABLE LAW AND PLACE TO RESOLVE DISPUTES. If you acquired the software in the United States or Canada, the laws of the state or province where you live (or, if a business, where your principal place of business is located) govern the interpretation of this agreement, claims for its breach, and all other claims (including consumer protection, unfair competition, and tort claims), regardless of conflict of laws principles, except that the FAA governs everything related to arbitration. If you acquired the software in any other country, its laws apply, except that the FAA governs everything related to arbitration. If U.S. federal jurisdiction exists, you and Microsoft consent to exclusive jurisdiction and venue in the federal court in King County, Washington for all disputes heard in court (excluding arbitration). If not, you and Microsoft consent to exclusive jurisdiction and venue in the Superior Court of King County, Washington for all disputes heard in court (excluding arbitration).
|
||||||
|
|
||||||
|
11. CONSUMER RIGHTS; REGIONAL VARIATIONS. This agreement describes certain legal rights. You may have other rights, including consumer rights, under the laws of your state, province, or country. Separate and apart from your relationship with Microsoft, you may also have rights with respect to the party from which you acquired the software. This agreement does not change those other rights if the laws of your state, province, or country do not permit it to do so. For example, if you acquired the software in one of the below regions, or mandatory country law applies, then the following provisions apply to you:
|
||||||
|
a) Australia. You have statutory guarantees under the Australian Consumer Law and nothing in this agreement is intended to affect those rights.
|
||||||
|
b) Canada. If you acquired this software in Canada, you may stop receiving updates by turning off the automatic update feature, disconnecting your device from the Internet (if and when you re-connect to the Internet, however, the software will resume checking for and installing updates), or uninstalling the software. The product documentation, if any, may also specify how to turn off updates for your specific device or software.
|
||||||
|
c) Germany and Austria.
|
||||||
|
i. Warranty. The properly licensed software will perform substantially as described in any Microsoft materials that accompany the software. However, Microsoft gives no contractual guarantee in relation to the licensed software.
|
||||||
|
ii. Limitation of Liability. In case of intentional conduct, gross negligence, claims based on the Product Liability Act, as well as, in case of death or personal or physical injury, Microsoft is liable according to the statutory law.
|
||||||
|
Subject to the foregoing clause ii., Microsoft will only be liable for slight negligence if Microsoft is in breach of such material contractual obligations, the fulfillment of which facilitate the due performance of this agreement, the breach of which would endanger the purpose of this agreement and the compliance with which a party may constantly trust in (so-called "cardinal obligations"). In other cases of slight negligence, Microsoft will not be liable for slight negligence.
|
||||||
|
|
||||||
|
12. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES, OR CONDITIONS. TO THE EXTENT PERMITTED UNDER APPLICABLE LAWS, MICROSOFT EXCLUDES ALL IMPLIED WARRANTIES, INCLUDING MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
|
||||||
|
|
||||||
|
13. LIMITATION ON AND EXCLUSION OF DAMAGES. IF YOU HAVE ANY BASIS FOR RECOVERING DAMAGES DESPITE THE PRECEDING DISCLAIMER OF WARRANTY, YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES.
|
||||||
|
This limitation applies to (a) anything related to the software, services, content (including code) on third party Internet sites, or third party applications; and (b) claims for breach of contract, warranty, guarantee, or condition; strict liability, negligence, or other tort; or any other claim; in each case to the extent permitted by applicable law.
|
||||||
|
It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your state, province, or country may not allow the exclusion or limitation of incidental, consequential, or other damages.
|
Загрузка…
Ссылка в новой задаче