Skip to content

Commit d131bbf

Browse files
committed
Windows Store compatibility
1 parent 1c734a8 commit d131bbf

12 files changed

+30
-28
lines changed

bcmatroska2

bctoolbox

cmake-builder

cmake/Windows/nuget/NuGetLinphoneSDK.vcxproj

+5-7
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,12 @@ if %errorlevel% neq 0 goto :VCEnd</Command>
5555
</CustomBuild>
5656
</ItemGroup>
5757
<ItemGroup>
58-
<None Include="NuGetLinphoneSDK\content\Asset\belr\grammars\cpim_grammar">
59-
<DeploymentContent>true</DeploymentContent>
60-
</None>
61-
<None Include="NuGetLinphoneSDK\content\Asset\belr\grammars\vcard_grammar">
62-
<DeploymentContent>true</DeploymentContent>
63-
</None>
58+
<Content Include="$(ProjectName).targets" PackagePath="build\uap10.0\" />
59+
<Content Include="Assets\**\*_grammar" Pack="true" PackagePath="content\">
60+
<PackageCopyToOutput>true</PackageCopyToOutput>
61+
</Content>
6462
</ItemGroup>
6563
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
6664
<ImportGroup Label="ExtensionTargets">
6765
</ImportGroup>
68-
</Project>
66+
</Project>

cmake/Windows/nuget/nuget.py

+15-11
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ def main(argv=None):
8787
wrappers += glob.glob(os.path.join(args.cswrapper_dir, 'bin', 'x86', '*', '*.pdb'))
8888
wrappers += glob.glob(os.path.join(args.cswrapper_dir, 'bin', 'x86', '*', '*.XML'))
8989

90-
if not os.path.exists(os.path.join(work_dir, 'contentFiles', 'uap10.0', 'belr', 'grammars')):
91-
os.makedirs(os.path.join(work_dir, 'contentFiles', 'uap10.0', 'belr', 'grammars'))
90+
if not os.path.exists(os.path.join(work_dir, 'contentFiles', 'AppX', 'Assets', 'belr', 'grammars')):
91+
os.makedirs(os.path.join(work_dir, 'contentFiles', 'AppX', 'Assets', 'belr', 'grammars'))
9292

9393
for grammar in grammars:
94-
shutil.copy(grammar, os.path.join(work_dir, 'contentFiles', 'uap10.0', 'belr', 'grammars'))
94+
shutil.copy(grammar, os.path.join(work_dir, 'contentFiles', 'AppX', 'Assets', 'belr', 'grammars'))
9595
for dll in dlls:
9696
shutil.copy(dll, os.path.join(work_dir, 'build', 'uap10.0', 'x86'))
9797
for pdb in pdbs:
@@ -109,8 +109,15 @@ def main(argv=None):
109109
<Content Include="$(MSBuildThisFileDirectory)\$(Platform)\*.dll;$(MSBuildThisFileDirectory)\$(Platform)\*.pdb">
110110
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
111111
</Content>
112-
</ItemGroup>
113-
</Target>
112+
</ItemGroup>
113+
</Target>
114+
<ItemGroup>
115+
<RequiredFiles Include="$(MSBuildThisFileDirectory)\..\..\content\**\*_grammar" />
116+
<None Include="@(RequiredFiles)">
117+
<Link>%(RecursiveDir)%(FileName)%(Extension)</Link>
118+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
119+
</None>
120+
</ItemGroup>
114121
</Project>"""
115122
f = open(os.path.join(work_dir, 'build', 'uap10.0', target_id + '.targets'), 'w')
116123
f.write(targets)
@@ -124,20 +131,17 @@ def main(argv=None):
124131
<version>{version}</version>
125132
<authors>Belledonne Communications</authors>
126133
<owners>Belledonne Communications</owners>
127-
<licenseUrl>http://www.gnu.org/licenses/old-licenses/gpl-2.0.html</licenseUrl>
134+
<licenseUrl>https://www.gnu.org/licenses/gpl-3.0.html</licenseUrl>
128135
<projectUrl>https://linphone.org/</projectUrl>
129136
<iconUrl>https://raw.githubusercontent.com/BelledonneCommunications/linphone-windows10/master/Linphone/Assets/logo-BC.png</iconUrl>
130137
<requireLicenseAcceptance>false</requireLicenseAcceptance>
131138
<description>{target_desc}</description>
132139
<releaseNotes>Nothing new</releaseNotes>
133-
<copyright>Copyright 2017-2019 Belledonne Communications</copyright>
140+
<copyright>Copyright 2017-2020 Belledonne Communications</copyright>
134141
<tags>SIP</tags>
135-
<contentFiles>
136-
<files include="**/*grammar" buildAction="EmbeddedResource" />
137-
</contentFiles>
138142
</metadata>
139143
<files>
140-
<file src="contentFiles\**\*grammar" target="content\" />
144+
<file src="contentFiles\**" target="content\" />
141145
<file src="lib\**" target="lib\" />
142146
<file src="build\**" target="build\" />
143147
</files>

external/ffmpeg

Submodule ffmpeg updated from 63b444b to a8e09ca

liblinphone

mediastreamer2

mswasapi

mswebrtc

mswinrtvid

ortp

Submodule ortp updated from 9679ec0 to 412118a

0 commit comments

Comments
 (0)