Skip to content

Commit

Permalink
Start refactoring file organization
Browse files Browse the repository at this point in the history
  • Loading branch information
heyx3 committed Jan 7, 2025
1 parent e2e3688 commit 5f7a79c
Show file tree
Hide file tree
Showing 45 changed files with 190 additions and 194 deletions.
120 changes: 54 additions & 66 deletions WFC++.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,48 @@
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<None Include="WFC++\include\MemoryChecks.inl" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="WFC++\include\HelperClasses.h" />
<ClInclude Include="WFC++\include\Helpers\Array2D.hpp" />
<ClInclude Include="WFC++\include\Helpers\Array3D.hpp" />
<ClInclude Include="WFC++\include\Helpers\Array4D.hpp" />
<ClInclude Include="WFC++\include\Helpers\EnumFlags.h" />
<ClInclude Include="WFC++\include\Helpers\Vector2i.h" />
<ClInclude Include="WFC++\include\Helpers\Vector3i.h" />
<ClInclude Include="WFC++\include\Helpers\Vector4i.h" />
<ClInclude Include="WFC++\include\Helpers\WFCMath.h" />
<ClInclude Include="WFC++\include\Helpers\WFCppStreamPrinting.hpp" />
<ClInclude Include="WFC++\include\Helpers\xoshiro.hpp" />
<ClInclude Include="WFC++\include\Platform.h" />
<ClInclude Include="WFC++\include\Simple\InputData.h" />
<ClInclude Include="WFC++\include\Simple\Pattern.h" />
<ClInclude Include="WFC++\include\Simple\State.h" />
<ClInclude Include="WFC++\include\Tiled3D\Grid.h" />
<ClInclude Include="WFC++\include\Tiled3D\StandardRunner.h" />
<ClInclude Include="WFC++\include\Tiled3D\Tile.hpp" />
<ClInclude Include="WFC++\include\Tiled3D\TilePermutator.h" />
<ClInclude Include="WFC++\include\Tiled3D\Transform3D.h" />
<ClInclude Include="WFC++\include\Tiled\InputData.h" />
<ClInclude Include="WFC++\include\Tiled\State.h" />
<ClInclude Include="WFC++\include\Tiled\Tile.hpp" />
<ClInclude Include="WFC++\include\Tiled\TilePermutator.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="WFC++\src\Simple\InputData.cpp" />
<ClCompile Include="WFC++\src\Simple\Pattern.cpp" />
<ClCompile Include="WFC++\src\Simple\State.cpp" />
<ClCompile Include="WFC++\src\Tiled3D\Grid.cpp" />
<ClCompile Include="WFC++\src\Tiled3D\StandardRunner.cpp" />
<ClCompile Include="WFC++\src\Tiled3D\TilePermutator.cpp" />
<ClCompile Include="WFC++\src\Tiled3D\Transform3D.cpp" />
<ClCompile Include="WFC++\src\Tiled\InputData.cpp" />
<ClCompile Include="WFC++\src\Tiled\State.cpp" />
<ClCompile Include="WFC++\src\Tiled\TilePermutator.cpp" />
<ClCompile Include="WFC++\src\Vector2i.cpp" />
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{38A88B72-ACE0-400E-AC82-677C89622B69}</ProjectGuid>
<RootNamespace>WFC</RootNamespace>
Expand Down Expand Up @@ -72,21 +114,25 @@
<TargetExt>.dll</TargetExt>
<OutDir>$(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)Build\temp\$(ProjectName)\$(Platform)\$(Configuration)\</IntDir>
<IncludePath>$(SolutionDir)WFC++\include;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<TargetExt>.dll</TargetExt>
<OutDir>$(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)Build\temp\$(ProjectName)\$(Platform)\$(Configuration)\</IntDir>
<IncludePath>$(SolutionDir)WFC++\include;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<TargetExt>.dll</TargetExt>
<OutDir>$(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)Build\temp\$(ProjectName)\$(Platform)\$(Configuration)\</IntDir>
<IncludePath>$(SolutionDir)WFC++\include;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<TargetExt>.dll</TargetExt>
<OutDir>$(SolutionDir)Build\$(ProjectName)\$(Platform)\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)Build\temp\$(ProjectName)\$(Platform)\$(Configuration)\</IntDir>
<IncludePath>$(SolutionDir)WFC++\include;$(IncludePath)</IncludePath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
Expand All @@ -104,18 +150,10 @@ if exist "$(TargetDir)include" del /q "$(TargetDir)include"
mkdir "$(TargetDir)include"

REM Move headers to "include" directory
xcopy "$(ProjectDir)WFC++\*.h" "$(TargetDir)include" /sy
xcopy "$(ProjectDir)WFC++\*.hpp" "$(TargetDir)include" /sy

REM Move relevant Cpp files to Unreal Source directory
set UNREAL_WFC_DIR=$(SolutionDir)WFCunreal\Source\WfcppRuntime\Private\WFCpp
xcopy "$(ProjectDir)WFC++\*.cpp" "%UNREAL_WFC_DIR%\" /sy
del /q "%UNREAL_WFC_DIR%\Simple"
del /q "%UNREAL_WFC_DIR%\SWIG"
del /q "%UNREAL_WFC_DIR%\Tiled"</Command>
xcopy "$(ProjectDir)WFC++\include\*.*" "$(TargetDir)include" /sy</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy headers to build folder, and source to Unreal</Message>
<Message>Copy headers to build folder</Message>
</PostBuildEvent>
<PreBuildEvent>
<Command>
Expand All @@ -142,18 +180,10 @@ if exist "$(TargetDir)include" del /q "$(TargetDir)include"
mkdir "$(TargetDir)include"

