@ 260915.5 · fetching

211202.1.1 · 08e8bd98928979bf8db6ce9e1bc7c6fde3ee54ef

ugrep - easy building from Visual Studio 2019+

Makes it easy to build from Visual Studio.

- Clone ugrep, e.g. c:\source\ugrep.
- Double-click on c:\source\ugrep\msvc\ugrep.sln.
- Set Platform to x86 or x64.
- Set Config to Base-Debug or Base-Release.
- Build.

Generates a ugrep.exe without PCRE or compression support, but otherwise usable.

To enable PCRE and compression support, you extract all of the sources into folders next to your ugrep folder (remove version numbers from the folder name), e.g. c:\source\zlib and c:\source\pcre2.

With all sources present, you can now change the config to Pcre-Debug or Pcre-Release and build.

To enable Boost, you extract boost to c:\source\boost and build the libs. You can now change the config to Boost-Debug or Boost-Release and build.

Might also work for VS2017, but I don't have a copy of that installed on anything handy for testing.

reading declarations

Changes to msvc/lz4.vcxproj.filters. All files

msvc/lz4.vcxproj.filters

new file mode 100644@@ -0,0 +1,47 @@+<?xml version="1.0" encoding="utf-8"?>+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">+  <ItemGroup>+    <Filter Include="Source Files">+      <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>+      <Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>+    </Filter>+    <Filter Include="Header Files">+      <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>+      <Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>+    </Filter>+  </ItemGroup>+  <ItemGroup>+    <ClCompile Include="..\..\lz4\lib\lz4.c">+      <Filter>Source Files</Filter>+    </ClCompile>+    <ClCompile Include="..\..\lz4\lib\lz4frame.c">+      <Filter>Source Files</Filter>+    </ClCompile>+    <ClCompile Include="..\..\lz4\lib\lz4hc.c">+      <Filter>Source Files</Filter>+    </ClCompile>+    <ClCompile Include="..\..\lz4\lib\xxhash.c">+      <Filter>Source Files</Filter>+    </ClCompile>+    <ClCompile Include="include_common\empty.c">+      <Filter>Source Files</Filter>+    </ClCompile>+  </ItemGroup>+  <ItemGroup>+    <ClInclude Include="..\..\lz4\lib\lz4.h">+      <Filter>Header Files</Filter>+    </ClInclude>+    <ClInclude Include="..\..\lz4\lib\lz4frame.h">+      <Filter>Header Files</Filter>+    </ClInclude>+    <ClInclude Include="..\..\lz4\lib\lz4frame_static.h">+      <Filter>Header Files</Filter>+    </ClInclude>+    <ClInclude Include="..\..\lz4\lib\lz4hc.h">+      <Filter>Header Files</Filter>+    </ClInclude>+    <ClInclude Include="..\..\lz4\lib\xxhash.h">+      <Filter>Header Files</Filter>+    </ClInclude>+  </ItemGroup>+</Project>\ No newline at end of file