Skip to content

Commit 5201e53

Browse files
committed
Create separate VS project for editor
1 parent bb70140 commit 5201e53

5 files changed

Lines changed: 236 additions & 1 deletion

File tree

LeafEditor/LeafEditor.vcxproj

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Debug|x64">
13+
<Configuration>Debug</Configuration>
14+
<Platform>x64</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
</ItemGroup>
21+
<ItemGroup>
22+
<ClCompile Include="main.cpp" />
23+
</ItemGroup>
24+
<PropertyGroup Label="Globals">
25+
<VCProjectVersion>17.0</VCProjectVersion>
26+
<Keyword>Win32Proj</Keyword>
27+
<ProjectGuid>{070e83b7-2b3f-4f65-93bc-a2ce16f6431b}</ProjectGuid>
28+
<RootNamespace>LeafEditor</RootNamespace>
29+
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
30+
</PropertyGroup>
31+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
32+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
33+
<ConfigurationType>Application</ConfigurationType>
34+
<UseDebugLibraries>true</UseDebugLibraries>
35+
<PlatformToolset>v143</PlatformToolset>
36+
<CharacterSet>Unicode</CharacterSet>
37+
</PropertyGroup>
38+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
39+
<ConfigurationType>Application</ConfigurationType>
40+
<UseDebugLibraries>false</UseDebugLibraries>
41+
<PlatformToolset>v143</PlatformToolset>
42+
<WholeProgramOptimization>true</WholeProgramOptimization>
43+
<CharacterSet>Unicode</CharacterSet>
44+
</PropertyGroup>
45+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
46+
<ConfigurationType>Application</ConfigurationType>
47+
<UseDebugLibraries>true</UseDebugLibraries>
48+
<PlatformToolset>v143</PlatformToolset>
49+
<CharacterSet>Unicode</CharacterSet>
50+
</PropertyGroup>
51+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
52+
<ConfigurationType>Application</ConfigurationType>
53+
<UseDebugLibraries>false</UseDebugLibraries>
54+
<PlatformToolset>v143</PlatformToolset>
55+
<WholeProgramOptimization>true</WholeProgramOptimization>
56+
<CharacterSet>Unicode</CharacterSet>
57+
</PropertyGroup>
58+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
59+
<ImportGroup Label="ExtensionSettings">
60+
</ImportGroup>
61+
<ImportGroup Label="Shared">
62+
</ImportGroup>
63+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
64+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
65+
</ImportGroup>
66+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
67+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
68+
</ImportGroup>
69+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
70+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
71+
</ImportGroup>
72+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
73+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
74+
</ImportGroup>
75+
<PropertyGroup Label="UserMacros" />
76+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
77+
<IncludePath>$(SolutionDir)include;$(IncludePath)</IncludePath>
78+
<LibraryPath>$(SolutionDir)lib\SFML\Debug\;$(LibraryPath)</LibraryPath>
79+
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
80+
<IntDir>$(SolutionDir)build\$(Configuration)\obj\</IntDir>
81+
</PropertyGroup>
82+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
83+
<IncludePath>$(SolutionDir)include;$(IncludePath)</IncludePath>
84+
<LibraryPath>$(SolutionDir)lib\SFML\Release\;$(LibraryPath)</LibraryPath>
85+
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
86+
<IntDir>$(SolutionDir)build\$(Configuration)\obj\</IntDir>
87+
<TargetName>Editor</TargetName>
88+
</PropertyGroup>
89+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
90+
<IncludePath>$(SolutionDir)include;$(IncludePath)</IncludePath>
91+
<LibraryPath>$(SolutionDir)lib\SFML\Debug\;$(LibraryPath)</LibraryPath>
92+
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
93+
<IntDir>$(SolutionDir)build\$(Configuration)\obj\</IntDir>
94+
</PropertyGroup>
95+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
96+
<IncludePath>$(SolutionDir)include;$(IncludePath)</IncludePath>
97+
<LibraryPath>$(SolutionDir)lib\SFML\Release\;$(LibraryPath)</LibraryPath>
98+
<OutDir>$(SolutionDir)build\$(Configuration)\</OutDir>
99+
<IntDir>$(SolutionDir)build\$(Configuration)\obj\</IntDir>
100+
<TargetName>Editor</TargetName>
101+
</PropertyGroup>
102+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
103+
<ClCompile>
104+
<WarningLevel>Level3</WarningLevel>
105+
<SDLCheck>true</SDLCheck>
106+
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
107+
<ConformanceMode>true</ConformanceMode>
108+
</ClCompile>
109+
<Link>
110+
<SubSystem>Console</SubSystem>
111+
<GenerateDebugInformation>true</GenerateDebugInformation>
112+
<AdditionalDependencies>sfml-graphics-d.lib;sfml-window-d.lib;sfml-system-d.lib;%(AdditionalDependencies)</AdditionalDependencies>
113+
</Link>
114+
<PostBuildEvent>
115+
<Command>xcopy "$(SolutionDir)\bin\SFML\Debug\*.dll" "$(OutDir)" /Y</Command>
116+
</PostBuildEvent>
117+
</ItemDefinitionGroup>
118+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
119+
<ClCompile>
120+
<WarningLevel>Level3</WarningLevel>
121+
<FunctionLevelLinking>true</FunctionLevelLinking>
122+
<IntrinsicFunctions>true</IntrinsicFunctions>
123+
<SDLCheck>true</SDLCheck>
124+
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
125+
<ConformanceMode>true</ConformanceMode>
126+
</ClCompile>
127+
<Link>
128+
<SubSystem>Console</SubSystem>
129+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
130+
<OptimizeReferences>true</OptimizeReferences>
131+
<GenerateDebugInformation>true</GenerateDebugInformation>
132+
<AdditionalDependencies>sfml-graphics.lib;sfml-window.lib;sfml-system.lib;%(AdditionalDependencies)</AdditionalDependencies>
133+
</Link>
134+
<PostBuildEvent>
135+
<Command>xcopy "$(SolutionDir)\bin\SFML\Release\*.dll" "$(OutDir)" /Y</Command>
136+
</PostBuildEvent>
137+
</ItemDefinitionGroup>
138+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
139+
<ClCompile>
140+
<WarningLevel>Level3</WarningLevel>
141+
<SDLCheck>true</SDLCheck>
142+
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
143+
<ConformanceMode>true</ConformanceMode>
144+
</ClCompile>
145+
<Link>
146+
<SubSystem>Console</SubSystem>
147+
<GenerateDebugInformation>true</GenerateDebugInformation>
148+
<AdditionalDependencies>sfml-graphics-d.lib;sfml-window-d.lib;sfml-system-d.lib;%(AdditionalDependencies)</AdditionalDependencies>
149+
</Link>
150+
<PostBuildEvent>
151+
<Command>xcopy "$(SolutionDir)\bin\SFML\Debug\*.dll" "$(OutDir)" /Y</Command>
152+
</PostBuildEvent>
153+
</ItemDefinitionGroup>
154+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
155+
<ClCompile>
156+
<WarningLevel>Level3</WarningLevel>
157+
<FunctionLevelLinking>true</FunctionLevelLinking>
158+
<IntrinsicFunctions>true</IntrinsicFunctions>
159+
<SDLCheck>true</SDLCheck>
160+
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
161+
<ConformanceMode>true</ConformanceMode>
162+
</ClCompile>
163+
<Link>
164+
<SubSystem>Console</SubSystem>
165+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
166+
<OptimizeReferences>true</OptimizeReferences>
167+
<GenerateDebugInformation>true</GenerateDebugInformation>
168+
<AdditionalDependencies>sfml-graphics.lib;sfml-window.lib;sfml-system.lib;%(AdditionalDependencies)</AdditionalDependencies>
169+
</Link>
170+
<PostBuildEvent>
171+
<Command>xcopy "$(SolutionDir)\bin\SFML\Release\*.dll" "$(OutDir)" /Y</Command>
172+
</PostBuildEvent>
173+
</ItemDefinitionGroup>
174+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
175+
<ImportGroup Label="ExtensionTargets">
176+
</ImportGroup>
177+
</Project>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="Source Files">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="Header Files">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="Resource Files">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
</ItemGroup>
17+
<ItemGroup>
18+
<ClCompile Include="main.cpp">
19+
<Filter>Source Files</Filter>
20+
</ClCompile>
21+
</ItemGroup>
22+
</Project>

