|
79 | 79 | <PrecompiledHeader>NotUsing</PrecompiledHeader>
|
80 | 80 | <WarningLevel>Level3</WarningLevel>
|
81 | 81 | <PreprocessorDefinitions>WINDOWS;DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
82 |
| - <AdditionalIncludeDirectories>src;..\SDL2\include;..\SDL2_image\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
| 82 | + <AdditionalIncludeDirectories>src;..\SDL2\include;..\SDL2_image\include;..\proj-BirdEngine\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
83 | 83 | <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
84 | 84 | <Optimization>Disabled</Optimization>
|
85 | 85 | <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
86 | 86 | <LanguageStandard>stdcpp14</LanguageStandard>
|
87 | 87 | <ExternalWarningLevel>Level3</ExternalWarningLevel>
|
88 | 88 | </ClCompile>
|
89 | 89 | <Link>
|
90 |
| - <SubSystem>Console</SubSystem> |
| 90 | + <SubSystem>Windows</SubSystem> |
91 | 91 | <GenerateDebugInformation>true</GenerateDebugInformation>
|
92 | 92 | <AdditionalDependencies>SDL2.lib;SDL2main.lib;SDL2_image.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
93 | 93 | <AdditionalLibraryDirectories>..\SDL2\lib\x64;..\SDL2_image\lib\x64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
94 | 94 | </Link>
|
| 95 | + <PostBuildEvent> |
| 96 | + <Command>IF EXIST "..\SDL2\lib\x64\SDL2.dll"\ (xcopy /Q /E /Y /I "..\SDL2\lib\x64\SDL2.dll" "..\bin\windows-x86_64\Debug\FlappyBird" > nul) ELSE (xcopy /Q /Y /I "..\SDL2\lib\x64\SDL2.dll" "..\bin\windows-x86_64\Debug\FlappyBird" > nul) |
| 97 | +IF EXIST "..\SDL2_image\lib\x64\SDL2_image.dll"\ (xcopy /Q /E /Y /I "..\SDL2_image\lib\x64\SDL2_image.dll" "..\bin\windows-x86_64\Debug\FlappyBird" > nul) ELSE (xcopy /Q /Y /I "..\SDL2_image\lib\x64\SDL2_image.dll" "..\bin\windows-x86_64\Debug\FlappyBird" > nul) |
| 98 | +IF NOT EXIST "..\bin\windows-x86_64\Debug\FlappyBird\assets" (mkdir "..\bin\windows-x86_64\Debug\FlappyBird\assets") |
| 99 | +xcopy /Q /E /Y /I "assets" "..\bin\windows-x86_64\Debug\FlappyBird\assets"</Command> |
| 100 | + </PostBuildEvent> |
95 | 101 | </ItemDefinitionGroup>
|
96 | 102 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
97 | 103 | <ClCompile>
|
98 | 104 | <PrecompiledHeader>NotUsing</PrecompiledHeader>
|
99 | 105 | <WarningLevel>Level3</WarningLevel>
|
100 | 106 | <PreprocessorDefinitions>WINDOWS;RELEASE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
101 |
| - <AdditionalIncludeDirectories>src;..\SDL2\include;..\SDL2_image\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
| 107 | + <AdditionalIncludeDirectories>src;..\SDL2\include;..\SDL2_image\include;..\proj-BirdEngine\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
102 | 108 | <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
103 | 109 | <Optimization>Full</Optimization>
|
104 | 110 | <FunctionLevelLinking>true</FunctionLevelLinking>
|
|
110 | 116 | <ExternalWarningLevel>Level3</ExternalWarningLevel>
|
111 | 117 | </ClCompile>
|
112 | 118 | <Link>
|
113 |
| - <SubSystem>Console</SubSystem> |
| 119 | + <SubSystem>Windows</SubSystem> |
114 | 120 | <GenerateDebugInformation>true</GenerateDebugInformation>
|
115 | 121 | <EnableCOMDATFolding>true</EnableCOMDATFolding>
|
116 | 122 | <OptimizeReferences>true</OptimizeReferences>
|
117 | 123 | <AdditionalDependencies>SDL2.lib;SDL2main.lib;SDL2_image.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
118 | 124 | <AdditionalLibraryDirectories>..\SDL2\lib\x64;..\SDL2_image\lib\x64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
119 | 125 | </Link>
|
| 126 | + <PostBuildEvent> |
| 127 | + <Command>IF EXIST "..\SDL2\lib\x64\SDL2.dll"\ (xcopy /Q /E /Y /I "..\SDL2\lib\x64\SDL2.dll" "..\bin\windows-x86_64\Release\FlappyBird" > nul) ELSE (xcopy /Q /Y /I "..\SDL2\lib\x64\SDL2.dll" "..\bin\windows-x86_64\Release\FlappyBird" > nul) |
| 128 | +IF EXIST "..\SDL2_image\lib\x64\SDL2_image.dll"\ (xcopy /Q /E /Y /I "..\SDL2_image\lib\x64\SDL2_image.dll" "..\bin\windows-x86_64\Release\FlappyBird" > nul) ELSE (xcopy /Q /Y /I "..\SDL2_image\lib\x64\SDL2_image.dll" "..\bin\windows-x86_64\Release\FlappyBird" > nul) |
| 129 | +IF NOT EXIST "..\bin\windows-x86_64\Release\FlappyBird\assets" (mkdir "..\bin\windows-x86_64\Release\FlappyBird\assets") |
| 130 | +xcopy /Q /E /Y /I "assets" "..\bin\windows-x86_64\Release\FlappyBird\assets"</Command> |
| 131 | + </PostBuildEvent> |
120 | 132 | </ItemDefinitionGroup>
|
121 | 133 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Dist|x64'">
|
122 | 134 | <ClCompile>
|
123 | 135 | <PrecompiledHeader>NotUsing</PrecompiledHeader>
|
124 | 136 | <WarningLevel>Level3</WarningLevel>
|
125 | 137 | <PreprocessorDefinitions>WINDOWS;DIST;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
126 |
| - <AdditionalIncludeDirectories>src;..\SDL2\include;..\SDL2_image\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
| 138 | + <AdditionalIncludeDirectories>src;..\SDL2\include;..\SDL2_image\include;..\proj-BirdEngine\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
127 | 139 | <DebugInformationFormat>None</DebugInformationFormat>
|
128 | 140 | <Optimization>Full</Optimization>
|
129 | 141 | <FunctionLevelLinking>true</FunctionLevelLinking>
|
|
135 | 147 | <ExternalWarningLevel>Level3</ExternalWarningLevel>
|
136 | 148 | </ClCompile>
|
137 | 149 | <Link>
|
138 |
| - <SubSystem>Console</SubSystem> |
| 150 | + <SubSystem>Windows</SubSystem> |
139 | 151 | <GenerateDebugInformation>false</GenerateDebugInformation>
|
140 | 152 | <EnableCOMDATFolding>true</EnableCOMDATFolding>
|
141 | 153 | <OptimizeReferences>true</OptimizeReferences>
|
142 | 154 | <AdditionalDependencies>SDL2.lib;SDL2main.lib;SDL2_image.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
143 | 155 | <AdditionalLibraryDirectories>..\SDL2\lib\x64;..\SDL2_image\lib\x64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
144 | 156 | </Link>
|
| 157 | + <PostBuildEvent> |
| 158 | + <Command>IF EXIST "..\SDL2\lib\x64\SDL2.dll"\ (xcopy /Q /E /Y /I "..\SDL2\lib\x64\SDL2.dll" "..\bin\windows-x86_64\Dist\FlappyBird" > nul) ELSE (xcopy /Q /Y /I "..\SDL2\lib\x64\SDL2.dll" "..\bin\windows-x86_64\Dist\FlappyBird" > nul) |
| 159 | +IF EXIST "..\SDL2_image\lib\x64\SDL2_image.dll"\ (xcopy /Q /E /Y /I "..\SDL2_image\lib\x64\SDL2_image.dll" "..\bin\windows-x86_64\Dist\FlappyBird" > nul) ELSE (xcopy /Q /Y /I "..\SDL2_image\lib\x64\SDL2_image.dll" "..\bin\windows-x86_64\Dist\FlappyBird" > nul) |
| 160 | +IF NOT EXIST "..\bin\windows-x86_64\Dist\FlappyBird\assets" (mkdir "..\bin\windows-x86_64\Dist\FlappyBird\assets") |
| 161 | +xcopy /Q /E /Y /I "assets" "..\bin\windows-x86_64\Dist\FlappyBird\assets"</Command> |
| 162 | + </PostBuildEvent> |
145 | 163 | </ItemDefinitionGroup>
|
146 | 164 | <ItemGroup>
|
147 |
| - <ClInclude Include="src\core\game.h" /> |
148 |
| - <ClInclude Include="src\core\game_state.h" /> |
149 |
| - <ClInclude Include="src\core\gameplay_base.h" /> |
150 | 165 | <ClInclude Include="src\entities\flappy_bird.h" />
|
151 | 166 | <ClInclude Include="src\entities\pipe.h" />
|
| 167 | + <ClInclude Include="src\game\game.h" /> |
| 168 | + <ClInclude Include="src\game\game_state.h" /> |
| 169 | + <ClInclude Include="src\game\gameplay_base.h" /> |
152 | 170 | <ClInclude Include="src\math\vector2.h" />
|
153 | 171 | <ClInclude Include="src\res_manager\texture_manager.h" />
|
154 | 172 | <ClInclude Include="src\sdl2imgui\imconfig.h" />
|
|
170 | 188 | <ClInclude Include="src\utils\class_type_check.h" />
|
171 | 189 | </ItemGroup>
|
172 | 190 | <ItemGroup>
|
173 |
| - <ClCompile Include="src\core\game.cpp" /> |
174 |
| - <ClCompile Include="src\core\game_state.cpp" /> |
175 |
| - <ClCompile Include="src\core\gameplay_base.cpp" /> |
176 | 191 | <ClCompile Include="src\entities\flappy_bird.cpp" />
|
177 | 192 | <ClCompile Include="src\entities\pipe.cpp" />
|
| 193 | + <ClCompile Include="src\game\game.cpp" /> |
| 194 | + <ClCompile Include="src\game\game_state.cpp" /> |
| 195 | + <ClCompile Include="src\game\gameplay_base.cpp" /> |
178 | 196 | <ClCompile Include="src\main.cpp" />
|
179 | 197 | <ClCompile Include="src\math\vector2.cpp" />
|
180 | 198 | <ClCompile Include="src\res_manager\texture_manager.cpp" />
|
|
195 | 213 | <ClCompile Include="src\system_component\updatable.cpp" />
|
196 | 214 | <ClCompile Include="src\utils\class_type_check.cpp" />
|
197 | 215 | </ItemGroup>
|
| 216 | + <ItemGroup> |
| 217 | + <ProjectReference Include="..\proj-BirdEngine\BirdEngine.vcxproj"> |
| 218 | + <Project>{DCED76F7-C8A5-B844-31AD-91A01D845335}</Project> |
| 219 | + </ProjectReference> |
| 220 | + </ItemGroup> |
198 | 221 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
199 | 222 | <ImportGroup Label="ExtensionTargets">
|
200 | 223 | </ImportGroup>
|
|
0 commit comments