From 82ad2eac7afe7610b61e68dfb6cdf493ddf9253f Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Mon, 19 Sep 2022 08:41:51 +0530 Subject: [PATCH] clang-mingw: Enable building tools and examples (#2928) Add comdlg32 library for GetOpenFileNameA API. --- makefile | 2 +- scripts/genie.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 5fd42a7b7..dd692135c 100644 --- a/makefile +++ b/makefile @@ -136,7 +136,7 @@ mingw-gcc-release64: .build/projects/gmake-mingw-gcc ## Build - MinGW GCC x64 Re mingw-gcc: mingw-gcc-debug32 mingw-gcc-release32 mingw-gcc-debug64 mingw-gcc-release64 ## Build - MinGW GCC x86/x64 Debug and Release .build/projects/gmake-mingw-clang: - $(GENIE) --gcc=mingw-clang gmake + $(GENIE) --with-tools --with-combined-examples --with-shared-lib --os=windows --gcc=mingw-clang gmake mingw-clang-debug32: .build/projects/gmake-mingw-clang ## Build - MinGW Clang x86 Debug $(MAKE) -R -C .build/projects/gmake-mingw-clang config=debug32 mingw-clang-release32: .build/projects/gmake-mingw-clang ## Build - MinGW Clang x86 Release diff --git a/scripts/genie.lua b/scripts/genie.lua index d2dc0ec82..645ed3a21 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -313,6 +313,7 @@ function exampleProjectDefaults() configuration { "mingw*" } targetextension ".exe" links { + "comdlg32", "gdi32", "psapi", } @@ -592,7 +593,7 @@ or _OPTIONS["with-combined-examples"] then , "46-fsr" , "47-pixelformats" , "48-drawindirect" - , "49-hextile" + , "49-hextile" ) -- 17-drawstress requires multithreading, does not compile for singlethreaded wasm