mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-07-28 01:37:43 +00:00
python wrapper
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<OutputType>Library</OutputType>
|
||||
<PublishAot>true</PublishAot>
|
||||
<AssemblyName>quantalib_native</AssemblyName>
|
||||
<PackageId>QuanTAlib.Python.Native</PackageId>
|
||||
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<InvariantGlobalization>true</InvariantGlobalization>
|
||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="src\**\*.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\lib\quantalib.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Prevent NativeAOT trimmer from stripping QuanTAlib types.
|
||||
The ILC linker must keep ALL types in the referenced assembly
|
||||
because [UnmanagedCallersOnly] exports call static Batch methods
|
||||
on ~120 different indicator types via try/catch wrappers. -->
|
||||
<ItemGroup>
|
||||
<TrimmerRootAssembly Include="QuanTAlib" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="ValidateExportsCoverage" BeforeTargets="Build;Publish">
|
||||
<Exec Command="python tools/validate_exports.py --repo-root $(MSBuildThisFileDirectory).." WorkingDirectory="$(MSBuildThisFileDirectory)" />
|
||||
</Target>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user