Browse Source

build: revise build informations.

tags/v0.2.1
Yaohui Liu 2 years ago
parent
commit
118d410d52
No known key found for this signature in database GPG Key ID: E86D01E1809BD23E
4 changed files with 11 additions and 12 deletions
  1. +5
    -11
      LLama/LLamaSharp.csproj
  2. +6
    -1
      LLama/Native/NativeApi.cs
  3. +0
    -0
      LLama/runtimes/libllama.dll
  4. +0
    -0
      LLama/runtimes/libllama.so

+ 5
- 11
LLama/LLamaSharp.csproj View File

@@ -8,7 +8,7 @@
<Platforms>AnyCPU;x64</Platforms>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>

<Version>0.1.0</Version>
<Version>0.1.9</Version>
<Authors>Yaohui Liu, Haiping Chen</Authors>
<Company>SciSharp STACK</Company>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
@@ -42,16 +42,10 @@
</ItemGroup>

<ItemGroup>
<Content Include="./lib/llama.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<Pack>true</Pack>
<PackagePath>lib\$(TargetFramework)</PackagePath>
</Content>
<Content Include="./lib/libllama.so">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<Pack>true</Pack>
<PackagePath>lib\$(TargetFramework)</PackagePath>
</Content>
<Content Include="runtimes\*"
CopyToOutputDirectory="Always"
Pack="true"
PackagePath="runtimes\" />
<!--<Content Include="llama.so">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<PackageCopyToOutput>true</PackageCopyToOutput>


+ 6
- 1
LLama/Native/NativeApi.cs View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;

@@ -8,7 +9,11 @@ namespace LLama.Native
using llama_token = Int32;
internal unsafe partial class NativeApi
{
private const string libraryName = "lib/libllama";
static NativeApi()
{
}
private const string libraryName = "libllama";

[DllImport(libraryName)]
public static extern LLamaContextParams llama_context_default_params();


LLama/lib/llama.dll → LLama/runtimes/libllama.dll View File


LLama/lib/libllama.so → LLama/runtimes/libllama.so View File


Loading…
Cancel
Save