File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2020 echo '<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup><RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory><OutputType>Exe</OutputType><TargetFramework>net8.0</TargetFramework><EnableDefaultItems>false</EnableDefaultItems></PropertyGroup><ItemGroup><Compile Remove="**/*.cs"/><Compile Include="tritonservercppsharp.cs"/><Reference Include="MyAssembly"><HintPath>./CppSharp/bin/Release_x64/CppSharp.dll</HintPath></Reference><Reference Include="MyAssembly"><HintPath>./CppSharp/bin/Release_x64/CppSharp.Runtime.dll</HintPath></Reference><Reference Include="MyAssembly"><HintPath>./CppSharp/bin/Release_x64/CppSharp.AST.dll</HintPath></Reference><Reference Include="MyAssembly"><HintPath>./CppSharp/bin/Release_x64/CppSharp.Generator.dll</HintPath></Reference><Reference Include="MyAssembly"><HintPath>./CppSharp/bin/Release_x64/CppSharp.CLI.dll</HintPath></Reference><Reference Include="MyAssembly"><HintPath>./CppSharp/bin/Release_x64/CppSharp.Parser.dll</HintPath></Reference><Reference Include="MyAssembly"><HintPath>./CppSharp/bin/Release_x64/CppSharp.Parser.CSharp.dll</HintPath></Reference><Reference Include="MyAssembly"><HintPath>./CppSharp/bin/Release_x64/CppSharp.Parser.Bootstrap.dll</HintPath></Reference><Reference Include="MyAssembly"><HintPath>./CppSharp/bin/Release_x64/CppSharp.Parser.Gen.dll</HintPath></Reference></ItemGroup></Project>' > tritonservercppsharp.csproj
2121 tee tritonservercppsharp.cs <<EOF
2222 namespace CppSharpTransformer { public class DllDemoGenerator : CppSharp.ILibrary {
23- public static void Main(string[] args) { System.Console.WriteLine(System.Environment.CurrentDirectory); CppSharp.ConsoleDriver.Run(new DllDemoGenerator()); }
23+ public static void Main(string[] args) { CppSharp.ConsoleDriver.Run(new DllDemoGenerator()); }
2424 public void SetupPasses(CppSharp.Driver driver) { }
2525 public void Preprocess(CppSharp.Driver driver, CppSharp.AST.ASTContext ctx) { }
2626 public void Postprocess(CppSharp.Driver driver, CppSharp.AST.ASTContext ctx) { }
8080 #./tritonservercppsharp
8181 #strace -ff dotnet tritonservercppsharp.exe || true
8282 echo BEFORE
83- mkdir -p bin/x64/Debug/net8.0
84- cp -r lib bin/x64/Debug/net8.0/lib
83+ # mkdir -p bin/x64/Debug/net8.0
84+ # cp -r lib bin/x64/Debug/net8.0/lib
8585 LD_PRELOAD=$PWD/libCppSharp.CppParser.so:$PWD/libStd-symbols.so dotnet run
86+ find -name 'Std.cs'
8687
8788
8889# - uses: actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments