]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Adding chagnes for cmake and VStudio
authorRohit Jain <rkjain@fb.com>
Fri, 12 Oct 2018 21:08:13 +0000 (14:08 -0700)
committerRohit Jain <rkjain@fb.com>
Fri, 12 Oct 2018 21:08:13 +0000 (14:08 -0700)
build/VS2008/fullbench/fullbench.vcproj
build/VS2008/fuzzer/fuzzer.vcproj
build/VS2008/zstd/zstd.vcproj
build/VS2010/datagen/datagen.vcxproj
build/VS2010/fullbench-dll/fullbench-dll.vcxproj
build/VS2010/fullbench/fullbench.vcxproj
build/VS2010/fuzzer/fuzzer.vcxproj
build/cmake/programs/CMakeLists.txt

index a31883acf023a10c91d8276537e74b35502eb566..c9547dfea15fa9a38b7cd11f66e6c41ed1b87b05 100644 (file)
                                RelativePath="..\..\..\tests\fullbench.c"
                                >
                        </File>
+                       <File
+                               RelativePath="..\..\..\tests\util.c"
+                               >
+                       </File>
                        <File
                                RelativePath="..\..\..\lib\compress\zstd_fast.c"
                                >
index 4d444caefd1b07e14cbc823bc5e3e476e924d508..a1f5ce07f374c144ac7cdb87e60dc667565e96af 100644 (file)
                        Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
                        UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
                        >
+                       <File
+                               RelativePath="..\..\..\programs\util.c"
+                               >
+                       </File>
                        <File
                                RelativePath="..\..\..\programs\datagen.c"
                                >
index 595733d2b3f854f055d3e264fa5322432e1db715..263fff5d6f834e8b73684cd34843adc9f28a0716 100644 (file)
                                RelativePath="..\..\..\lib\common\threading.h"
                                >
                        </File>
+                       <File
+                               RelativePath="..\..\..\programs\util.c"
+                               >
+                       </File>
                        <File
                                RelativePath="..\..\..\lib\common\xxhash.h"
                                >
index bd8a213daa2f84614ae3e3533b9c05a75af045d1..a66358a0d3a6bd3741c06c607c7d0020ea99358e 100644 (file)
     </Link>
   </ItemDefinitionGroup>
   <ItemGroup>
+    <ClCompile Include="..\..\..\programs\util.c" />
     <ClCompile Include="..\..\..\programs\datagen.c" />
     <ClCompile Include="..\..\..\tests\datagencli.c" />
   </ItemGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
   <ImportGroup Label="ExtensionTargets">
   </ImportGroup>
-</Project>
\ No newline at end of file
+</Project>
index 6939d4406315008e8276e65f4633bcf44febc64a..fae4e5c19cc2200100b1c8b8120bdad4721d247c 100644 (file)
   </ItemDefinitionGroup>
   <ItemGroup>
     <ClCompile Include="..\..\..\lib\common\xxhash.c" />
+    <ClCompile Include="..\..\..\programs\util.c" />
     <ClCompile Include="..\..\..\programs\datagen.c" />
     <ClCompile Include="..\..\..\programs\bench.c" />
     <ClCompile Include="..\..\..\tests\fullbench.c" />
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
   <ImportGroup Label="ExtensionTargets">
   </ImportGroup>
-</Project>
\ No newline at end of file
+</Project>
index d2276c33daf118b48b905011d7d6bb32925c168c..f42006128b0177f472b1f8f9c8d588fb3f54d3ae 100644 (file)
     <ClCompile Include="..\..\..\lib\compress\zstd_ldm.c" />
     <ClCompile Include="..\..\..\lib\decompress\huf_decompress.c" />
     <ClCompile Include="..\..\..\lib\decompress\zstd_decompress.c" />
+    <ClCompile Include="..\..\..\programs\util.c" />
     <ClCompile Include="..\..\..\programs\datagen.c" />
     <ClCompile Include="..\..\..\programs\bench.c" />
     <ClCompile Include="..\..\..\tests\fullbench.c" />
index 6077cd2c1786b3698896cb897928351adb22d0ed..946cd33b7bcde4cc4c4f315ff0c73bf97a7fcd3d 100644 (file)
     <ClCompile Include="..\..\..\lib\dictBuilder\fastcover.c" />
     <ClCompile Include="..\..\..\lib\dictBuilder\divsufsort.c" />
     <ClCompile Include="..\..\..\lib\dictBuilder\zdict.c" />
+    <ClCompile Include="..\..\..\programs\util.c" />
     <ClCompile Include="..\..\..\programs\datagen.c" />
     <ClCompile Include="..\..\..\tests\fuzzer.c" />
   </ItemGroup>
index 221c2481154e47e979a2ccd2fa11af3504c51d93..708d2b27fa530492fcf58ffa283a64c0afd8198d 100644 (file)
@@ -26,7 +26,7 @@ IF (MSVC)
     SET(PlatformDependResources ${MSVC_RESOURCE_DIR}/zstd.rc)
 ENDIF (MSVC)
 
-ADD_EXECUTABLE(zstd ${PROGRAMS_DIR}/zstdcli.c ${PROGRAMS_DIR}/fileio.c ${PROGRAMS_DIR}/bench.c ${PROGRAMS_DIR}/datagen.c ${PROGRAMS_DIR}/dibio.c ${PlatformDependResources})
+ADD_EXECUTABLE(zstd ${PROGRAMS_DIR}/zstdcli.c ${PROGRAMS_DIR}/util.c ${PROGRAMS_DIR}/fileio.c ${PROGRAMS_DIR}/bench.c ${PROGRAMS_DIR}/datagen.c ${PROGRAMS_DIR}/dibio.c ${PlatformDependResources})
 TARGET_LINK_LIBRARIES(zstd libzstd_static)
 IF (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")
     TARGET_LINK_LIBRARIES(zstd rt)
@@ -56,7 +56,7 @@ IF (UNIX)
     INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/zstdcat.1 DESTINATION "${MAN_INSTALL_DIR}")
     INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/unzstd.1 DESTINATION "${MAN_INSTALL_DIR}")
 
-    ADD_EXECUTABLE(zstd-frugal ${PROGRAMS_DIR}/zstdcli.c ${PROGRAMS_DIR}/fileio.c)
+    ADD_EXECUTABLE(zstd-frugal ${PROGRAMS_DIR}/zstdcli.c ${PROGRAMS_DIR}/util.c ${PROGRAMS_DIR}/fileio.c)
     TARGET_LINK_LIBRARIES(zstd-frugal libzstd_static)
     SET_PROPERTY(TARGET zstd-frugal APPEND PROPERTY COMPILE_DEFINITIONS "ZSTD_NOBENCH;ZSTD_NODICT")
 ENDIF (UNIX)