forked from Tencent/puerts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
63 lines (50 loc) · 4.01 KB
/
Directory.Build.props
File metadata and controls
63 lines (50 loc) · 4.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<Project>
<PropertyGroup>
<DefineConstants>PUERTS_GENERAL;DISABLE_AUTO_REGISTER;PUERTS_REFLECT_ALL_EXTENSION;PUERTS_NUGET</DefineConstants>
<NoWarn>NU5128</NoWarn>
<PackageProjectUrl>https://github.com/Tencent/puerts</PackageProjectUrl>
<Description>Puerts is a library that makes it easy to add scripting to your .NET applications. It currently supports JavaScript (via V8/Nodejs/Quickjs) and Lua.</Description>
<Authors>Tencent</Authors>
<Copyright>Copyright (C) 2020 Tencent.</Copyright>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIcon>Icon128.png</PackageIcon>
<PackageTags>puerts;typescript;v8;nodejs;dotnet;quickjs;lua;python</PackageTags>
<!-- Read version from package.json files -->
<PuertsCorePackageJson>$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)..\upms\core\package.json'))</PuertsCorePackageJson>
<PuertsLuaPackageJson>$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)..\upms\lua\package.json'))</PuertsLuaPackageJson>
<PuertsNodeJsPackageJson>$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)..\upms\nodejs\package.json'))</PuertsNodeJsPackageJson>
<PuertsPythonPackageJson>$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)..\upms\python\package.json'))</PuertsPythonPackageJson>
<PuertsQuickJsPackageJson>$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)..\upms\quickjs\package.json'))</PuertsQuickJsPackageJson>
<PuertsV8PackageJson>$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)..\upms\v8\package.json'))</PuertsV8PackageJson>
<PuertsCoreVersion>$([System.Text.RegularExpressions.Regex]::Match($(PuertsCorePackageJson), '\"version\"\s*:\s*\"([^\"]+)\"').Groups[1].Value)</PuertsCoreVersion>
<PuertsLuaVersion>$([System.Text.RegularExpressions.Regex]::Match($(PuertsLuaPackageJson), '\"version\"\s*:\s*\"([^\"]+)\"').Groups[1].Value)</PuertsLuaVersion>
<PuertsNodeJsVersion>$([System.Text.RegularExpressions.Regex]::Match($(PuertsNodeJsPackageJson), '\"version\"\s*:\s*\"([^\"]+)\"').Groups[1].Value)</PuertsNodeJsVersion>
<PuertsPythonVersion>$([System.Text.RegularExpressions.Regex]::Match($(PuertsPythonPackageJson), '\"version\"\s*:\s*\"([^\"]+)\"').Groups[1].Value)</PuertsPythonVersion>
<PuertsQuickJsVersion>$([System.Text.RegularExpressions.Regex]::Match($(PuertsQuickJsPackageJson), '\"version\"\s*:\s*\"([^\"]+)\"').Groups[1].Value)</PuertsQuickJsVersion>
<PuertsV8Version>$([System.Text.RegularExpressions.Regex]::Match($(PuertsV8PackageJson), '\"version\"\s*:\s*\"([^\"]+)\"').Groups[1].Value)</PuertsV8Version>
</PropertyGroup>
<ItemGroup>
<None Include="..\..\..\LICENSE" Pack="true" PackagePath="\" Link="Properties\LICENSE"/>
<None Include="..\..\..\unreal\Puerts\Resources\Icon128.png" Pack="true" PackagePath="\" Link="Properties\Icon128.png" />
<None Include="..\..\..\README.md" Pack="true" PackagePath="\"/>
</ItemGroup>
<!-- https://github.com/dotnet/sourcelink -->
<PropertyGroup Label="SourceLink">
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
</PropertyGroup>
<!-- https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#continuousintegrationbuild -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<Deterministic>true</Deterministic>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<PropertyGroup>
<PuertsCurrentTargetFrameworks>netstandard2.1;net8.0</PuertsCurrentTargetFrameworks>
<PuertsNativeAssetsLinuxTargetFrameworks>netstandard2.1;net8.0</PuertsNativeAssetsLinuxTargetFrameworks>
<PuertsNativeAssetsWin32TargetFrameworks>netstandard2.1;net8.0</PuertsNativeAssetsWin32TargetFrameworks>
<PuertsNativeAssetsmacOSTargetFrameworks>netstandard2.1;net8.0</PuertsNativeAssetsmacOSTargetFrameworks>
</PropertyGroup>
</Project>