Skip to content

Commit dd46085

Browse files
committed
Refactored directory structure.
1 parent 28db2f2 commit dd46085

File tree

289 files changed

+34
-35
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

289 files changed

+34
-35
lines changed

build-runtime.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if "%Configuration%" == "" (
1717
set Configuration=Debug
1818
)
1919

20-
cd IL2C.Runtime
20+
cd src\IL2C.Runtime
2121

2222
if exist build.cmake (
2323
move build.cmake build.cmake.old

build-runtime.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ else
88
Configuration=$1
99
fi
1010

11-
cd IL2C.Runtime
11+
cd src/IL2C.Runtime
1212

1313
rm -rf build.cmake
1414

il2c.pack.sln

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio Version 16
33
VisualStudioVersion = 16.0.29306.81
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C", "IL2C\IL2C.csproj", "{2CBC90EC-5581-452F-8231-086E4553D20E}"
5+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C", "src\IL2C\IL2C.csproj", "{2CBC90EC-5581-452F-8231-086E4553D20E}"
66
ProjectSection(ProjectDependencies) = postProject
77
{EA6C4A63-B6AB-4AAD-98FA-FF102227EAB5} = {EA6C4A63-B6AB-4AAD-98FA-FF102227EAB5}
88
EndProjectSection
@@ -15,27 +15,27 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1515
pack.sh = pack.sh
1616
EndProjectSection
1717
EndProject
18-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C.Core", "IL2C.Core\IL2C.Core.csproj", "{678EFB0E-BC0A-4749-AD48-079F98D9468D}"
18+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C.Core", "src\IL2C.Core\IL2C.Core.csproj", "{678EFB0E-BC0A-4749-AD48-079F98D9468D}"
1919
ProjectSection(ProjectDependencies) = postProject
2020
{EA6C4A63-B6AB-4AAD-98FA-FF102227EAB5} = {EA6C4A63-B6AB-4AAD-98FA-FF102227EAB5}
2121
EndProjectSection
2222
EndProject
23-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C.Tasks", "IL2C.Tasks\IL2C.Tasks.csproj", "{A1D40B7C-2F51-43E3-9201-EA8DFFE3B214}"
23+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C.Tasks", "src\IL2C.Tasks\IL2C.Tasks.csproj", "{A1D40B7C-2F51-43E3-9201-EA8DFFE3B214}"
2424
ProjectSection(ProjectDependencies) = postProject
2525
{EA6C4A63-B6AB-4AAD-98FA-FF102227EAB5} = {EA6C4A63-B6AB-4AAD-98FA-FF102227EAB5}
2626
EndProjectSection
2727
EndProject
28-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IL2C.Runtime", "IL2C.Runtime\IL2C.Runtime.vcxproj", "{182A62A4-47AC-4290-8EA5-250AE8131613}"
28+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IL2C.Runtime", "src\IL2C.Runtime\IL2C.Runtime.vcxproj", "{182A62A4-47AC-4290-8EA5-250AE8131613}"
2929
ProjectSection(ProjectDependencies) = postProject
3030
{EA6C4A63-B6AB-4AAD-98FA-FF102227EAB5} = {EA6C4A63-B6AB-4AAD-98FA-FF102227EAB5}
3131
EndProjectSection
3232
EndProject
33-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C.Interop", "IL2C.Interop\IL2C.Interop.csproj", "{854E1ABE-0873-4BDC-8ABF-7F9506DD66DB}"
33+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C.Interop", "src\IL2C.Interop\IL2C.Interop.csproj", "{854E1ABE-0873-4BDC-8ABF-7F9506DD66DB}"
3434
ProjectSection(ProjectDependencies) = postProject
3535
{EA6C4A63-B6AB-4AAD-98FA-FF102227EAB5} = {EA6C4A63-B6AB-4AAD-98FA-FF102227EAB5}
3636
EndProjectSection
3737
EndProject
38-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ArtifactCollector", "ArtifactCollector\ArtifactCollector.csproj", "{EA6C4A63-B6AB-4AAD-98FA-FF102227EAB5}"
38+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ArtifactCollector", "src\ArtifactCollector\ArtifactCollector.csproj", "{EA6C4A63-B6AB-4AAD-98FA-FF102227EAB5}"
3939
EndProject
4040
Global
4141
GlobalSection(SolutionConfigurationPlatforms) = preSolution

il2c.sln

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio Version 16
33
VisualStudioVersion = 16.0.29306.81
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C", "IL2C\IL2C.csproj", "{2CBC90EC-5581-452F-8231-086E4553D20E}"
5+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C", "src\IL2C\IL2C.csproj", "{2CBC90EC-5581-452F-8231-086E4553D20E}"
66
EndProject
77
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D105E6CD-626A-4C04-8AF6-0AA34A4E9CF4}"
88
ProjectSection(SolutionItems) = preProject
@@ -19,20 +19,20 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1919
README.md = README.md
2020
EndProjectSection
2121
EndProject
22-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C.Core", "IL2C.Core\IL2C.Core.csproj", "{678EFB0E-BC0A-4749-AD48-079F98D9468D}"
22+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C.Core", "src\IL2C.Core\IL2C.Core.csproj", "{678EFB0E-BC0A-4749-AD48-079F98D9468D}"
2323
EndProject
2424
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{5710A57F-57F8-4D50-8C78-82E2DFDCB613}"
2525
EndProject
26-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C.Tasks", "IL2C.Tasks\IL2C.Tasks.csproj", "{A1D40B7C-2F51-43E3-9201-EA8DFFE3B214}"
26+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C.Tasks", "src\IL2C.Tasks\IL2C.Tasks.csproj", "{A1D40B7C-2F51-43E3-9201-EA8DFFE3B214}"
2727
EndProject
28-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IL2C.Runtime", "IL2C.Runtime\IL2C.Runtime.vcxproj", "{182A62A4-47AC-4290-8EA5-250AE8131613}"
28+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IL2C.Runtime", "src\IL2C.Runtime\IL2C.Runtime.vcxproj", "{182A62A4-47AC-4290-8EA5-250AE8131613}"
2929
EndProject
3030
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C.Core.Test.Fixture", "tests\IL2C.Core.Test.Fixture\IL2C.Core.Test.Fixture.csproj", "{B0F1010D-8B73-46F7-AF8E-E3C58F68525F}"
3131
ProjectSection(ProjectDependencies) = postProject
3232
{182A62A4-47AC-4290-8EA5-250AE8131613} = {182A62A4-47AC-4290-8EA5-250AE8131613}
3333
EndProjectSection
3434
EndProject
35-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C.Interop", "IL2C.Interop\IL2C.Interop.csproj", "{854E1ABE-0873-4BDC-8ABF-7F9506DD66DB}"
35+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C.Interop", "src\IL2C.Interop\IL2C.Interop.csproj", "{854E1ABE-0873-4BDC-8ABF-7F9506DD66DB}"
3636
EndProject
3737
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{3EBFA913-CF51-4A28-9E4D-73CB5AE27D2F}"
3838
ProjectSection(SolutionItems) = preProject
@@ -52,7 +52,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C.Core.Test.ILConverters
5252
EndProject
5353
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IL2C.Core.Test.RuntimeSystems", "tests\IL2C.Core.Test.RuntimeSystems\IL2C.Core.Test.RuntimeSystems.csproj", "{E397A251-4373-4A8E-AA13-3891282DEDC7}"
5454
EndProject
55-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ArtifactCollector", "ArtifactCollector\ArtifactCollector.csproj", "{DF4432C4-A285-4163-9F95-3A56A2226C9A}"
55+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ArtifactCollector", "src\ArtifactCollector\ArtifactCollector.csproj", "{DF4432C4-A285-4163-9F95-3A56A2226C9A}"
5656
EndProject
5757
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{C26C4683-9840-4307-8774-F1F952E3591B}"
5858
EndProject