LeafEditor/main.cpp

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#include "SFML/Graphics.hpp"
2+
#include "ImGui/imgui.h"
3+
4+
int main()
5+
{
6+
sf::RenderWindow window(sf::VideoMode(800, 800), "EDITOR");
7+
sf::CircleShape shape(200.f, 100);
8+
shape.setFillColor(sf::Color(204, 77, 5)); // Color circle
9+
shape.setPosition(200, 200); // Center circle
10+
11+
while (window.isOpen())
12+
{
13+
sf::Event event;
14+
while (window.pollEvent(event))
15+
{
16+
if (event.type == sf::Event::Closed)
17+
window.close();
18+
}
19+
20+
window.clear(sf::Color(18, 33, 43)); // Color background
21+
window.draw(shape);
22+
window.display();
23+
}
24+
25+
return 0;
26+
}

LeafEngine.sln

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ VisualStudioVersion = 17.11.35312.102
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LeafEngine", "LeafEngine\LeafEngine.vcxproj", "{0BBB6B10-4D65-4872-AF71-0A7DD83A1EDC}"
77
EndProject
8+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LeafEditor", "LeafEditor\LeafEditor.vcxproj", "{070E83B7-2B3F-4F65-93BC-A2CE16F6431B}"
9+
EndProject
810
Global
911
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1012
Debug|x64 = Debug|x64
@@ -21,6 +23,14 @@ Global
2123
{0BBB6B10-4D65-4872-AF71-0A7DD83A1EDC}.Release|x64.Build.0 = Release|x64
2224
{0BBB6B10-4D65-4872-AF71-0A7DD83A1EDC}.Release|x86.ActiveCfg = Release|Win32
2325
{0BBB6B10-4D65-4872-AF71-0A7DD83A1EDC}.Release|x86.Build.0 = Release|Win32
26+
{070E83B7-2B3F-4F65-93BC-A2CE16F6431B}.Debug|x64.ActiveCfg = Debug|x64
27+
{070E83B7-2B3F-4F65-93BC-A2CE16F6431B}.Debug|x64.Build.0 = Debug|x64
28+
{070E83B7-2B3F-4F65-93BC-A2CE16F6431B}.Debug|x86.ActiveCfg = Debug|Win32
29+
{070E83B7-2B3F-4F65-93BC-A2CE16F6431B}.Debug|x86.Build.0 = Debug|Win32
30+
{070E83B7-2B3F-4F65-93BC-A2CE16F6431B}.Release|x64.ActiveCfg = Release|x64
31+
{070E83B7-2B3F-4F65-93BC-A2CE16F6431B}.Release|x64.Build.0 = Release|x64
32+
{070E83B7-2B3F-4F65-93BC-A2CE16F6431B}.Release|x86.ActiveCfg = Release|Win32
33+
{070E83B7-2B3F-4F65-93BC-A2CE16F6431B}.Release|x86.Build.0 = Release|Win32
2434
EndGlobalSection
2535
GlobalSection(SolutionProperties) = preSolution
2636
HideSolutionNode = FALSE

LeafEngine/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
int main()
55
{
6-
sf::RenderWindow window(sf::VideoMode(800, 800), "Window Title");
6+
sf::RenderWindow window(sf::VideoMode(800, 800), "ENGINE");
77
sf::CircleShape shape(200.f, 100);
88
shape.setFillColor(sf::Color(204, 77, 5)); // Color circle
99
shape.setPosition(200, 200); // Center circle

0 commit comments

Comments
 (0)