From 5de40ee8216c7a3ddb2bf88570f798c8ac4f40f8 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 2 Apr 2020 01:02:42 +0200 Subject: Fix msvc 64 bit build, cleanup configuration This fixes the msvc 64 bit build configuration which has been overlooked in the previous commit. The configuration is unified and the filters file (containing the layout of the files in the browser) is added. The common definitions are added to config.h. Signed-off-by: David Oberhollenzer --- include/win32/config.h | 3 + lib/sqfs/Makemodule.am | 2 +- lib/sqfs/libsqfs.vcxproj | 28 +++-- lib/sqfs/libsqfs.vcxproj.filters | 252 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 274 insertions(+), 11 deletions(-) create mode 100644 lib/sqfs/libsqfs.vcxproj.filters diff --git a/include/win32/config.h b/include/win32/config.h index 00ec3bb..86ed62f 100644 --- a/include/win32/config.h +++ b/include/win32/config.h @@ -7,6 +7,9 @@ #ifndef CONFIG_H #define CONFIG_H +#define _CRT_SECURE_NO_WARNINGS +#define WITH_GZIP 1 +#define WITH_LZ4 1 #endif /* CONFIG_H */ diff --git a/lib/sqfs/Makemodule.am b/lib/sqfs/Makemodule.am index 6786ee2..3360e95 100644 --- a/lib/sqfs/Makemodule.am +++ b/lib/sqfs/Makemodule.am @@ -113,5 +113,5 @@ lib_LTLIBRARIES += libsquashfs.la pkgconfig_DATA += lib/sqfs/libsquashfs0.pc EXTRA_DIST += lib/sqfs/comp/lz4/README lib/sqfs/comp/zlib/README -EXTRA_DIST += lib/sqfs/libsqfs.vcxproj +EXTRA_DIST += lib/sqfs/libsqfs.vcxproj lib/sqfs/libsqfs.vcxproj.filters EXTRA_DIST += include/win32/config.h diff --git a/lib/sqfs/libsqfs.vcxproj b/lib/sqfs/libsqfs.vcxproj index 176ba20..1ac84ab 100644 --- a/lib/sqfs/libsqfs.vcxproj +++ b/lib/sqfs/libsqfs.vcxproj @@ -40,13 +40,13 @@ Unicode - Application + DynamicLibrary true v142 Unicode - Application + DynamicLibrary false v142 true @@ -72,14 +72,16 @@ true - $(SolutionDir)$(Configuration)\ + $(SolutionDir)$(Platform)\$(Configuration)\ + $(Platform)\$(Configuration)\ true false - $(SolutionDir)$(Configuration)\ + $(SolutionDir)$(Platform)\$(Configuration)\ + $(Platform)\$(Configuration)\ false @@ -88,11 +90,11 @@ Level3 true - _DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;WITH_GZIP;WITH_LZ4;NO_GZIP;%(PreprocessorDefinitions) + _DEBUG;_CONSOLE;NO_GZIP;%(PreprocessorDefinitions) true $(SolutionDir)\include;$(SolutionDir)\include\win32;$(SolutionDir)\lib\sqfs\comp\zlib;$(SolutionDir)\lib\sqfs\comp\lz4;%(AdditionalIncludeDirectories) CompileAsC - $(IntDir)%(RelativeDir) + $(IntDir)/%(RelativeDir) Console @@ -103,8 +105,11 @@ Level3 true - _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + _DEBUG;_CONSOLE;NO_GZIP;%(PreprocessorDefinitions) true + $(IntDir)/%(RelativeDir) + CompileAsC + $(SolutionDir)\include;$(SolutionDir)\include\win32;$(SolutionDir)\lib\sqfs\comp\zlib;$(SolutionDir)\lib\sqfs\comp\lz4;%(AdditionalIncludeDirectories) Console @@ -117,11 +122,11 @@ true true true - NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;WITH_GZIP;WITH_LZ4;NO_GZIP;%(PreprocessorDefinitions) + NDEBUG;_CONSOLE;NO_GZIP;%(PreprocessorDefinitions) true $(SolutionDir)\include;$(SolutionDir)\include\win32;$(SolutionDir)\lib\sqfs\comp\zlib;$(SolutionDir)\lib\sqfs\comp\lz4;%(AdditionalIncludeDirectories) CompileAsC - $(IntDir)%(RelativeDir) + $(IntDir)/%(RelativeDir) Console @@ -136,8 +141,11 @@ true true true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + NDEBUG;_CONSOLE;NO_GZIP;%(PreprocessorDefinitions) true + $(IntDir)/%(RelativeDir) + CompileAsC + $(SolutionDir)\include;$(SolutionDir)\include\win32;$(SolutionDir)\lib\sqfs\comp\zlib;$(SolutionDir)\lib\sqfs\comp\lz4;%(AdditionalIncludeDirectories) Console diff --git a/lib/sqfs/libsqfs.vcxproj.filters b/lib/sqfs/libsqfs.vcxproj.filters new file mode 100644 index 0000000..759c118 --- /dev/null +++ b/lib/sqfs/libsqfs.vcxproj.filters @@ -0,0 +1,252 @@ + + + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + zlib + + + zlib + + + zlib + + + zlib + + + zlib + + + zlib + + + zlib + + + lz4 + + + lz4 + + + Source\compressor + + + Source\compressor + + + Source\compressor + + + Source\block_processor + + + Source\block_processor + + + Source\util + + + Source\util + + + Source\util + + + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + zlib + + + zlib + + + zlib + + + zlib + + + zlib + + + zlib + + + zlib + + + zlib + + + zlib + + + lz4 + + + lz4 + + + Source\compressor + + + Source\block_processor + + + + + {7491bf84-10be-447e-b7ed-1efe7d8f7ecb} + + + {1fcaa3ae-6b0e-47e5-a056-77b9fac9dee5} + + + {68726ace-d1ef-4224-a540-f4389f756ba6} + + + {f744d8a3-0eba-42c6-9893-8fc624cdbb52} + + + {1d8f9cc9-e8b4-45a9-89c3-5e7311aab932} + + + {42849c38-796f-488a-bcab-f33387d801d5} + + + {7605c915-b715-4a1c-b329-2234d16d0de1} + + + \ No newline at end of file -- cgit v1.2.3