pack.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ echo ///////////////////////////////////////////////
4242
echo // Collects artifacts.
4343
echo.
4444

45-
ArtifactCollector\ArtifactCollector.exe . .\artifacts "%BuildIdentifier%" IL2C.Interop IL2C.Core IL2C.Tasks IL2C.Runtime
45+
src\ArtifactCollector\ArtifactCollector.exe . .\artifacts "%BuildIdentifier%" src\IL2C.Interop src\IL2C.Core src\IL2C.Tasks src\IL2C.Runtime
4646

4747
rem =========================================
4848

pack.sh

+10-10
Original file line numberDiff line numberDiff line change
@@ -10,41 +10,41 @@ echo "///////////////////////////////////////////////"
1010
echo "// Build IL2C.Interop"
1111
echo ""
1212

13-
dotnet pack --configuration Release --include-symbols -p:VersionPrefix=${VERSION} IL2C.Interop/IL2C.Interop.csproj
14-
cp IL2C.Interop/bin/Release/IL2C.Interop.${VERSION}.symbols.nupkg artifacts/IL2C.Interop.${VERSION}.nupkg
13+
dotnet pack --configuration Release --include-symbols -p:VersionPrefix=${VERSION} src/IL2C.Interop/IL2C.Interop.csproj
14+
cp src/IL2C.Interop/bin/Release/IL2C.Interop.${VERSION}.symbols.nupkg artifacts/IL2C.Interop.${VERSION}.nupkg
1515

