From ad5ef6d3c30bb749113c51aa0bbe8bcb5e193fbe Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Thu, 18 Aug 2022 17:38:05 +0300 Subject: [PATCH] Windows: Fix broken liblzma.dll build with Visual Studio project files. The bug was introduced in 352ba2d69af2136bc814aa1df1a132559d445616 "Windows: Fix building of resource files when config.h isn't used." That commit fixed liblzma.dll build with CMake while keeping it working with Autotools on Windows but the VS project files were forgotten. I haven't tested these changes. Thanks to Olivier B. for reporting the bug and for the initial patch. --- windows/vs2013/liblzma_dll.vcxproj | 6 ++++++ windows/vs2017/liblzma_dll.vcxproj | 6 ++++++ windows/vs2019/liblzma_dll.vcxproj | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/windows/vs2013/liblzma_dll.vcxproj b/windows/vs2013/liblzma_dll.vcxproj index f764dc10..03c2ab7d 100644 --- a/windows/vs2013/liblzma_dll.vcxproj +++ b/windows/vs2013/liblzma_dll.vcxproj @@ -137,6 +137,7 @@ ./;../../src/liblzma/common;../../src/common;../../src/liblzma/api; + HAVE_CONFIG_H @@ -154,6 +155,7 @@ ./;../../src/liblzma/common;../../src/common;../../src/liblzma/api; + HAVE_CONFIG_H @@ -173,6 +175,7 @@ ./;../../src/liblzma/common;../../src/common;../../src/liblzma/api; + HAVE_CONFIG_H @@ -191,6 +194,7 @@ ./;../../src/liblzma/common;../../src/common;../../src/liblzma/api; + HAVE_CONFIG_H @@ -210,6 +214,7 @@ ./;../../src/liblzma/common;../../src/common;../../src/liblzma/api; + HAVE_CONFIG_H @@ -228,6 +233,7 @@ ./;../../src/liblzma/common;../../src/common;../../src/liblzma/api; + HAVE_CONFIG_H diff --git a/windows/vs2017/liblzma_dll.vcxproj b/windows/vs2017/liblzma_dll.vcxproj index 33f3e694..ee889293 100644 --- a/windows/vs2017/liblzma_dll.vcxproj +++ b/windows/vs2017/liblzma_dll.vcxproj @@ -137,6 +137,7 @@ ./;../../src/liblzma/common;../../src/common;../../src/liblzma/api; + HAVE_CONFIG_H @@ -154,6 +155,7 @@ ./;../../src/liblzma/common;../../src/common;../../src/liblzma/api; + HAVE_CONFIG_H @@ -173,6 +175,7 @@ ./;../../src/liblzma/common;../../src/common;../../src/liblzma/api; + HAVE_CONFIG_H @@ -191,6 +194,7 @@ ./;../../src/liblzma/common;../../src/common;../../src/liblzma/api; + HAVE_CONFIG_H @@ -210,6 +214,7 @@ ./;../../src/liblzma/common;../../src/common;../../src/liblzma/api; + HAVE_CONFIG_H @@ -228,6 +233,7 @@ ./;../../src/liblzma/common;../../src/common;../../src/liblzma/api; + HAVE_CONFIG_H diff --git a/windows/vs2019/liblzma_dll.vcxproj b/windows/vs2019/liblzma_dll.vcxproj index fc5ddbb2..40926c52 100644 --- a/windows/vs2019/liblzma_dll.vcxproj +++ b/windows/vs2019/liblzma_dll.vcxproj @@ -138,6 +138,7 @@ ./;../../src/liblzma/common;../../src/common;../../src/liblzma/api; + HAVE_CONFIG_H @@ -155,6 +156,7 @@ ./;../../src/liblzma/common;../../src/common;../../src/liblzma/api; + HAVE_CONFIG_H @@ -174,6 +176,7 @@ ./;../../src/liblzma/common;../../src/common;../../src/liblzma/api; + HAVE_CONFIG_H @@ -192,6 +195,7 @@ ./;../../src/liblzma/common;../../src/common;../../src/liblzma/api; + HAVE_CONFIG_H @@ -211,6 +215,7 @@ ./;../../src/liblzma/common;../../src/common;../../src/liblzma/api; + HAVE_CONFIG_H @@ -229,6 +234,7 @@ ./;../../src/liblzma/common;../../src/common;../../src/liblzma/api; + HAVE_CONFIG_H