diff --git a/.gitignore b/.gitignore index 66520950..cb0da7a3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,340 @@ *.o crnlib/crunch + +# Visual Studio Code +.vscode/ + +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# JetBrains Rider +.idea/ +*.sln.iml + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000..bc0475a5 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,28 @@ +# Ensure minimum CMake version. +cmake_minimum_required(VERSION 3.11 FATAL_ERROR) + +# Name the project. +project(crunch-project) + +# Add the source library files. +add_subdirectory(crnlib) + +# Add the command-line tool. +add_subdirectory(crunch) + +# Add the emscripten library. +add_subdirectory(emscripten) + +# Add the examples. +add_subdirectory(example1) +add_subdirectory(example2) +add_subdirectory(example3) + +install( + FILES + ${CMAKE_SOURCE_DIR}/inc/crn_decomp.h + ${CMAKE_SOURCE_DIR}/inc/crnlib.h + ${CMAKE_SOURCE_DIR}/inc/dds_defs.h + DESTINATION + include +) diff --git a/CMakeSettings.json b/CMakeSettings.json new file mode 100644 index 00000000..2f4ff321 --- /dev/null +++ b/CMakeSettings.json @@ -0,0 +1,24 @@ +{ + "configurations": [ + { + "name": "x64-Debug", + "generator": "Ninja", + "configurationType": "Debug", + "inheritEnvironments": [ + "msvc_x64" + ], + "buildRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\build\\${name}", + "installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}" + }, + { + "name": "x64-Release", + "generator": "Ninja", + "configurationType": "Release", + "inheritEnvironments": [ + "msvc_x64" + ], + "buildRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\build\\${name}", + "installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}" + } + ] +} \ No newline at end of file diff --git a/bin/crunch.exe b/bin/crunch.exe deleted file mode 100644 index 07c9ceda..00000000 Binary files a/bin/crunch.exe and /dev/null differ diff --git a/bin/crunch.pdb b/bin/crunch.pdb deleted file mode 100644 index 9aa35c82..00000000 Binary files a/bin/crunch.pdb and /dev/null differ diff --git a/bin/crunch_x64.exe b/bin/crunch_x64.exe deleted file mode 100644 index 6a47d6b7..00000000 Binary files a/bin/crunch_x64.exe and /dev/null differ diff --git a/bin/crunch_x64.pdb b/bin/crunch_x64.pdb deleted file mode 100644 index 1b2c4fc9..00000000 Binary files a/bin/crunch_x64.pdb and /dev/null differ diff --git a/crn.2017.sln b/crn.2017.sln new file mode 100644 index 00000000..6978084f --- /dev/null +++ b/crn.2017.sln @@ -0,0 +1,118 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28010.2050 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "crunch", "crunch\crunch.2008.vcxproj", "{8F645BA1-B996-49EB-859B-970A671DE05D}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "crnlib", "crnlib\crnlib.2008.vcxproj", "{CF2E70E8-7133-4D96-92C7-68BB406C0664}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Examples", "Examples", "{C8D0E55D-5BF4-436F-AF0B-223F61272511}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example1", "example1\example1.2017.vcxproj", "{8F745B42-F996-49EB-859B-970A671DE05D}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example2", "example2\example2.2017.vcxproj", "{AF745B42-F996-49EB-859B-970A671DEF5E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example3", "example3\example3.2017.vcxproj", "{AF745B42-E296-46EB-859B-970A671DEF5E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug_DLL|Win32 = Debug_DLL|Win32 + Debug_DLL|x64 = Debug_DLL|x64 + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Release_DLL|Win32 = Release_DLL|Win32 + Release_DLL|x64 = Release_DLL|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8F645BA1-B996-49EB-859B-970A671DE05D}.Debug_DLL|Win32.ActiveCfg = Debug|Win32 + {8F645BA1-B996-49EB-859B-970A671DE05D}.Debug_DLL|x64.ActiveCfg = Debug|x64 + {8F645BA1-B996-49EB-859B-970A671DE05D}.Debug|Win32.ActiveCfg = Debug|Win32 + {8F645BA1-B996-49EB-859B-970A671DE05D}.Debug|Win32.Build.0 = Debug|Win32 + {8F645BA1-B996-49EB-859B-970A671DE05D}.Debug|x64.ActiveCfg = Debug|x64 + {8F645BA1-B996-49EB-859B-970A671DE05D}.Debug|x64.Build.0 = Debug|x64 + {8F645BA1-B996-49EB-859B-970A671DE05D}.Release_DLL|Win32.ActiveCfg = Release|Win32 + {8F645BA1-B996-49EB-859B-970A671DE05D}.Release_DLL|x64.ActiveCfg = Release|x64 + {8F645BA1-B996-49EB-859B-970A671DE05D}.Release|Win32.ActiveCfg = Release|Win32 + {8F645BA1-B996-49EB-859B-970A671DE05D}.Release|Win32.Build.0 = Release|Win32 + {8F645BA1-B996-49EB-859B-970A671DE05D}.Release|x64.ActiveCfg = Release|x64 + {8F645BA1-B996-49EB-859B-970A671DE05D}.Release|x64.Build.0 = Release|x64 + {CF2E70E8-7133-4D96-92C7-68BB406C0664}.Debug_DLL|Win32.ActiveCfg = Debug_DLL|Win32 + {CF2E70E8-7133-4D96-92C7-68BB406C0664}.Debug_DLL|Win32.Build.0 = Debug_DLL|Win32 + {CF2E70E8-7133-4D96-92C7-68BB406C0664}.Debug_DLL|x64.ActiveCfg = Debug_DLL|x64 + {CF2E70E8-7133-4D96-92C7-68BB406C0664}.Debug_DLL|x64.Build.0 = Debug_DLL|x64 + {CF2E70E8-7133-4D96-92C7-68BB406C0664}.Debug|Win32.ActiveCfg = Debug|Win32 + {CF2E70E8-7133-4D96-92C7-68BB406C0664}.Debug|Win32.Build.0 = Debug|Win32 + {CF2E70E8-7133-4D96-92C7-68BB406C0664}.Debug|x64.ActiveCfg = Debug|x64 + {CF2E70E8-7133-4D96-92C7-68BB406C0664}.Debug|x64.Build.0 = Debug|x64 + {CF2E70E8-7133-4D96-92C7-68BB406C0664}.Release_DLL|Win32.ActiveCfg = Release_DLL|Win32 + {CF2E70E8-7133-4D96-92C7-68BB406C0664}.Release_DLL|Win32.Build.0 = Release_DLL|Win32 + {CF2E70E8-7133-4D96-92C7-68BB406C0664}.Release_DLL|x64.ActiveCfg = Release_DLL|x64 + {CF2E70E8-7133-4D96-92C7-68BB406C0664}.Release_DLL|x64.Build.0 = Release_DLL|x64 + {CF2E70E8-7133-4D96-92C7-68BB406C0664}.Release|Win32.ActiveCfg = Release|Win32 + {CF2E70E8-7133-4D96-92C7-68BB406C0664}.Release|Win32.Build.0 = Release|Win32 + {CF2E70E8-7133-4D96-92C7-68BB406C0664}.Release|x64.ActiveCfg = Release|x64 + {CF2E70E8-7133-4D96-92C7-68BB406C0664}.Release|x64.Build.0 = Release|x64 + {8F745B42-F996-49EB-859B-970A671DE05D}.Debug_DLL|Win32.ActiveCfg = Debug_DLL|Win32 + {8F745B42-F996-49EB-859B-970A671DE05D}.Debug_DLL|Win32.Build.0 = Debug_DLL|Win32 + {8F745B42-F996-49EB-859B-970A671DE05D}.Debug_DLL|x64.ActiveCfg = Debug_DLL|x64 + {8F745B42-F996-49EB-859B-970A671DE05D}.Debug_DLL|x64.Build.0 = Debug_DLL|x64 + {8F745B42-F996-49EB-859B-970A671DE05D}.Debug|Win32.ActiveCfg = Debug|Win32 + {8F745B42-F996-49EB-859B-970A671DE05D}.Debug|Win32.Build.0 = Debug|Win32 + {8F745B42-F996-49EB-859B-970A671DE05D}.Debug|x64.ActiveCfg = Debug|x64 + {8F745B42-F996-49EB-859B-970A671DE05D}.Debug|x64.Build.0 = Debug|x64 + {8F745B42-F996-49EB-859B-970A671DE05D}.Release_DLL|Win32.ActiveCfg = Release_DLL|Win32 + {8F745B42-F996-49EB-859B-970A671DE05D}.Release_DLL|Win32.Build.0 = Release_DLL|Win32 + {8F745B42-F996-49EB-859B-970A671DE05D}.Release_DLL|x64.ActiveCfg = Release_DLL|x64 + {8F745B42-F996-49EB-859B-970A671DE05D}.Release_DLL|x64.Build.0 = Release_DLL|x64 + {8F745B42-F996-49EB-859B-970A671DE05D}.Release|Win32.ActiveCfg = Release|Win32 + {8F745B42-F996-49EB-859B-970A671DE05D}.Release|Win32.Build.0 = Release|Win32 + {8F745B42-F996-49EB-859B-970A671DE05D}.Release|x64.ActiveCfg = Release|x64 + {8F745B42-F996-49EB-859B-970A671DE05D}.Release|x64.Build.0 = Release|x64 + {AF745B42-F996-49EB-859B-970A671DEF5E}.Debug_DLL|Win32.ActiveCfg = Debug_DLL|Win32 + {AF745B42-F996-49EB-859B-970A671DEF5E}.Debug_DLL|Win32.Build.0 = Debug_DLL|Win32 + {AF745B42-F996-49EB-859B-970A671DEF5E}.Debug_DLL|x64.ActiveCfg = Debug_DLL|x64 + {AF745B42-F996-49EB-859B-970A671DEF5E}.Debug_DLL|x64.Build.0 = Debug_DLL|x64 + {AF745B42-F996-49EB-859B-970A671DEF5E}.Debug|Win32.ActiveCfg = Debug|Win32 + {AF745B42-F996-49EB-859B-970A671DEF5E}.Debug|Win32.Build.0 = Debug|Win32 + {AF745B42-F996-49EB-859B-970A671DEF5E}.Debug|x64.ActiveCfg = Debug|x64 + {AF745B42-F996-49EB-859B-970A671DEF5E}.Debug|x64.Build.0 = Debug|x64 + {AF745B42-F996-49EB-859B-970A671DEF5E}.Release_DLL|Win32.ActiveCfg = Release_DLL|Win32 + {AF745B42-F996-49EB-859B-970A671DEF5E}.Release_DLL|Win32.Build.0 = Release_DLL|Win32 + {AF745B42-F996-49EB-859B-970A671DEF5E}.Release_DLL|x64.ActiveCfg = Release_DLL|x64 + {AF745B42-F996-49EB-859B-970A671DEF5E}.Release_DLL|x64.Build.0 = Release_DLL|x64 + {AF745B42-F996-49EB-859B-970A671DEF5E}.Release|Win32.ActiveCfg = Release|Win32 + {AF745B42-F996-49EB-859B-970A671DEF5E}.Release|Win32.Build.0 = Release|Win32 + {AF745B42-F996-49EB-859B-970A671DEF5E}.Release|x64.ActiveCfg = Release|x64 + {AF745B42-F996-49EB-859B-970A671DEF5E}.Release|x64.Build.0 = Release|x64 + {AF745B42-E296-46EB-859B-970A671DEF5E}.Debug_DLL|Win32.ActiveCfg = Debug_DLL|Win32 + {AF745B42-E296-46EB-859B-970A671DEF5E}.Debug_DLL|Win32.Build.0 = Debug_DLL|Win32 + {AF745B42-E296-46EB-859B-970A671DEF5E}.Debug_DLL|x64.ActiveCfg = Debug_DLL|x64 + {AF745B42-E296-46EB-859B-970A671DEF5E}.Debug_DLL|x64.Build.0 = Debug_DLL|x64 + {AF745B42-E296-46EB-859B-970A671DEF5E}.Debug|Win32.ActiveCfg = Debug|Win32 + {AF745B42-E296-46EB-859B-970A671DEF5E}.Debug|Win32.Build.0 = Debug|Win32 + {AF745B42-E296-46EB-859B-970A671DEF5E}.Debug|x64.ActiveCfg = Debug|x64 + {AF745B42-E296-46EB-859B-970A671DEF5E}.Debug|x64.Build.0 = Debug|x64 + {AF745B42-E296-46EB-859B-970A671DEF5E}.Release_DLL|Win32.ActiveCfg = Release_DLL|Win32 + {AF745B42-E296-46EB-859B-970A671DEF5E}.Release_DLL|Win32.Build.0 = Release_DLL|Win32 + {AF745B42-E296-46EB-859B-970A671DEF5E}.Release_DLL|x64.ActiveCfg = Release_DLL|x64 + {AF745B42-E296-46EB-859B-970A671DEF5E}.Release_DLL|x64.Build.0 = Release_DLL|x64 + {AF745B42-E296-46EB-859B-970A671DEF5E}.Release|Win32.ActiveCfg = Release|Win32 + {AF745B42-E296-46EB-859B-970A671DEF5E}.Release|Win32.Build.0 = Release|Win32 + {AF745B42-E296-46EB-859B-970A671DEF5E}.Release|x64.ActiveCfg = Release|x64 + {AF745B42-E296-46EB-859B-970A671DEF5E}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {8F745B42-F996-49EB-859B-970A671DE05D} = {C8D0E55D-5BF4-436F-AF0B-223F61272511} + {AF745B42-F996-49EB-859B-970A671DEF5E} = {C8D0E55D-5BF4-436F-AF0B-223F61272511} + {AF745B42-E296-46EB-859B-970A671DEF5E} = {C8D0E55D-5BF4-436F-AF0B-223F61272511} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {BD28D702-E93F-4820-BF65-6E5EDA4F1685} + EndGlobalSection +EndGlobal diff --git a/crnlib/CMakeLists.txt b/crnlib/CMakeLists.txt new file mode 100644 index 00000000..c3dad950 --- /dev/null +++ b/crnlib/CMakeLists.txt @@ -0,0 +1,85 @@ +add_library(crnlib STATIC + crnlib.cpp + crn_arealist.cpp + crn_assert.cpp + crn_checksum.cpp + crn_colorized_console.cpp + crn_command_line_params.cpp + crn_comp.cpp + crn_console.cpp + crn_core.cpp + crn_data_stream.cpp + crn_dds_comp.cpp + crn_decomp.cpp + crn_dxt.cpp + crn_dxt1.cpp + crn_dxt5a.cpp + crn_dxt_endpoint_refiner.cpp + crn_dxt_fast.cpp + crn_dxt_hc.cpp + crn_dxt_hc_common.cpp + crn_dxt_image.cpp + crn_dynamic_string.cpp + crn_etc.cpp + crn_file_utils.cpp + crn_find_files.cpp + crn_hash.cpp + crn_hash_map.cpp + crn_huffman_codes.cpp + crn_image_utils.cpp + crn_jpgd.cpp + crn_jpge.cpp + crn_ktx_texture.cpp + crn_lzma_codec.cpp + crn_math.cpp + crn_mem.cpp + crn_miniz.cpp + crn_mipmapped_texture.cpp + crn_pixel_format.cpp + crn_platform.cpp + crn_prefix_coding.cpp + crn_qdxt1.cpp + crn_qdxt5.cpp + crn_rand.cpp + crn_resampler.cpp + crn_resample_filters.cpp + crn_rg_etc1.cpp + crn_ryg_dxt.cpp + crn_sparse_bit_array.cpp + crn_stb_image.cpp + crn_strutils.cpp + crn_symbol_codec.cpp + crn_texture_comp.cpp + crn_texture_conversion.cpp + crn_texture_file_types.cpp + crn_threaded_resampler.cpp + crn_threading_pthreads.cpp + crn_threading_win32.cpp + crn_timer.cpp + crn_utils.cpp + crn_value.cpp + crn_vector.cpp + crn_zeng.cpp + lzma_7zBuf.cpp + lzma_7zBuf2.cpp + lzma_7zCrc.cpp + lzma_7zFile.cpp + lzma_7zStream.cpp + lzma_Alloc.cpp + lzma_Bcj2.cpp + lzma_Bra.cpp + lzma_Bra86.cpp + lzma_BraIA64.cpp + lzma_LzFind.cpp + lzma_LzFindMt.cpp + lzma_LzmaDec.cpp + lzma_LzmaEnc.cpp + lzma_LzmaLib.cpp + lzma_Threads.cpp +) + +target_include_directories(crnlib + INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} +) + +install(TARGETS crnlib DESTINATION lib) \ No newline at end of file diff --git a/crnlib/crnlib.2008.vcxproj b/crnlib/crnlib.2008.vcxproj new file mode 100644 index 00000000..f01187da --- /dev/null +++ b/crnlib/crnlib.2008.vcxproj @@ -0,0 +1,574 @@ + + + + + Debug_DLL + Win32 + + + Debug_DLL + x64 + + + Debug + Win32 + + + Debug + x64 + + + Release_DLL + Win32 + + + Release_DLL + x64 + + + Release + Win32 + + + Release + x64 + + + + crnlib + {CF2E70E8-7133-4D96-92C7-68BB406C0664} + crnlib + Win32Proj + + + + StaticLibrary + v141 + Unicode + true + + + StaticLibrary + v141 + Unicode + false + + + StaticLibrary + v141 + Unicode + true + + + StaticLibrary + v141 + Unicode + false + + + StaticLibrary + v141 + Unicode + true + + + StaticLibrary + v141 + Unicode + false + + + StaticLibrary + v141 + Unicode + true + + + StaticLibrary + v141 + Unicode + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>15.0.27924.0 + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\ + $(Platform)\$(Configuration)\ + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\ + $(Platform)\$(Configuration)\ + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\ + $(Platform)\$(Configuration)\ + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\ + $(Platform)\$(Configuration)\ + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\ + $(Platform)\$(Configuration)\ + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\ + $(Platform)\$(Configuration)\ + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\ + $(Platform)\$(Configuration)\ + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\ + $(Platform)\$(Configuration)\ + + + + Disabled + WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) + false + EnableFastChecks + MultiThreadedDebug + false + Use + crn_core.h + Level4 + ProgramDatabase + + + $(OutDir)$(ProjectName)D_VC9.lib + + + + + X64 + + + Disabled + WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) + false + EnableFastChecks + MultiThreadedDebug + false + Use + crn_core.h + Level4 + ProgramDatabase + + + $(OutDir)$(ProjectName)D_x64_VC9.lib + + + + + Full + AnySuitable + true + Speed + true + WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) + MultiThreaded + false + false + Use + crn_core.h + Level4 + ProgramDatabase + + + $(OutDir)$(ProjectName)_VC9.lib + + + + + X64 + + + Full + AnySuitable + true + Speed + true + WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) + MultiThreaded + false + Fast + false + Use + crn_core.h + Level4 + ProgramDatabase + + + $(OutDir)$(ProjectName)_x64_VC9.lib + + + + + Disabled + WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) + false + EnableFastChecks + MultiThreadedDebugDLL + false + Use + crn_core.h + Level4 + ProgramDatabase + + + $(OutDir)$(ProjectName)D_DLL_VC9.lib + + + + + X64 + + + Disabled + WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) + false + EnableFastChecks + MultiThreadedDebugDLL + false + Use + crn_core.h + Level4 + ProgramDatabase + + + $(OutDir)$(ProjectName)D_DLL_x64_VC9.lib + + + + + Full + AnySuitable + true + Speed + true + WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) + MultiThreadedDLL + false + false + Use + crn_core.h + Level4 + ProgramDatabase + + + $(OutDir)$(ProjectName)_DLL_VC9.lib + + + + + X64 + + + Full + AnySuitable + true + Speed + true + WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) + MultiThreadedDLL + false + Fast + false + Use + crn_core.h + Level4 + ProgramDatabase + + + $(OutDir)$(ProjectName)_DLL_x64_VC9.lib + + + + + + + + + + + + + Create + crn_core.h + Create + Create + crn_core.h + Create + Create + Create + Create + Create + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Level3 + + + Level3 + + + Level3 + + + Level3 + + + Level3 + + + Level3 + + + Level3 + + + Level3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/crnlib/crnlib.2008.vcxproj.filters b/crnlib/crnlib.2008.vcxproj.filters new file mode 100644 index 00000000..868b7b72 --- /dev/null +++ b/crnlib/crnlib.2008.vcxproj.filters @@ -0,0 +1,601 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {a6e64f7a-f67c-4d15-b9d3-3da8ba326578} + + + {82c7ecc6-87ea-4d40-bc91-ec2245d34d93} + + + {b8de4042-f332-4bed-aa0c-3018fc5a8d56} + + + {ff00de3c-3063-437a-aa17-98e8ebeb3dc4} + + + {6220d050-28f9-48d1-ab7d-4930e8b2a619} + + + {b3c76b36-31ea-4815-9707-a9f2a24882fd} + + + {d2a6d4ee-3ff4-47aa-8717-5d3041d8aba5} + + + {3ec25bb3-7c65-46bc-b1a9-afb8bab33e94} + + + {2e95d6bc-911b-44e8-b6fb-0310fd4da447} + + + {ce5cad3a-89b8-49d6-9b37-4d303770c5db} + + + {8312ea57-6eb0-4867-9bb9-cb9c5499d6e8} + + + {fa3b81f6-b945-4564-b9e0-329a215e6fa9} + + + {c5b63561-22da-41fe-90f4-6972adcbc5b9} + + + {7d5a8e2b-464d-4867-9b84-a006ff3672aa} + + + {a79d16f8-4da2-4886-a3f6-5d689fcae72c} + + + {000ea4cd-f839-4188-adaf-bda210e47ca0} + + + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files\math + + + Source Files\math + + + Source Files\containers + + + Source Files\containers + + + Source Files\containers + + + Source Files\containers + + + Source Files\image + + + Source Files\image + + + Source Files\image + + + Source Files\image + + + Source Files\image + + + Source Files\image + + + Source Files\image + + + Source Files\image + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\string + + + Source Files\string + + + Source Files\utils + + + Source Files\utils + + + Source Files\utils + + + Source Files\utils + + + Source Files\utils + + + Source Files\utils + + + Source Files\stream + + + Source Files\console + + + Source Files\console + + + Source Files\threading + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\crn + + + Source Files\crn + + + Source Files\crn + + + Source Files\crn + + + Source Files\crn + + + Source Files\texture_conversion + + + Source Files\texture_conversion + + + Source Files\api + + + Source Files\file + + + Source Files\file + + + Source Files\texture + + + Source Files\texture + + + Source Files\texture + + + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files\math + + + Source Files\math + + + Source Files\math + + + Source Files\math + + + Source Files\math + + + Source Files\math + + + Source Files\math + + + Source Files\math + + + Source Files\containers + + + Source Files\containers + + + Source Files\containers + + + Source Files\containers + + + Source Files\containers + + + Source Files\containers + + + Source Files\image + + + Source Files\image + + + Source Files\image + + + Source Files\image + + + Source Files\image + + + Source Files\image + + + Source Files\image + + + Source Files\image + + + Source Files\image + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\comp + + + Source Files\string + + + Source Files\string + + + Source Files\utils + + + Source Files\utils + + + Source Files\utils + + + Source Files\utils + + + Source Files\utils + + + Source Files\utils + + + Source Files\utils + + + Source Files\utils + + + Source Files\utils + + + Source Files\utils + + + Source Files\stream + + + Source Files\stream + + + Source Files\stream + + + Source Files\stream + + + Source Files\stream + + + Source Files\console + + + Source Files\console + + + Source Files\threading + + + Source Files\threading + + + Source Files\threading + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\lzmalib + + + Source Files\crn + + + Source Files\crn + + + Source Files\crn + + + Source Files\crn + + + Source Files\texture_conversion + + + Source Files\texture_conversion + + + Source Files\inc + + + Source Files\inc + + + Source Files\inc + + + Source Files\file + + + Source Files\file + + + Source Files\texture + + + Source Files\texture + + + Source Files\texture + + + \ No newline at end of file diff --git a/crunch/CMakeLists.txt b/crunch/CMakeLists.txt new file mode 100644 index 00000000..8671016e --- /dev/null +++ b/crunch/CMakeLists.txt @@ -0,0 +1,15 @@ +add_executable(crunch + corpus_gen.cpp + corpus_test.cpp + crunch.cpp +) + +target_include_directories(crunch + PUBLIC ${CMAKE_SOURCE_DIR}/inc +) + +target_link_libraries(crunch + PUBLIC crnlib +) + +install(TARGETS crunch DESTINATION bin) diff --git a/crunch/crunch.2008.vcxproj b/crunch/crunch.2008.vcxproj new file mode 100644 index 00000000..624eafc8 --- /dev/null +++ b/crunch/crunch.2008.vcxproj @@ -0,0 +1,213 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + crunch + {8F645BA1-B996-49EB-859B-970A671DE05D} + comp + Win32Proj + + + + Application + v141 + Unicode + true + + + Application + v141 + Unicode + + + Application + v141 + Unicode + true + + + Application + v141 + Unicode + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>15.0.27924.0 + + + ..\bin\ + $(Platform)\$(Configuration)\ + true + + + ..\bin\ + $(Platform)\$(Configuration)\ + true + + + ..\bin\ + $(Platform)\$(Configuration)\ + false + + + ..\bin\ + $(Platform)\$(Configuration)\ + false + + + + Disabled + ..\crnlib;..\inc;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + false + EnableFastChecks + MultiThreadedDebug + false + + Level4 + ProgramDatabase + + + $(OutDir)$(ProjectName)D.exe + true + Console + false + + MachineX86 + + + + + X64 + + + Disabled + ..\crnlib;..\inc;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + false + EnableFastChecks + MultiThreadedDebug + false + + Level4 + ProgramDatabase + + + $(OutDir)$(ProjectName)D_x64.exe + true + $(TargetDir)$(TargetName).pdb + Console + false + + MachineX64 + + + + + Full + AnySuitable + true + Speed + true + ..\crnlib;..\inc;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + MultiThreaded + false + false + + Level4 + ProgramDatabase + + + true + Console + true + true + false + + MachineX86 + + + + + X64 + + + Full + AnySuitable + true + Speed + true + ..\crnlib;..\inc;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + MultiThreaded + false + Fast + false + + Level4 + ProgramDatabase + + + $(OutDir)$(ProjectName)_x64.exe + true + $(TargetDir)$(TargetName).pdb + Console + true + true + false + + MachineX64 + + + + + + + + + + + + + + {cf2e70e8-7133-4d96-92c7-68bb406c0664} + false + + + + + + \ No newline at end of file diff --git a/crunch/crunch.2008.vcxproj.filters b/crunch/crunch.2008.vcxproj.filters new file mode 100644 index 00000000..a85d75e1 --- /dev/null +++ b/crunch/crunch.2008.vcxproj.filters @@ -0,0 +1,36 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav + + + + + Source Files + + + Source Files + + + Source Files + + + + + Source Files + + + Source Files + + + \ No newline at end of file diff --git a/emscripten/CMakeLists.txt b/emscripten/CMakeLists.txt new file mode 100644 index 00000000..f5eca39e --- /dev/null +++ b/emscripten/CMakeLists.txt @@ -0,0 +1,13 @@ +add_library(emscripten STATIC + crunch_lib.cpp +) + +target_include_directories(emscripten + PUBLIC ${CMAKE_SOURCE_DIR}/inc +) + +target_link_libraries(emscripten + PRIVATE crnlib +) + +install(TARGETS emscripten DESTINATION lib) diff --git a/example1/CMakeLists.txt b/example1/CMakeLists.txt new file mode 100644 index 00000000..6011bfc2 --- /dev/null +++ b/example1/CMakeLists.txt @@ -0,0 +1,17 @@ +add_executable(example1 + example1.cpp +) + +target_compile_definitions(example1 + PUBLIC _CRT_SECURE_NO_DEPRECATE +) + +target_include_directories(example1 + PUBLIC ${CMAKE_SOURCE_DIR}/inc +) + +target_link_libraries(example1 + PRIVATE crnlib +) + +install(TARGETS example1 DESTINATION bin) diff --git a/example1/example1.2017.vcproj b/example1/example1.2017.vcproj new file mode 100644 index 00000000..f457fb7b --- /dev/null +++ b/example1/example1.2017.vcproj @@ -0,0 +1,716 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/example1/example1.2017.vcxproj b/example1/example1.2017.vcxproj new file mode 100644 index 00000000..320d1a92 --- /dev/null +++ b/example1/example1.2017.vcxproj @@ -0,0 +1,375 @@ + + + + + Debug_DLL + Win32 + + + Debug_DLL + x64 + + + Debug + Win32 + + + Debug + x64 + + + Release_DLL + Win32 + + + Release_DLL + x64 + + + Release + Win32 + + + Release + x64 + + + + example1 + {8F745B42-F996-49EB-859B-970A671DE05D} + comp + Win32Proj + 10.0.17134.0 + + + + Application + v141 + Unicode + true + + + Application + v141 + Unicode + + + Application + v141 + Unicode + true + + + Application + v141 + Unicode + + + Application + v141 + Unicode + true + + + Application + v141 + Unicode + + + Application + v141 + Unicode + true + + + Application + v141 + Unicode + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>15.0.27924.0 + + + true + + + true + + + false + + + false + + + true + + + true + + + false + + + false + + + + Disabled + ..\inc;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + false + + EnableFastChecks + MultiThreadedDebug + false + + Level4 + ProgramDatabase + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\crnlibD_VC9.lib;%(AdditionalDependencies) + true + Console + false + + MachineX86 + + + + + X64 + + + Disabled + ..\inc;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + false + + EnableFastChecks + MultiThreadedDebug + false + + Level4 + ProgramDatabase + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\crnlibD_x64_VC9.lib;%(AdditionalDependencies) + true + $(TargetDir)$(TargetName).pdb + Console + false + + MachineX64 + + + + + Full + AnySuitable + true + Speed + true + ..\inc;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + + MultiThreaded + false + false + + Level4 + ProgramDatabase + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\crnlib_VC9.lib;%(AdditionalDependencies) + true + Console + true + true + false + + MachineX86 + + + + + X64 + + + Full + AnySuitable + true + Speed + true + ..\inc;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + + MultiThreaded + false + Fast + false + + Level4 + ProgramDatabase + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\crnlib_x64_VC9.lib;%(AdditionalDependencies) + true + $(TargetDir)$(TargetName).pdb + Console + true + true + false + + MachineX64 + + + + + Disabled + ..\inc;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + false + + EnableFastChecks + MultiThreadedDebugDLL + false + + Level4 + ProgramDatabase + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\crnlibD_DLL_VC9.lib;%(AdditionalDependencies) + true + Console + false + + MachineX86 + + + + + X64 + + + Disabled + ..\inc;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + false + + EnableFastChecks + MultiThreadedDebugDLL + false + + Level4 + ProgramDatabase + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\crnlibD_DLL_x64_VC9.lib;%(AdditionalDependencies) + true + $(TargetDir)$(TargetName).pdb + Console + false + + MachineX64 + + + + + Full + AnySuitable + true + Speed + true + ..\inc;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + + MultiThreadedDLL + false + false + + Level4 + ProgramDatabase + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\crnlib_DLL_VC9.lib;%(AdditionalDependencies) + true + Console + true + true + false + + MachineX86 + + + + + X64 + + + Full + AnySuitable + true + Speed + true + ..\inc;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + + MultiThreadedDLL + false + Fast + false + + Level4 + ProgramDatabase + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\crnlib_DLL_x64_VC9.lib;%(AdditionalDependencies) + true + $(TargetDir)$(TargetName).pdb + Console + true + true + false + + MachineX64 + + + + + + + + + + + + \ No newline at end of file diff --git a/example1/example1.2017.vcxproj.filters b/example1/example1.2017.vcxproj.filters new file mode 100644 index 00000000..cb4a1f43 --- /dev/null +++ b/example1/example1.2017.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F2-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995384-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {61DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav + + + + + Source Files + + + + + Header Files + + + \ No newline at end of file diff --git a/example2/CMakeLists.txt b/example2/CMakeLists.txt new file mode 100644 index 00000000..512f8f45 --- /dev/null +++ b/example2/CMakeLists.txt @@ -0,0 +1,18 @@ +add_executable(example2 + example2.cpp + timer.cpp +) + +target_compile_definitions(example2 + PUBLIC _CRT_SECURE_NO_DEPRECATE +) + +target_include_directories(example2 + PUBLIC ${CMAKE_SOURCE_DIR}/inc +) + +target_link_libraries(example2 + PRIVATE crnlib +) + +install(TARGETS example2 DESTINATION bin) diff --git a/example2/example2.2017.vcproj b/example2/example2.2017.vcproj new file mode 100644 index 00000000..a824d6f2 --- /dev/null +++ b/example2/example2.2017.vcproj @@ -0,0 +1,712 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/example2/example2.2017.vcxproj b/example2/example2.2017.vcxproj new file mode 100644 index 00000000..fcea40c0 --- /dev/null +++ b/example2/example2.2017.vcxproj @@ -0,0 +1,368 @@ + + + + + Debug_DLL + Win32 + + + Debug_DLL + x64 + + + Debug + Win32 + + + Debug + x64 + + + Release_DLL + Win32 + + + Release_DLL + x64 + + + Release + Win32 + + + Release + x64 + + + + example2 + {AF745B42-F996-49EB-859B-970A671DEF5E} + comp + Win32Proj + 10.0.17134.0 + + + + Application + v141 + Unicode + true + + + Application + v141 + Unicode + + + Application + v141 + Unicode + true + + + Application + v141 + Unicode + + + Application + v141 + Unicode + true + + + Application + v141 + Unicode + + + Application + v141 + Unicode + true + + + Application + v141 + Unicode + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>15.0.27924.0 + + + true + + + true + + + false + + + false + + + true + + + true + + + false + + + false + + + + Disabled + ..\inc;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + false + + EnableFastChecks + MultiThreadedDebug + false + + Level4 + ProgramDatabase + + + true + Console + false + + MachineX86 + + + + + X64 + + + Disabled + ..\inc;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + false + + EnableFastChecks + MultiThreadedDebug + false + + Level4 + ProgramDatabase + + + true + $(TargetDir)$(TargetName).pdb + Console + false + + MachineX64 + + + + + Full + AnySuitable + true + Speed + true + ..\inc;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + + MultiThreaded + false + false + + Level4 + ProgramDatabase + + + true + Console + true + true + false + + MachineX86 + + + + + X64 + + + Full + AnySuitable + true + Speed + true + ..\inc;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + + MultiThreaded + false + Fast + false + + Level4 + ProgramDatabase + + + true + $(TargetDir)$(TargetName).pdb + Console + true + true + false + + MachineX64 + + + + + Disabled + ..\inc;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + false + + EnableFastChecks + MultiThreadedDebugDLL + false + + Level4 + ProgramDatabase + + + true + Console + false + + MachineX86 + + + + + X64 + + + Disabled + ..\inc;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + false + + EnableFastChecks + MultiThreadedDebugDLL + false + + Level4 + ProgramDatabase + + + true + $(TargetDir)$(TargetName).pdb + Console + false + + MachineX64 + + + + + Full + AnySuitable + true + Speed + true + ..\inc;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + + MultiThreadedDLL + false + false + + Level4 + ProgramDatabase + + + true + Console + true + true + false + + MachineX86 + + + + + X64 + + + Full + AnySuitable + true + Speed + true + ..\inc;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + + MultiThreadedDLL + false + Fast + false + + Level4 + ProgramDatabase + + + true + $(TargetDir)$(TargetName).pdb + Console + true + true + false + + MachineX64 + + + + + + + + + + + + + \ No newline at end of file diff --git a/example2/example2.2017.vcxproj.filters b/example2/example2.2017.vcxproj.filters new file mode 100644 index 00000000..e4fd3452 --- /dev/null +++ b/example2/example2.2017.vcxproj.filters @@ -0,0 +1,30 @@ + + + + + {4FC737F2-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995384-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {61DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav + + + + + Source Files + + + Source Files + + + + + Source Files + + + \ No newline at end of file diff --git a/example3/CMakeLists.txt b/example3/CMakeLists.txt new file mode 100644 index 00000000..4a76e9f2 --- /dev/null +++ b/example3/CMakeLists.txt @@ -0,0 +1,17 @@ +add_executable(example3 + example3.cpp +) + +target_compile_definitions(example3 + PUBLIC _CRT_SECURE_NO_DEPRECATE +) + +target_include_directories(example3 + PUBLIC ${CMAKE_SOURCE_DIR}/inc +) + +target_link_libraries(example3 + PRIVATE crnlib +) + +install(TARGETS example3 DESTINATION bin) diff --git a/example3/example3.2017.vcproj b/example3/example3.2017.vcproj new file mode 100644 index 00000000..34d51af3 --- /dev/null +++ b/example3/example3.2017.vcproj @@ -0,0 +1,716 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/example3/example3.2017.vcxproj b/example3/example3.2017.vcxproj new file mode 100644 index 00000000..af416438 --- /dev/null +++ b/example3/example3.2017.vcxproj @@ -0,0 +1,375 @@ + + + + + Debug_DLL + Win32 + + + Debug_DLL + x64 + + + Debug + Win32 + + + Debug + x64 + + + Release_DLL + Win32 + + + Release_DLL + x64 + + + Release + Win32 + + + Release + x64 + + + + example3 + {AF745B42-E296-46EB-859B-970A671DEF5E} + comp + Win32Proj + 10.0.17134.0 + + + + Application + v141 + Unicode + true + + + Application + v141 + Unicode + + + Application + v141 + Unicode + true + + + Application + v141 + Unicode + + + Application + v141 + Unicode + true + + + Application + v141 + Unicode + + + Application + v141 + Unicode + true + + + Application + v141 + Unicode + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>15.0.27924.0 + + + true + + + true + + + false + + + false + + + true + + + true + + + false + + + false + + + + Disabled + ..\inc;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + false + + EnableFastChecks + MultiThreadedDebug + false + + Level4 + ProgramDatabase + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\crnlibD_VC9.lib;%(AdditionalDependencies) + true + Console + false + + MachineX86 + + + + + X64 + + + Disabled + ..\inc;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + false + + EnableFastChecks + MultiThreadedDebug + false + + Level4 + ProgramDatabase + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\crnlibD_x64_VC9.lib;%(AdditionalDependencies) + true + $(TargetDir)$(TargetName).pdb + Console + false + + MachineX64 + + + + + Full + AnySuitable + true + Speed + true + ..\inc;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + + MultiThreaded + false + false + + Level4 + ProgramDatabase + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\crnlib_VC9.lib;%(AdditionalDependencies) + true + Console + true + true + false + + MachineX86 + + + + + X64 + + + Full + AnySuitable + true + Speed + true + ..\inc;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + + MultiThreaded + false + Fast + false + + Level4 + ProgramDatabase + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\crnlib_x64_VC9.lib;%(AdditionalDependencies) + true + $(TargetDir)$(TargetName).pdb + Console + true + true + false + + MachineX64 + + + + + Disabled + ..\inc;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + false + + EnableFastChecks + MultiThreadedDebugDLL + false + + Level4 + ProgramDatabase + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\crnlibD_DLL_VC9.lib;%(AdditionalDependencies) + true + Console + false + + MachineX86 + + + + + X64 + + + Disabled + ..\inc;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + false + + EnableFastChecks + MultiThreadedDebugDLL + false + + Level4 + ProgramDatabase + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\crnlibD_DLL_x64_VC9.lib;%(AdditionalDependencies) + true + $(TargetDir)$(TargetName).pdb + Console + false + + MachineX64 + + + + + Full + AnySuitable + true + Speed + true + ..\inc;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + + MultiThreadedDLL + false + false + + Level4 + ProgramDatabase + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\crnlib_DLL_VC9.lib;%(AdditionalDependencies) + true + Console + true + true + false + + MachineX86 + + + + + X64 + + + Full + AnySuitable + true + Speed + true + ..\inc;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + + MultiThreadedDLL + false + Fast + false + + Level4 + ProgramDatabase + + + $(SolutionDir)lib\VC9\$(Configuration)\$(Platform)\crnlib_DLL_x64_VC9.lib;%(AdditionalDependencies) + true + $(TargetDir)$(TargetName).pdb + Console + true + true + false + + MachineX64 + + + + + + + + + + + + \ No newline at end of file diff --git a/example3/example3.2017.vcxproj.filters b/example3/example3.2017.vcxproj.filters new file mode 100644 index 00000000..51fc10e9 --- /dev/null +++ b/example3/example3.2017.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F2-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995384-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {61DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav + + + + + Source Files + + + + + Header Files + + + \ No newline at end of file