1616
echo ""
1717
echo "///////////////////////////////////////////////"
1818
echo "// Build IL2C.Core"
1919
echo ""
2020

21-
dotnet pack --configuration Release --include-symbols -p:VersionPrefix=${VERSION} IL2C.Core/IL2C.Core.csproj
22-
cp IL2C.Core/bin/Release/IL2C.Core.${VERSION}.symbols.nupkg artifacts/IL2C.Core.${VERSION}.nupkg
21+
dotnet pack --configuration Release --include-symbols -p:VersionPrefix=${VERSION} src/IL2C.Core/IL2C.Core.csproj
22+
cp src/IL2C.Core/bin/Release/IL2C.Core.${VERSION}.symbols.nupkg artifacts/IL2C.Core.${VERSION}.nupkg
2323

2424
echo ""
2525
echo "///////////////////////////////////////////////"
2626
echo "// Build IL2C.Runtime"
2727
echo ""
2828

29-
.nuget/nuget pack -Prop version=${VERSION} -OutputDirectory artifacts IL2C.Runtime/IL2C.Runtime.nuspec
29+
.nuget/nuget pack -Prop version=${VERSION} -OutputDirectory artifacts src/IL2C.Runtime/IL2C.Runtime.nuspec
3030

3131
echo ""
3232
echo "///////////////////////////////////////////////"
3333
echo "// Build IL2C.Build"
3434
echo ""
3535

36-
dotnet pack --configuration Release --include-symbols -p:VersionPrefix=${VERSION} IL2C.Tasks/IL2C.Tasks.csproj
37-
cp IL2C.Tasks/bin/Release/IL2C.Build.${VERSION}.symbols.nupkg artifacts/IL2C.Build.${VERSION}.nupkg
36+
dotnet pack --configuration Release --include-symbols -p:VersionPrefix=${VERSION} src/IL2C.Tasks/IL2C.Tasks.csproj
37+
cp src/IL2C.Tasks/bin/Release/IL2C.Build.${VERSION}.symbols.nupkg artifacts/IL2C.Build.${VERSION}.nupkg
3838

3939
echo ""
4040
echo "///////////////////////////////////////////////"
4141
echo "// Build Arduino library"
4242
echo ""
4343

