Add conf.c into msvc and update INSTALL.md

This commit is contained in:
guangli-dai
2026-04-17 10:39:48 -07:00
committed by Guangli Dai
parent 0edea8b1b0
commit 873d91033b
9 changed files with 22 additions and 5 deletions

View File

@@ -419,18 +419,19 @@ arguments to the `configure` script.
* grep * grep
* sed * sed
2. Install Visual Studio 2015 or 2017 with Visual C++ 2. Install Visual Studio with Visual C++. We currently test on 2022 and provide
solution files back to 2015.
3. Add Cygwin\bin to the PATH environment variable 3. Add Cygwin\bin to the PATH environment variable
4. Open "x64 Native Tools Command Prompt for VS 2017" 4. Open "x64 Native Tools Command Prompt" for your version of Visual Studio
(note: x86/x64 doesn't matter at this point) (note: x86/x64 doesn't matter at this point)
5. Generate header files: 5. Generate header files:
sh -c "CC=cl ./autogen.sh" sh -c "CC=cl ./autogen.sh"
6. Now the project can be opened and built in Visual Studio: 6. Now the project can be opened and built in Visual Studio using the
msvc\jemalloc_vc2017.sln corresponding solution files in the `msvc\` folder.
### With MSYS ### With MSYS
This is a more involved approach that offers the same configuration flexibility This is a more involved approach that offers the same configuration flexibility

View File

@@ -44,6 +44,7 @@
<ClCompile Include="..\..\..\..\src\buf_writer.c" /> <ClCompile Include="..\..\..\..\src\buf_writer.c" />
<ClCompile Include="..\..\..\..\src\cache_bin.c" /> <ClCompile Include="..\..\..\..\src\cache_bin.c" />
<ClCompile Include="..\..\..\..\src\ckh.c" /> <ClCompile Include="..\..\..\..\src\ckh.c" />
<ClCompile Include="..\..\..\..\src\conf.c" />
<ClCompile Include="..\..\..\..\src\counter.c" /> <ClCompile Include="..\..\..\..\src\counter.c" />
<ClCompile Include="..\..\..\..\src\ctl.c" /> <ClCompile Include="..\..\..\..\src\ctl.c" />
<ClCompile Include="..\..\..\..\src\decay.c" /> <ClCompile Include="..\..\..\..\src\decay.c" />

View File

@@ -31,6 +31,9 @@
<ClCompile Include="..\..\..\..\src\ckh.c"> <ClCompile Include="..\..\..\..\src\ckh.c">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\..\src\conf.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\..\src\counter.c"> <ClCompile Include="..\..\..\..\src\counter.c">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>

View File

@@ -44,6 +44,7 @@
<ClCompile Include="..\..\..\..\src\buf_writer.c" /> <ClCompile Include="..\..\..\..\src\buf_writer.c" />
<ClCompile Include="..\..\..\..\src\cache_bin.c" /> <ClCompile Include="..\..\..\..\src\cache_bin.c" />
<ClCompile Include="..\..\..\..\src\ckh.c" /> <ClCompile Include="..\..\..\..\src\ckh.c" />
<ClCompile Include="..\..\..\..\src\conf.c" />
<ClCompile Include="..\..\..\..\src\counter.c" /> <ClCompile Include="..\..\..\..\src\counter.c" />
<ClCompile Include="..\..\..\..\src\ctl.c" /> <ClCompile Include="..\..\..\..\src\ctl.c" />
<ClCompile Include="..\..\..\..\src\decay.c" /> <ClCompile Include="..\..\..\..\src\decay.c" />

View File

@@ -31,6 +31,9 @@
<ClCompile Include="..\..\..\..\src\ckh.c"> <ClCompile Include="..\..\..\..\src\ckh.c">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\..\src\conf.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\..\src\counter.c"> <ClCompile Include="..\..\..\..\src\counter.c">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>

View File

@@ -44,6 +44,7 @@
<ClCompile Include="..\..\..\..\src\buf_writer.c" /> <ClCompile Include="..\..\..\..\src\buf_writer.c" />
<ClCompile Include="..\..\..\..\src\cache_bin.c" /> <ClCompile Include="..\..\..\..\src\cache_bin.c" />
<ClCompile Include="..\..\..\..\src\ckh.c" /> <ClCompile Include="..\..\..\..\src\ckh.c" />
<ClCompile Include="..\..\..\..\src\conf.c" />
<ClCompile Include="..\..\..\..\src\counter.c" /> <ClCompile Include="..\..\..\..\src\counter.c" />
<ClCompile Include="..\..\..\..\src\ctl.c" /> <ClCompile Include="..\..\..\..\src\ctl.c" />
<ClCompile Include="..\..\..\..\src\decay.c" /> <ClCompile Include="..\..\..\..\src\decay.c" />

View File

@@ -31,6 +31,9 @@
<ClCompile Include="..\..\..\..\src\ckh.c"> <ClCompile Include="..\..\..\..\src\ckh.c">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\..\src\conf.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\..\src\counter.c"> <ClCompile Include="..\..\..\..\src\counter.c">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>

View File

@@ -44,6 +44,7 @@
<ClCompile Include="..\..\..\..\src\buf_writer.c" /> <ClCompile Include="..\..\..\..\src\buf_writer.c" />
<ClCompile Include="..\..\..\..\src\cache_bin.c" /> <ClCompile Include="..\..\..\..\src\cache_bin.c" />
<ClCompile Include="..\..\..\..\src\ckh.c" /> <ClCompile Include="..\..\..\..\src\ckh.c" />
<ClCompile Include="..\..\..\..\src\conf.c" />
<ClCompile Include="..\..\..\..\src\counter.c" /> <ClCompile Include="..\..\..\..\src\counter.c" />
<ClCompile Include="..\..\..\..\src\ctl.c" /> <ClCompile Include="..\..\..\..\src\ctl.c" />
<ClCompile Include="..\..\..\..\src\decay.c" /> <ClCompile Include="..\..\..\..\src\decay.c" />

View File

@@ -31,6 +31,9 @@
<ClCompile Include="..\..\..\..\src\ckh.c"> <ClCompile Include="..\..\..\..\src\ckh.c">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\..\src\conf.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\..\src\counter.c"> <ClCompile Include="..\..\..\..\src\counter.c">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>