Visual Studio: Include CCIcon.rc by default, so that executables compiled using Visual Studio have an icon

This commit is contained in:
UnknownShadow200 2023-03-26 00:18:13 +11:00
parent 3783380e1a
commit bf52adf76c
3 changed files with 10 additions and 2 deletions

View File

@ -178,7 +178,7 @@ TODO more detailed when I have some more time...
#### Setup #### Setup
1) Compile the game, see `Cross compiling for windows` in main readme 1) Compile the game, see `Compiling - Windows > using Visual Studio` in main readme
2) Find the `ClassiCube.lib` that was generated when compiling the game. Usually it is in either `src\x64\Debug` or `src\x86\Debug`. 2) Find the `ClassiCube.lib` that was generated when compiling the game. Usually it is in either `src\x64\Debug` or `src\x86\Debug`.
3) Add a new `Empty Project` to the ClassiCube solution, then add the plugin .c files to it 3) Add a new `Empty Project` to the ClassiCube solution, then add the plugin .c files to it
@ -188,7 +188,7 @@ Note: If the plugin provides a .vcxproj file, you can skip step 2 and just open
The simplest way of linking to the `.lib` file is simply adding the following code to one of the plugin's `.c` files The simplest way of linking to the `.lib` file is simply adding the following code to one of the plugin's `.c` files
`C ```C
#ifdef _MSC_VER #ifdef _MSC_VER
#ifdef _WIN64 #ifdef _WIN64
#pragma comment(lib, "[GAME SRC FOLDER]/x64/Debug/ClassiCube.lib") #pragma comment(lib, "[GAME SRC FOLDER]/x64/Debug/ClassiCube.lib")

View File

@ -529,6 +529,9 @@
<ClCompile Include="_truetype.c" /> <ClCompile Include="_truetype.c" />
<ClCompile Include="_type1.c" /> <ClCompile Include="_type1.c" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\misc\CCicon.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">
</ImportGroup> </ImportGroup>

View File

@ -591,4 +591,9 @@
<Filter>Source Files\Game</Filter> <Filter>Source Files\Game</Filter>
</ClCompile> </ClCompile>
</ItemGroup> </ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\misc\CCicon.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
</Project> </Project>