4444
mkdir artifacts/Arduino
45-
cp /R IL2C.Runtime/include/*.h artifacts/Arduino/src/
46-
cp /R IL2C.Runtime/src/*.h artifacts/Arduino/src/
47-
cp /R IL2C.Runtime/src/*.c artifacts/Arduino/src/
45+
cp -R src/IL2C.Runtime/include/*.h artifacts/Arduino/src/
46+
cp -R src/IL2C.Runtime/src/*.h artifacts/Arduino/src/
47+
cp -R src/IL2C.Runtime/src/*.c artifacts/Arduino/src/
4848

4949
sed 's/{version}/${VERSION}/g' Arduino.properties > artifacts/Arduino/library.properties
5050

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/IL2C.Core.Test.BasicTypes/IL2C.Core.Test.BasicTypes.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</ItemGroup>
3939

4040
<ItemGroup>
41-
<ProjectReference Include="..\..\IL2C.Interop\IL2C.Interop.csproj" />
41+
<ProjectReference Include="..\..\src\IL2C.Interop\IL2C.Interop.csproj" />
4242
<ProjectReference Include="..\IL2C.Core.Test.Common\IL2C.Core.Test.Common.csproj" />
4343
</ItemGroup>
4444

tests/IL2C.Core.Test.Fixture/IL2C.Core.Test.Fixture.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net48;net5.0</TargetFrameworks>
4+
<TargetFrameworks>net48;net6.0</TargetFrameworks>
55
<CheckEolTargetFramework>false</CheckEolTargetFramework>
66

77
<OutputType>Library</OutputType>
@@ -59,7 +59,7 @@
5959
</ItemGroup>
6060

6161
<ItemGroup>
62-
<ProjectReference Include="..\..\IL2C.Core\IL2C.Core.csproj" />
62+
<ProjectReference Include="..\..\src\IL2C.Core\IL2C.Core.csproj" />
6363
<ProjectReference Include="..\IL2C.Core.Test.BasicTypes\IL2C.Core.Test.BasicTypes.csproj" />
6464
<ProjectReference Include="..\IL2C.Core.Test.ILConverters\IL2C.Core.Test.ILConverters.csproj" />
6565
<ProjectReference Include="..\IL2C.Core.Test.RuntimeSystems\IL2C.Core.Test.RuntimeSystems.csproj" />

tests/IL2C.Core.Test.Fixture/TestFramework.cs

+4-5
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@
2424
using System.Linq;
2525
using System.Threading.Tasks;
2626

27-
using NUnit.Framework;
28-
29-
using IL2C.Metadata;
3027
using IL2C.Internal;
28+
using IL2C.Metadata;
29+
30+
using NUnit.Framework;
3131
using NUnit.Framework.Internal;
32-
using NUnit.Framework.Interfaces;
33-
using ILVerify;
3432

3533
#pragma warning disable CS0436
3634

@@ -61,6 +59,7 @@ public static class TestFramework
6159
"..",
6260
"..",
6361
"..",
62+
"src",
6463
"IL2C.Runtime"));
6564

6665
private static string GetCLangaugeSafeConversionExpression(

tests/IL2C.Core.Test.ILConverters/IL2C.Core.Test.ILConverters.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</ItemGroup>
3939

4040
<ItemGroup>
41-
<ProjectReference Include="..\..\IL2C.Interop\IL2C.Interop.csproj" />
41+
<ProjectReference Include="..\..\src\IL2C.Interop\IL2C.Interop.csproj" />
4242
<ProjectReference Include="..\IL2C.Core.Test.Common\IL2C.Core.Test.Common.csproj" />
4343
</ItemGroup>
4444

tests/IL2C.Core.Test.RuntimeSystems/IL2C.Core.Test.RuntimeSystems.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</ItemGroup>
3939

4040
<ItemGroup>
41-
<ProjectReference Include="..\..\IL2C.Interop\IL2C.Interop.csproj" />
41+
<ProjectReference Include="..\..\src\IL2C.Interop\IL2C.Interop.csproj" />
4242
<ProjectReference Include="..\IL2C.Core.Test.Common\IL2C.Core.Test.Common.csproj" />
4343
</ItemGroup>
4444

0 commit comments

Comments
 (0)