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/common/Makemodule.am | 2 + lib/common/comp_opt.c | 7 +- lib/common/libcommon.vcxproj | 182 +++++++++++++++++++++++++++++++++++ lib/common/libcommon.vcxproj.filters | 74 ++++++++++++++ 4 files changed, 264 insertions(+), 1 deletion(-) create mode 100644 lib/common/libcommon.vcxproj create mode 100644 lib/common/libcommon.vcxproj.filters (limited to 'lib/common') diff --git a/lib/common/Makemodule.am b/lib/common/Makemodule.am index c59ab4c..5f659dd 100644 --- a/lib/common/Makemodule.am +++ b/lib/common/Makemodule.am @@ -14,3 +14,5 @@ libcommon_a_SOURCES += lib/common/comp_lzo.c endif noinst_LIBRARIES += libcommon.a + +EXTRA_DIST += lib/common/libcommon.vcxproj lib/common/libcommon.vcxproj.filters diff --git a/lib/common/comp_opt.c b/lib/common/comp_opt.c index 58a7a21..93ad1cc 100644 --- a/lib/common/comp_opt.c +++ b/lib/common/comp_opt.c @@ -8,9 +8,14 @@ #include #include -#include #include +#ifdef HAVE_GETSUBOPT +#include +#else +#include "compat.h" +#endif + typedef struct { const char *name; sqfs_u16 flag; diff --git a/lib/common/libcommon.vcxproj b/lib/common/libcommon.vcxproj new file mode 100644 index 0000000..5f2eaf2 --- /dev/null +++ b/lib/common/libcommon.vcxproj @@ -0,0 +1,182 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + {4AF21B3A-E7A0-48E6-951C-CA442410231F} + libcommon + 10.0 + + + + StaticLibrary + true + v142 + Unicode + + + StaticLibrary + false + v142 + true + Unicode + + + StaticLibrary + true + v142 + Unicode + + + StaticLibrary + false + v142 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + true + $(SolutionDir)$(Platform)\$(Configuration)\ + $(Platform)\$(Configuration)\ + + + false + $(SolutionDir)$(Platform)\$(Configuration)\ + $(Platform)\$(Configuration)\ + + + false + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + $(SolutionDir)\include\win32;$(SolutionDir)\include;%(AdditionalIncludeDirectories) + CompileAsC + $(IntDir)\%(RelativeDir) + + + Console + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + $(SolutionDir)\include\win32;$(SolutionDir)\include;%(AdditionalIncludeDirectories) + CompileAsC + $(IntDir)\%(RelativeDir) + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + $(SolutionDir)\include\win32;$(SolutionDir)\include;%(AdditionalIncludeDirectories) + CompileAsC + $(IntDir)\%(RelativeDir) + + + Console + true + true + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + $(SolutionDir)\include\win32;$(SolutionDir)\include;%(AdditionalIncludeDirectories) + CompileAsC + $(IntDir)\%(RelativeDir) + + + Console + true + true + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lib/common/libcommon.vcxproj.filters b/lib/common/libcommon.vcxproj.filters new file mode 100644 index 0000000..1f91163 --- /dev/null +++ b/lib/common/libcommon.vcxproj.filters @@ -0,0 +1,74 @@ + + + + + {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 + + + Source + + + Source + + + Source + + + Source + + + + + Headers + + + Headers + + + Headers + + + \ No newline at end of file -- cgit v1.2.3