Skip to content

Commit

Permalink
Support BugTrap client as a static library
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Oct 2, 2024
1 parent caedb0c commit 4f47a0d
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 4 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@ jobs:
strategy:
fail-fast: false
matrix:
configuration: [.NET Debug, .NET Release, Debug, Release, Unicode Debug, Unicode Release]
configuration:
- .NET Debug
- .NET Release
- Debug
- Release
- Debug Static
- Release Static
- Unicode Debug
- Unicode Release
- Unicode Debug Static
- Unicode Release Static
platform: [x64, Win32]
steps:
- uses: actions/checkout@main
Expand Down
33 changes: 30 additions & 3 deletions source/BugTrap.props
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,54 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='.NET Release|x64'">
<TargetName>$(ProjectName)N-x64</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<TargetName>$(ProjectName)D</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<TargetName>$(ProjectName)D-x64</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<TargetName>$(ProjectName)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<TargetName>$(ProjectName)-x64</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'">
<TargetName>$(ProjectName)DS</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Static|x64'">
<TargetName>$(ProjectName)DS-x64</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Static|Win32'">
<TargetName>$(ProjectName)S</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Static|x64'">
<TargetName>$(ProjectName)S-x64</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Unicode Debug|x64'">
<TargetName>$(ProjectName)UD-x64</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Unicode Release|x64'">
<TargetName>$(ProjectName)U-x64</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<TargetName>$(ProjectName)D</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Unicode Debug|Win32'">
<TargetName>$(ProjectName)UD</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Unicode Release|Win32'">
<TargetName>$(ProjectName)U</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Unicode Debug Static|x64'">
<TargetName>$(ProjectName)UDS-x64</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Unicode Release Static|x64'">
<TargetName>$(ProjectName)US-x64</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Unicode Debug Static|Win32'">
<TargetName>$(ProjectName)UDS</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Unicode Release Static|Win32'">
<TargetName>$(ProjectName)US</TargetName>
</PropertyGroup>

