From c81b424d967203cc2d68e819dc330439e8880764 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 6 Apr 2020 23:07:51 +0200 Subject: Add msvc projects for utility programs Signed-off-by: David Oberhollenzer --- difftool/compare_files.c | 2 +- difftool/sqfsdiff.h | 5 +- difftool/sqfsdiff.vcxproj | 188 ++++++++++++++++++++++++++++++++++++++ difftool/sqfsdiff.vcxproj.filters | 44 +++++++++ 4 files changed, 237 insertions(+), 2 deletions(-) create mode 100644 difftool/sqfsdiff.vcxproj create mode 100644 difftool/sqfsdiff.vcxproj.filters (limited to 'difftool') diff --git a/difftool/compare_files.c b/difftool/compare_files.c index 51b66bb..b25172a 100644 --- a/difftool/compare_files.c +++ b/difftool/compare_files.c @@ -13,7 +13,7 @@ static int read_blob(const char *prefix, const char *path, sqfs_data_reader_t *rd, const sqfs_inode_generic_t *inode, void *buffer, sqfs_u64 offset, size_t size) { - ssize_t ret; + sqfs_s32 ret; ret = sqfs_data_reader_read(rd, inode, offset, buffer, size); ret = (ret < 0 || (size_t)ret < size) ? -1 : 0; diff --git a/difftool/sqfsdiff.h b/difftool/sqfsdiff.h index 94fce93..7f552e9 100644 --- a/difftool/sqfsdiff.h +++ b/difftool/sqfsdiff.h @@ -12,10 +12,13 @@ #include "fstree.h" #include -#include #include #include +#ifdef HAVE_GETOPT_LONG +#include +#endif + #define MAX_WINDOW_SIZE (1024 * 1024 * 4) typedef struct { diff --git a/difftool/sqfsdiff.vcxproj b/difftool/sqfsdiff.vcxproj new file mode 100644 index 0000000..5e7d404 --- /dev/null +++ b/difftool/sqfsdiff.vcxproj @@ -0,0 +1,188 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + {7D66EBA3-5EDE-45EB-ADCA-8424C4026CA7} + sqfsdiff + 10.0 + + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + + + + + + + + + + + + + + + + + + + false + + + true + $(SolutionDir)$(Platform)\$(Configuration)\ + $(Platform)\$(Configuration)\ + + + true + + + false + $(SolutionDir)$(Platform)\$(Configuration)\ + $(Platform)\$(Configuration)\ + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + $(SolutionDir)\include\win32;$(SolutionDir)\include;%(AdditionalIncludeDirectories) + + + Console + true + true + true + $(TargetDir)\squashfs.lib;$(TargetDir)\libcompat.lib;$(TargetDir)\libcommon.lib;$(TargetDir)\libfstree.lib;$(TargetDir)\libtar.lib;$(TargetDir)\libutil.lib;%(AdditionalDependencies) + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + $(SolutionDir)\include\win32;$(SolutionDir)\include;%(AdditionalIncludeDirectories) + + + Console + true + $(TargetDir)\squashfs.lib;$(TargetDir)\libcompat.lib;$(TargetDir)\libcommon.lib;$(TargetDir)\libfstree.lib;$(TargetDir)\libtar.lib;$(TargetDir)\libutil.lib;%(AdditionalDependencies) + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + $(SolutionDir)\include\win32;$(SolutionDir)\include;%(AdditionalIncludeDirectories) + + + Console + true + $(TargetDir)\squashfs.lib;$(TargetDir)\libcompat.lib;$(TargetDir)\libcommon.lib;$(TargetDir)\libfstree.lib;$(TargetDir)\libtar.lib;$(TargetDir)\libutil.lib;%(AdditionalDependencies) + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + $(SolutionDir)\include\win32;$(SolutionDir)\include;%(AdditionalIncludeDirectories) + + + Console + true + true + true + $(TargetDir)\squashfs.lib;$(TargetDir)\libcompat.lib;$(TargetDir)\libcommon.lib;$(TargetDir)\libfstree.lib;$(TargetDir)\libtar.lib;$(TargetDir)\libutil.lib;%(AdditionalDependencies) + + + + + + + + + + + + + + + + + + {4af21b3a-e7a0-48e6-951c-ca442410231f} + + + {45dec8f7-f154-4c3e-b616-a21fb3ca8cc2} + + + {4aa93963-2bc8-48fa-80b8-776b1f80bba5} + + + {7f732a8e-22a5-4dc1-b8db-7091d37be502} + + + {73712684-0f79-4ef6-950c-943c0456ff05} + + + {e25396a6-af76-4695-ba23-01d88009b7ec} + + + + + + \ No newline at end of file diff --git a/difftool/sqfsdiff.vcxproj.filters b/difftool/sqfsdiff.vcxproj.filters new file mode 100644 index 0000000..18cc471 --- /dev/null +++ b/difftool/sqfsdiff.vcxproj.filters @@ -0,0 +1,44 @@ + + + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;def;odl;idl;hpj;bat;asm;asmx + + + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + Source + + + + + Headers + + + \ No newline at end of file -- cgit v1.2.3