From a772248e1a2f0886d8479b2f14392f020ea8c6e0 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 2 Apr 2020 01:07:35 +0200 Subject: Import the remaining utility files into VisualStudio project - The libcommon print verion function requires the PACKAGE_NAME and PACKAGE_VERSION defines. Those are added manually to the msvc stub of config.h. - Also, libcommon cannot directly include getopt.h - libfstree needs to change the return type for getline Signed-off-by: David Oberhollenzer --- lib/fstree/Makemodule.am | 2 + lib/fstree/fstree_from_file.c | 2 +- lib/fstree/libfstree.vcxproj | 178 +++++++++++++++++++++++++++++++++++ lib/fstree/libfstree.vcxproj.filters | 62 ++++++++++++ 4 files changed, 243 insertions(+), 1 deletion(-) create mode 100644 lib/fstree/libfstree.vcxproj create mode 100644 lib/fstree/libfstree.vcxproj.filters (limited to 'lib/fstree') diff --git a/lib/fstree/Makemodule.am b/lib/fstree/Makemodule.am index 56394a6..31823f8 100644 --- a/lib/fstree/Makemodule.am +++ b/lib/fstree/Makemodule.am @@ -11,3 +11,5 @@ libfstree_a_CFLAGS = $(AM_CFLAGS) libfstree_a_CPPFLAGS = $(AM_CPPFLAGS) noinst_LIBRARIES += libfstree.a + +EXTRA_DIST += lib/fstree/libfstree.vcxproj lib/fstree/libfstree.vcxproj.filters diff --git a/lib/fstree/fstree_from_file.c b/lib/fstree/fstree_from_file.c index bf11755..d2f1c68 100644 --- a/lib/fstree/fstree_from_file.c +++ b/lib/fstree/fstree_from_file.c @@ -282,8 +282,8 @@ out_desc: int fstree_from_file(fstree_t *fs, const char *filename, FILE *fp) { size_t n, line_num = 0; - ssize_t ret; char *line; + int ret; for (;;) { line = NULL; diff --git a/lib/fstree/libfstree.vcxproj b/lib/fstree/libfstree.vcxproj new file mode 100644 index 0000000..baffc40 --- /dev/null +++ b/lib/fstree/libfstree.vcxproj @@ -0,0 +1,178 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + {4AA93963-2BC8-48FA-80B8-776B1F80BBA5} + libfstree + 10.0 + + + + StaticLibrary + true + v142 + Unicode + + + StaticLibrary + false + v142 + true + Unicode + + + StaticLibrary + true + v142 + Unicode + + + StaticLibrary + 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) + $(IntDir)\%(RelativeDir) + CompileAsC + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + $(SolutionDir)\include\win32;$(SolutionDir)\include;%(AdditionalIncludeDirectories) + $(IntDir)\%(RelativeDir) + CompileAsC + + + Console + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + $(SolutionDir)\include\win32;$(SolutionDir)\include;%(AdditionalIncludeDirectories) + $(IntDir)\%(RelativeDir) + CompileAsC + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + $(SolutionDir)\include\win32;$(SolutionDir)\include;%(AdditionalIncludeDirectories) + $(IntDir)\%(RelativeDir) + CompileAsC + + + Console + true + true + true + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lib/fstree/libfstree.vcxproj.filters b/lib/fstree/libfstree.vcxproj.filters new file mode 100644 index 0000000..5e70b98 --- /dev/null +++ b/lib/fstree/libfstree.vcxproj.filters @@ -0,0 +1,62 @@ + + + + + {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 + + + Source + + + Source + + + Source + + + Source + + + + + Headers + + + Headers + + + Headers + + + \ No newline at end of file -- cgit v1.2.3