<ItemDefinitionGroup>
<ClCompile>
Expand Down
48 changes: 48 additions & 0 deletions source/BugTrap.sln
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,20 @@ Global
.NET Debug|x64 = .NET Debug|x64
.NET Release|Win32 = .NET Release|Win32
.NET Release|x64 = .NET Release|x64
Debug Static|Win32 = Debug Static|Win32
Debug Static|x64 = Debug Static|x64
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release Static|Win32 = Release Static|Win32
Release Static|x64 = Release Static|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
Unicode Debug Static|Win32 = Unicode Debug Static|Win32
Unicode Debug Static|x64 = Unicode Debug Static|x64
Unicode Debug|Win32 = Unicode Debug|Win32
Unicode Debug|x64 = Unicode Debug|x64
Unicode Release Static|Win32 = Unicode Release Static|Win32
Unicode Release Static|x64 = Unicode Release Static|x64
Unicode Release|Win32 = Unicode Release|Win32
Unicode Release|x64 = Unicode Release|x64
EndGlobalSection
Expand All @@ -43,18 +51,34 @@ Global
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}..NET Release|Win32.Build.0 = .NET Release|Win32
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}..NET Release|x64.ActiveCfg = .NET Release|x64
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}..NET Release|x64.Build.0 = .NET Release|x64
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Debug Static|Win32.ActiveCfg = Debug Static|Win32
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Debug Static|Win32.Build.0 = Debug Static|Win32
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Debug Static|x64.ActiveCfg = Debug Static|x64
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Debug Static|x64.Build.0 = Debug Static|x64
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Debug|Win32.ActiveCfg = Debug|Win32
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Debug|Win32.Build.0 = Debug|Win32
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Debug|x64.ActiveCfg = Debug|x64
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Debug|x64.Build.0 = Debug|x64
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Release Static|Win32.ActiveCfg = Release Static|Win32
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Release Static|Win32.Build.0 = Release Static|Win32
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Release Static|x64.ActiveCfg = Release Static|x64
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Release Static|x64.Build.0 = Release Static|x64
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Release|Win32.ActiveCfg = Release|Win32
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Release|Win32.Build.0 = Release|Win32
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Release|x64.ActiveCfg = Release|x64
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Release|x64.Build.0 = Release|x64
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Unicode Debug Static|Win32.ActiveCfg = Unicode Debug Static|Win32
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Unicode Debug Static|Win32.Build.0 = Unicode Debug Static|Win32
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Unicode Debug Static|x64.ActiveCfg = Unicode Debug Static|x64
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Unicode Debug Static|x64.Build.0 = Unicode Debug Static|x64
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Unicode Debug|Win32.ActiveCfg = Unicode Debug|Win32
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Unicode Debug|Win32.Build.0 = Unicode Debug|Win32
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Unicode Debug|x64.ActiveCfg = Unicode Debug|x64
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Unicode Debug|x64.Build.0 = Unicode Debug|x64
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Unicode Release Static|Win32.ActiveCfg = Unicode Release Static|Win32
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Unicode Release Static|Win32.Build.0 = Unicode Release Static|Win32
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Unicode Release Static|x64.ActiveCfg = Unicode Release Static|x64
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Unicode Release Static|x64.Build.0 = Unicode Release Static|x64
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Unicode Release|Win32.ActiveCfg = Unicode Release|Win32
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Unicode Release|Win32.Build.0 = Unicode Release|Win32
{E8CF1ADA-264A-4127-86C2-FD7057D3792C}.Unicode Release|x64.ActiveCfg = Unicode Release|x64
Expand All @@ -67,18 +91,34 @@ Global
{B5919129-6716-499D-9516-04EC34C86CDF}..NET Release|Win32.Build.0 = MD Release|Win32
{B5919129-6716-499D-9516-04EC34C86CDF}..NET Release|x64.ActiveCfg = MD Release|x64
{B5919129-6716-499D-9516-04EC34C86CDF}..NET Release|x64.Build.0 = MD Release|x64
{B5919129-6716-499D-9516-04EC34C86CDF}.Debug Static|Win32.ActiveCfg = Debug|Win32
{B5919129-6716-499D-9516-04EC34C86CDF}.Debug Static|Win32.Build.0 = Debug|Win32
{B5919129-6716-499D-9516-04EC34C86CDF}.Debug Static|x64.ActiveCfg = Debug|x64
{B5919129-6716-499D-9516-04EC34C86CDF}.Debug Static|x64.Build.0 = Debug|x64
{B5919129-6716-499D-9516-04EC34C86CDF}.Debug|Win32.ActiveCfg = Debug|Win32
{B5919129-6716-499D-9516-04EC34C86CDF}.Debug|Win32.Build.0 = Debug|Win32
{B5919129-6716-499D-9516-04EC34C86CDF}.Debug|x64.ActiveCfg = Debug|x64
{B5919129-6716-499D-9516-04EC34C86CDF}.Debug|x64.Build.0 = Debug|x64
{B5919129-6716-499D-9516-04EC34C86CDF}.Release Static|Win32.ActiveCfg = Release|Win32
{B5919129-6716-499D-9516-04EC34C86CDF}.Release Static|Win32.Build.0 = Release|Win32
{B5919129-6716-499D-9516-04EC34C86CDF}.Release Static|x64.ActiveCfg = Release|x64
{B5919129-6716-499D-9516-04EC34C86CDF}.Release Static|x64.Build.0 = Release|x64
{B5919129-6716-499D-9516-04EC34C86CDF}.Release|Win32.ActiveCfg = Release|Win32
{B5919129-6716-499D-9516-04EC34C86CDF}.Release|Win32.Build.0 = Release|Win32
{B5919129-6716-499D-9516-04EC34C86CDF}.Release|x64.ActiveCfg = Release|x64
{B5919129-6716-499D-9516-04EC34C86CDF}.Release|x64.Build.0 = Release|x64
{B5919129-6716-499D-9516-04EC34C86CDF}.Unicode Debug Static|Win32.ActiveCfg = Debug|Win32
{B5919129-6716-499D-9516-04EC34C86CDF}.Unicode Debug Static|Win32.Build.0 = Debug|Win32
{B5919129-6716-499D-9516-04EC34C86CDF}.Unicode Debug Static|x64.ActiveCfg = Debug|x64
{B5919129-6716-499D-9516-04EC34C86CDF}.Unicode Debug Static|x64.Build.0 = Debug|x64
{B5919129-6716-499D-9516-04EC34C86CDF}.Unicode Debug|Win32.ActiveCfg = Debug|Win32
{B5919129-6716-499D-9516-04EC34C86CDF}.Unicode Debug|Win32.Build.0 = Debug|Win32
{B5919129-6716-499D-9516-04EC34C86CDF}.Unicode Debug|x64.ActiveCfg = Debug|x64
{B5919129-6716-499D-9516-04EC34C86CDF}.Unicode Debug|x64.Build.0 = Debug|x64
{B5919129-6716-499D-9516-04EC34C86CDF}.Unicode Release Static|Win32.ActiveCfg = Release|Win32
{B5919129-6716-499D-9516-04EC34C86CDF}.Unicode Release Static|Win32.Build.0 = Release|Win32
{B5919129-6716-499D-9516-04EC34C86CDF}.Unicode Release Static|x64.ActiveCfg = Release|x64
{B5919129-6716-499D-9516-04EC34C86CDF}.Unicode Release Static|x64.Build.0 = Release|x64
{B5919129-6716-499D-9516-04EC34C86CDF}.Unicode Release|Win32.ActiveCfg = Release|Win32
{B5919129-6716-499D-9516-04EC34C86CDF}.Unicode Release|Win32.Build.0 = Release|Win32
{B5919129-6716-499D-9516-04EC34C86CDF}.Unicode Release|x64.ActiveCfg = Release|x64
Expand All @@ -87,12 +127,20 @@ Global
{E6EDE286-05E0-4396-B551-AB273111E967}..NET Debug|x64.ActiveCfg = Debug|Win32
{E6EDE286-05E0-4396-B551-AB273111E967}..NET Release|Win32.ActiveCfg = Release|Win32
{E6EDE286-05E0-4396-B551-AB273111E967}..NET Release|x64.ActiveCfg = Release|Win32
{E6EDE286-05E0-4396-B551-AB273111E967}.Debug Static|Win32.ActiveCfg = Debug|Win32
{E6EDE286-05E0-4396-B551-AB273111E967}.Debug Static|x64.ActiveCfg = Debug|Win32
{E6EDE286-05E0-4396-B551-AB273111E967}.Debug|Win32.ActiveCfg = Debug|Win32
{E6EDE286-05E0-4396-B551-AB273111E967}.Debug|x64.ActiveCfg = Debug|Win32
{E6EDE286-05E0-4396-B551-AB273111E967}.Release Static|Win32.ActiveCfg = Release|Win32
{E6EDE286-05E0-4396-B551-AB273111E967}.Release Static|x64.ActiveCfg = Release|Win32
{E6EDE286-05E0-4396-B551-AB273111E967}.Release|Win32.ActiveCfg = Release|Win32
{E6EDE286-05E0-4396-B551-AB273111E967}.Release|x64.ActiveCfg = Release|Win32
{E6EDE286-05E0-4396-B551-AB273111E967}.Unicode Debug Static|Win32.ActiveCfg = Debug|Win32
{E6EDE286-05E0-4396-B551-AB273111E967}.Unicode Debug Static|x64.ActiveCfg = Debug|Win32
{E6EDE286-05E0-4396-B551-AB273111E967}.Unicode Debug|Win32.ActiveCfg = Debug|Win32
{E6EDE286-05E0-4396-B551-AB273111E967}.Unicode Debug|x64.ActiveCfg = Debug|Win32
{E6EDE286-05E0-4396-B551-AB273111E967}.Unicode Release Static|Win32.ActiveCfg = Release|Win32
{E6EDE286-05E0-4396-B551-AB273111E967}.Unicode Release Static|x64.ActiveCfg = Release|Win32
{E6EDE286-05E0-4396-B551-AB273111E967}.Unicode Release|Win32.ActiveCfg = Release|Win32
{E6EDE286-05E0-4396-B551-AB273111E967}.Unicode Release|x64.ActiveCfg = Release|Win32
EndGlobalSection
Expand Down
4 changes: 4 additions & 0 deletions source/project_configuration.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<!--EnableUnitySupport Condition="'$(CI)'!=''">true</EnableUnitySupport-->
</PropertyGroup>

<PropertyGroup Condition="$(Configuration.Contains('Static'))" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
</PropertyGroup>

<PropertyGroup Condition="$(Configuration.Contains('Unicode'))" Label="Configuration">
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
Expand Down
32 changes: 32 additions & 0 deletions source/project_configurations.props
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug Static|Win32">
<Configuration>Debug Static</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug Static|x64">
<Configuration>Debug Static</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release Static|Win32">
<Configuration>Release Static</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release Static|x64">
<Configuration>Release Static</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Unicode Debug|Win32">
<Configuration>Unicode Debug</Configuration>
<Platform>Win32</Platform>
Expand All @@ -49,5 +65,21 @@
<Configuration>Unicode Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Unicode Debug Static|Win32">
<Configuration>Unicode Debug Static</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Unicode Debug Static|x64">
<Configuration>Unicode Debug Static</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Unicode Release Static|Win32">
<Configuration>Unicode Release Static</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Unicode Release Static|x64">
<Configuration>Unicode Release Static</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
</Project>

0 comments on commit 4f47a0d

Please sign in to comment.