REM Move headers to "include" directory
xcopy "$(ProjectDir)WFC++\*.h" "$(TargetDir)include" /sy
xcopy "$(ProjectDir)WFC++\*.hpp" "$(TargetDir)include" /sy

REM Move relevant Cpp files to Unreal Source directory
set UNREAL_WFC_DIR=$(SolutionDir)WFCunreal\Source\WfcppRuntime\Private\WFCpp
xcopy "$(ProjectDir)WFC++\*.cpp" "%UNREAL_WFC_DIR%\" /sy
del /q "%UNREAL_WFC_DIR%\Simple"
del /q "%UNREAL_WFC_DIR%\SWIG"
del /q "%UNREAL_WFC_DIR%\Tiled"</Command>
xcopy "$(ProjectDir)WFC++\include\*.*" "$(TargetDir)include" /sy</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy headers to build folder, and source to Unreal</Message>
<Message>Copy headers to build folder</Message>
</PostBuildEvent>
<PreBuildEvent>
<Command>
Expand Down Expand Up @@ -186,11 +216,10 @@ if exist "$(TargetDir)include" del /q "$(TargetDir)include"
mkdir "$(TargetDir)include"

REM Move headers to "include" directory
xcopy "$(ProjectDir)WFC++\*.h" "$(TargetDir)include" /sy
xcopy "$(ProjectDir)WFC++\*.hpp" "$(TargetDir)include" /sy</Command>
xcopy "$(ProjectDir)WFC++\include\*.*" "$(TargetDir)include" /sy</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy headers to build folder, and source to Unreal</Message>
<Message>Copy headers to build folder</Message>
</PostBuildEvent>
<PreBuildEvent>
<Command>
Expand Down Expand Up @@ -224,11 +253,10 @@ if exist "$(TargetDir)include" del /q "$(TargetDir)include"
mkdir "$(TargetDir)include"

REM Move headers to "include" directory
xcopy "$(ProjectDir)WFC++\*.h" "$(TargetDir)include" /sy
xcopy "$(ProjectDir)WFC++\*.hpp" "$(TargetDir)include" /sy</Command>
xcopy "$(ProjectDir)WFC++\include\*.*" "$(TargetDir)include" /sy</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy headers to build folder, and source to Unreal</Message>
<Message>Copy headers to build folder</Message>
</PostBuildEvent>
<PreBuildEvent>
<Command>
Expand All @@ -239,46 +267,6 @@ xcopy "$(ProjectDir)WFC++\*.hpp" "$(TargetDir)include" /sy</Command>
</Message>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="WFC++\Array2D.hpp" />
<ClInclude Include="WFC++\Array3D.hpp" />
<ClInclude Include="WFC++\Array4D.hpp" />
<ClInclude Include="WFC++\EnumFlags.h" />
<ClInclude Include="WFC++\HelperClasses.h" />
<ClInclude Include="WFC++\MemoryChecks.inl" />
<ClInclude Include="WFC++\Tiled3D\StandardRunner.h" />
<ClInclude Include="WFC++\WFCppStreamPrinting.hpp" />
<ClInclude Include="WFC++\Tiled3D\Grid.h" />
<ClInclude Include="WFC++\Tiled3D\Tile.hpp" />
<ClInclude Include="WFC++\Tiled3D\TilePermutator.h" />
<ClInclude Include="WFC++\Tiled3D\Transform3D.h" />
<ClInclude Include="WFC++\Vector4i.h" />
<ClInclude Include="WFC++\WFCMath.h" />
<ClInclude Include="WFC++\Platform.h" />
<ClInclude Include="WFC++\Simple\InputData.h" />
<ClInclude Include="WFC++\Simple\Pattern.h" />
<ClInclude Include="WFC++\Simple\State.h" />
<ClInclude Include="WFC++\Tiled\InputData.h" />
<ClInclude Include="WFC++\Tiled\Tile.hpp" />
<ClInclude Include="WFC++\Tiled\State.h" />
<ClInclude Include="WFC++\Tiled\TilePermutator.h" />
<ClInclude Include="WFC++\Vector2i.h" />
<ClInclude Include="WFC++\Vector3i.h" />
<ClInclude Include="WFC++\xoshiro.hpp" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="WFC++\HelperSrc\Vector2i.cpp" />
<ClCompile Include="WFC++\Simple\InputData.cpp" />
<ClCompile Include="WFC++\Simple\Pattern.cpp" />
<ClCompile Include="WFC++\Simple\State.cpp" />
<ClCompile Include="WFC++\Tiled3D\Grid.cpp" />
<ClCompile Include="WFC++\Tiled3D\StandardRunner.cpp" />
<ClCompile Include="WFC++\Tiled3D\TilePermutator.cpp" />
<ClCompile Include="WFC++\Tiled3D\Transform3D.cpp" />
<ClCompile Include="WFC++\Tiled\InputData.cpp" />
<ClCompile Include="WFC++\Tiled\State.cpp" />
<ClCompile Include="WFC++\Tiled\TilePermutator.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
Loading

0 comments on commit 5f7a79c

Please sign in to comment.