Skip to content

Commit

Permalink
Move .NET tests to tests/dotnet.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Feb 4, 2023
1 parent 48e224a commit e2ba53a
Show file tree
Hide file tree
Showing 113 changed files with 820 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<GeneratorFileExtension>dll</GeneratorFileExtension>
<DotNetCmd Condition="'$(PlatformTarget)' == 'x86' AND Exists('$(MSBuildProgramFiles32)\dotnet\dotnet.exe')">"$(MSBuildProgramFiles32)\dotnet\dotnet.exe"</DotNetCmd>
<DotNetCmd Condition="'$(PlatformTarget)' == 'x64' AND Exists('$(ProgramW6432)\dotnet\dotnet.exe')">"$(ProgramW6432)\dotnet\dotnet.exe"</DotNetCmd>
<RID Condition="$(IsWindows)">win</RID>
<RID Condition="$(IsWindows)">win</RID>
<RID Condition="$(IsLinux)">linux</RID>
<RID Condition="$(IsMacOSX)">osx</RID>
<RID>$(RID)-$(PlatformTarget)</RID>
Expand Down
2 changes: 1 addition & 1 deletion build/Helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ rootdir = path.getabsolute("../")
srcdir = path.join(rootdir, "src");
incdir = path.join(rootdir, "include");
examplesdir = path.join(rootdir, "examples");
testsdir = path.join(rootdir, "tests");
testsdir = path.join(rootdir, "tests/dotnet");
builddir = path.join(rootdir, "build")
bindir = path.join(rootdir, "bin")
objsdir = path.join(builddir, "obj");
Expand Down
2 changes: 1 addition & 1 deletion build/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ workspace "CppSharp"
workspacefiles(path.join(builddir, "premake5.lua"))
workspacefiles(path.join(builddir, "*.sh"))
workspacefiles(path.join(rootdir, ".github/workflows/*.yml"))
workspacefiles(path.join(rootdir, "tests/Test*.props"))
workspacefiles(path.join(testsdir, "Test*.props"))

group "Libraries"
if EnableNativeProjects() then
Expand Down
20 changes: 20 additions & 0 deletions examples/FreeCAD/FreeCADGen.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>10</LangVersion>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\AST\CppSharp.AST.csproj" />
<ProjectReference Include="..\..\src\Core\CppSharp.csproj" />
<ProjectReference Include="..\..\src\CppParser\Bindings\CSharp\CppSharp.Parser.CSharp.csproj" />
<ProjectReference Include="..\..\src\Generator\CppSharp.Generator.csproj" />
<ProjectReference Include="..\..\src\Parser\CppSharp.Parser.csproj" />
<ProjectReference Include="..\..\src\Runtime\CppSharp.Runtime.csproj" />
</ItemGroup>

</Project>
Loading

0 comments on commit e2ba53a

Please sign in to comment.