From 94d110edd56a4d2b871871bfe226c119d6f35d43 Mon Sep 17 00:00:00 2001
From: Susko3 <[EMAIL REDACTED]>
Date: Tue, 29 Oct 2024 21:19:28 +0000
Subject: [PATCH] Specify C source file in example VC projects
---
.../01-simple-playback/01-simple-playback.vcxproj | 2 +-
.../02-simple-playback-callback.vcxproj | 2 +-
.../examples/audio/03-load-wav/03-load-wav.vcxproj | 2 +-
.../01-read-and-draw/01-read-and-draw.vcxproj | 2 +-
VisualC/examples/game/01-snake/01-snake.vcxproj | 2 +-
.../game/02-woodeneye-008/02-woodeneye-008.vcxproj | 2 +-
.../03-infinite-monkeys.vcxproj | 2 +-
VisualC/examples/generate.py | 14 +++++++++++---
.../pen/01-drawing-lines/01-drawing-lines.vcxproj | 2 +-
.../examples/renderer/01-clear/01-clear.vcxproj | 2 +-
.../renderer/02-primitives/02-primitives.vcxproj | 2 +-
.../examples/renderer/03-lines/03-lines.vcxproj | 2 +-
.../examples/renderer/04-points/04-points.vcxproj | 2 +-
.../renderer/05-rectangles/05-rectangles.vcxproj | 2 +-
.../renderer/06-textures/06-textures.vcxproj | 2 +-
.../07-streaming-textures.vcxproj | 2 +-
.../08-rotating-textures.vcxproj | 2 +-
.../09-scaling-textures.vcxproj | 2 +-
.../renderer/10-geometry/10-geometry.vcxproj | 2 +-
.../renderer/11-color-mods/11-color-mods.vcxproj | 2 +-
.../renderer/14-viewport/14-viewport.vcxproj | 2 +-
.../renderer/15-cliprect/15-cliprect.vcxproj | 2 +-
.../renderer/17-read-pixels/17-read-pixels.vcxproj | 2 +-
.../renderer/18-debug-text/18-debug-text.vcxproj | 2 +-
24 files changed, 34 insertions(+), 26 deletions(-)
diff --git a/VisualC/examples/audio/01-simple-playback/01-simple-playback.vcxproj b/VisualC/examples/audio/01-simple-playback/01-simple-playback.vcxproj
index cf428b12708a6..de4a67cee1f92 100644
--- a/VisualC/examples/audio/01-simple-playback/01-simple-playback.vcxproj
+++ b/VisualC/examples/audio/01-simple-playback/01-simple-playback.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\audio\01-simple-playback\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\audio\01-simple-playback\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\audio\01-simple-playback\simple-playback.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
\ No newline at end of file
diff --git a/VisualC/examples/audio/02-simple-playback-callback/02-simple-playback-callback.vcxproj b/VisualC/examples/audio/02-simple-playback-callback/02-simple-playback-callback.vcxproj
index e1e19126f2aea..7140c331ec480 100644
--- a/VisualC/examples/audio/02-simple-playback-callback/02-simple-playback-callback.vcxproj
+++ b/VisualC/examples/audio/02-simple-playback-callback/02-simple-playback-callback.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\audio\02-simple-playback-callback\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\audio\02-simple-playback-callback\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\audio\02-simple-playback-callback\simple-playback-callback.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
\ No newline at end of file
diff --git a/VisualC/examples/audio/03-load-wav/03-load-wav.vcxproj b/VisualC/examples/audio/03-load-wav/03-load-wav.vcxproj
index 8da33130ad171..356cb6e2fc2fc 100644
--- a/VisualC/examples/audio/03-load-wav/03-load-wav.vcxproj
+++ b/VisualC/examples/audio/03-load-wav/03-load-wav.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\audio\03-load-wav\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\audio\03-load-wav\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\audio\03-load-wav\load-wav.c" />
<Content Include="$(SolutionDir)\..\test\sample.wav" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
diff --git a/VisualC/examples/camera/01-read-and-draw/01-read-and-draw.vcxproj b/VisualC/examples/camera/01-read-and-draw/01-read-and-draw.vcxproj
index 5dcbfef4c3224..c143bcec576b8 100644
--- a/VisualC/examples/camera/01-read-and-draw/01-read-and-draw.vcxproj
+++ b/VisualC/examples/camera/01-read-and-draw/01-read-and-draw.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\camera\01-read-and-draw\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\camera\01-read-and-draw\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\camera\01-read-and-draw\read-and-draw.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
\ No newline at end of file
diff --git a/VisualC/examples/game/01-snake/01-snake.vcxproj b/VisualC/examples/game/01-snake/01-snake.vcxproj
index c83c670fecd0c..d9c0d862d2190 100644
--- a/VisualC/examples/game/01-snake/01-snake.vcxproj
+++ b/VisualC/examples/game/01-snake/01-snake.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\game\01-snake\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\game\01-snake\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\game\01-snake\snake.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
\ No newline at end of file
diff --git a/VisualC/examples/game/02-woodeneye-008/02-woodeneye-008.vcxproj b/VisualC/examples/game/02-woodeneye-008/02-woodeneye-008.vcxproj
index 5bf3df2a0cc9d..da89312614d32 100644
--- a/VisualC/examples/game/02-woodeneye-008/02-woodeneye-008.vcxproj
+++ b/VisualC/examples/game/02-woodeneye-008/02-woodeneye-008.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\game\02-woodeneye-008\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\game\02-woodeneye-008\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\game\02-woodeneye-008\woodeneye-008.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
\ No newline at end of file
diff --git a/VisualC/examples/game/03-infinite-monkeys/03-infinite-monkeys.vcxproj b/VisualC/examples/game/03-infinite-monkeys/03-infinite-monkeys.vcxproj
index 9535db263b2c3..58e3c81771762 100644
--- a/VisualC/examples/game/03-infinite-monkeys/03-infinite-monkeys.vcxproj
+++ b/VisualC/examples/game/03-infinite-monkeys/03-infinite-monkeys.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\game\03-infinite-monkeys\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\game\03-infinite-monkeys\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\game\03-infinite-monkeys\infinite-monkeys.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
\ No newline at end of file
diff --git a/VisualC/examples/generate.py b/VisualC/examples/generate.py
index 85b249121a390..e06110e4b2a11 100644
--- a/VisualC/examples/generate.py
+++ b/VisualC/examples/generate.py
@@ -4,7 +4,8 @@
REPOSITORY_ROOT = pathlib.Path(__file__).parent.parent.parent
-def generate(category, example_name):
+
+def generate(category, example_name, c_source_file):
guid = str(uuid.uuid4()).upper()
text = f"""
<?xml version="1.0" encoding="utf-8"?>
@@ -16,7 +17,7 @@ def generate(category, example_name):
<Import Project="$(VCTargetsPath)\\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\\..\\examples\\{category}\\{example_name}\\README.txt" />
- <ClCompile Include="$(SolutionDir)\\..\\examples\\{category}\\{example_name}\\*.c" />
+ <ClCompile Include="$(SolutionDir)\\..\\examples\\{category}\\{example_name}\\{c_source_file}" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\\Microsoft.Cpp.targets" />
</Project>
@@ -34,12 +35,19 @@ def generate(category, example_name):
f.write(text)
+def get_c_source_filename(example_dir: pathlib.Path):
+ """Gets the one and only C source file name in the directory of the example."""
+ c_files = [f.name for f in example_dir.iterdir() if f.name.endswith(".c")]
+ assert len(c_files) == 1
+ return c_files[0]
+
+
def main():
path = REPOSITORY_ROOT / "examples"
for category in path.iterdir():
if category.is_dir():
for example in category.iterdir():
- generate(category.name, example.name)
+ generate(category.name, example.name, get_c_source_filename(example))
if __name__ == "__main__":
diff --git a/VisualC/examples/pen/01-drawing-lines/01-drawing-lines.vcxproj b/VisualC/examples/pen/01-drawing-lines/01-drawing-lines.vcxproj
index 9174268e81772..64025bb77ab67 100644
--- a/VisualC/examples/pen/01-drawing-lines/01-drawing-lines.vcxproj
+++ b/VisualC/examples/pen/01-drawing-lines/01-drawing-lines.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\pen\01-drawing-lines\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\pen\01-drawing-lines\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\pen\01-drawing-lines\drawing-lines.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
\ No newline at end of file
diff --git a/VisualC/examples/renderer/01-clear/01-clear.vcxproj b/VisualC/examples/renderer/01-clear/01-clear.vcxproj
index 562f7f35835ab..e55d8df355d3d 100644
--- a/VisualC/examples/renderer/01-clear/01-clear.vcxproj
+++ b/VisualC/examples/renderer/01-clear/01-clear.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\renderer\01-clear\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\renderer\01-clear\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\renderer\01-clear\clear.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
\ No newline at end of file
diff --git a/VisualC/examples/renderer/02-primitives/02-primitives.vcxproj b/VisualC/examples/renderer/02-primitives/02-primitives.vcxproj
index d4ed14ba5a2a9..525bba761663e 100644
--- a/VisualC/examples/renderer/02-primitives/02-primitives.vcxproj
+++ b/VisualC/examples/renderer/02-primitives/02-primitives.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\renderer\02-primitives\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\renderer\02-primitives\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\renderer\02-primitives\primitives.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
\ No newline at end of file
diff --git a/VisualC/examples/renderer/03-lines/03-lines.vcxproj b/VisualC/examples/renderer/03-lines/03-lines.vcxproj
index 01a7809d43620..4b40b7e28b600 100644
--- a/VisualC/examples/renderer/03-lines/03-lines.vcxproj
+++ b/VisualC/examples/renderer/03-lines/03-lines.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\renderer\03-lines\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\renderer\03-lines\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\renderer\03-lines\lines.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
\ No newline at end of file
diff --git a/VisualC/examples/renderer/04-points/04-points.vcxproj b/VisualC/examples/renderer/04-points/04-points.vcxproj
index 0796dfdefca2d..0c8fa22f5694b 100644
--- a/VisualC/examples/renderer/04-points/04-points.vcxproj
+++ b/VisualC/examples/renderer/04-points/04-points.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\renderer\04-points\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\renderer\04-points\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\renderer\04-points\points.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
\ No newline at end of file
diff --git a/VisualC/examples/renderer/05-rectangles/05-rectangles.vcxproj b/VisualC/examples/renderer/05-rectangles/05-rectangles.vcxproj
index d9f6d795e3447..8d4b33b5c2c37 100644
--- a/VisualC/examples/renderer/05-rectangles/05-rectangles.vcxproj
+++ b/VisualC/examples/renderer/05-rectangles/05-rectangles.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\renderer\05-rectangles\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\renderer\05-rectangles\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\renderer\05-rectangles\rectangles.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
\ No newline at end of file
diff --git a/VisualC/examples/renderer/06-textures/06-textures.vcxproj b/VisualC/examples/renderer/06-textures/06-textures.vcxproj
index 8c6595111c912..d99b62c0609c8 100644
--- a/VisualC/examples/renderer/06-textures/06-textures.vcxproj
+++ b/VisualC/examples/renderer/06-textures/06-textures.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\renderer\06-textures\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\renderer\06-textures\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\renderer\06-textures\textures.c" />
<Content Include="$(SolutionDir)\..\test\sample.bmp" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
diff --git a/VisualC/examples/renderer/07-streaming-textures/07-streaming-textures.vcxproj b/VisualC/examples/renderer/07-streaming-textures/07-streaming-textures.vcxproj
index 6affa1cd180e0..0830c4fbbeb79 100644
--- a/VisualC/examples/renderer/07-streaming-textures/07-streaming-textures.vcxproj
+++ b/VisualC/examples/renderer/07-streaming-textures/07-streaming-textures.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\renderer\07-streaming-textures\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\renderer\07-streaming-textures\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\renderer\07-streaming-textures\streaming-textures.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
\ No newline at end of file
diff --git a/VisualC/examples/renderer/08-rotating-textures/08-rotating-textures.vcxproj b/VisualC/examples/renderer/08-rotating-textures/08-rotating-textures.vcxproj
index 90833c64aef97..5e14c6d0932d2 100644
--- a/VisualC/examples/renderer/08-rotating-textures/08-rotating-textures.vcxproj
+++ b/VisualC/examples/renderer/08-rotating-textures/08-rotating-textures.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\renderer\08-rotating-textures\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\renderer\08-rotating-textures\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\renderer\08-rotating-textures\rotating-textures.c" />
<Content Include="$(SolutionDir)\..\test\sample.bmp" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
diff --git a/VisualC/examples/renderer/09-scaling-textures/09-scaling-textures.vcxproj b/VisualC/examples/renderer/09-scaling-textures/09-scaling-textures.vcxproj
index 4d97ffc797859..ada32f70009cd 100644
--- a/VisualC/examples/renderer/09-scaling-textures/09-scaling-textures.vcxproj
+++ b/VisualC/examples/renderer/09-scaling-textures/09-scaling-textures.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\renderer\09-scaling-textures\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\renderer\09-scaling-textures\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\renderer\09-scaling-textures\scaling-textures.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
\ No newline at end of file
diff --git a/VisualC/examples/renderer/10-geometry/10-geometry.vcxproj b/VisualC/examples/renderer/10-geometry/10-geometry.vcxproj
index f551958a3f5d4..6013514fe37b3 100644
--- a/VisualC/examples/renderer/10-geometry/10-geometry.vcxproj
+++ b/VisualC/examples/renderer/10-geometry/10-geometry.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\renderer\10-geometry\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\renderer\10-geometry\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\renderer\10-geometry\geometry.c" />
<Content Include="$(SolutionDir)\..\test\sample.bmp" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
diff --git a/VisualC/examples/renderer/11-color-mods/11-color-mods.vcxproj b/VisualC/examples/renderer/11-color-mods/11-color-mods.vcxproj
index 766f6550c17fb..c0af3e32dfb3b 100644
--- a/VisualC/examples/renderer/11-color-mods/11-color-mods.vcxproj
+++ b/VisualC/examples/renderer/11-color-mods/11-color-mods.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\renderer\11-color-mods\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\renderer\11-color-mods\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\renderer\11-color-mods\color-mods.c" />
<Content Include="$(SolutionDir)\..\test\sample.bmp" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
diff --git a/VisualC/examples/renderer/14-viewport/14-viewport.vcxproj b/VisualC/examples/renderer/14-viewport/14-viewport.vcxproj
index c15c28075ddb5..1ebbda55f5482 100644
--- a/VisualC/examples/renderer/14-viewport/14-viewport.vcxproj
+++ b/VisualC/examples/renderer/14-viewport/14-viewport.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\renderer\14-viewport\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\renderer\14-viewport\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\renderer\14-viewport\viewport.c" />
<Content Include="$(SolutionDir)\..\test\sample.bmp" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
diff --git a/VisualC/examples/renderer/15-cliprect/15-cliprect.vcxproj b/VisualC/examples/renderer/15-cliprect/15-cliprect.vcxproj
index 6f8ce5f528365..dbb7ca670a0b1 100644
--- a/VisualC/examples/renderer/15-cliprect/15-cliprect.vcxproj
+++ b/VisualC/examples/renderer/15-cliprect/15-cliprect.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\renderer\15-cliprect\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\renderer\15-cliprect\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\renderer\15-cliprect\cliprect.c" />
<Content Include="$(SolutionDir)\..\test\sample.bmp" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
diff --git a/VisualC/examples/renderer/17-read-pixels/17-read-pixels.vcxproj b/VisualC/examples/renderer/17-read-pixels/17-read-pixels.vcxproj
index 60b599e1c8f38..674462e8e421f 100644
--- a/VisualC/examples/renderer/17-read-pixels/17-read-pixels.vcxproj
+++ b/VisualC/examples/renderer/17-read-pixels/17-read-pixels.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\renderer\17-read-pixels\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\renderer\17-read-pixels\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\renderer\17-read-pixels\read-pixels.c" />
<Content Include="$(SolutionDir)\..\test\sample.bmp" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
diff --git a/VisualC/examples/renderer/18-debug-text/18-debug-text.vcxproj b/VisualC/examples/renderer/18-debug-text/18-debug-text.vcxproj
index 05c964d4d1ce6..98f11985e9b67 100644
--- a/VisualC/examples/renderer/18-debug-text/18-debug-text.vcxproj
+++ b/VisualC/examples/renderer/18-debug-text/18-debug-text.vcxproj
@@ -7,7 +7,7 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\renderer\18-debug-text\README.txt" />
- <ClCompile Include="$(SolutionDir)\..\examples\renderer\18-debug-text\*.c" />
+ <ClCompile Include="$(SolutionDir)\..\examples\renderer\18-debug-text\debug-text.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
\ No newline at end of file