xref: /aosp_15_r20/external/jemalloc_new/msvc/ReadMe.txt (revision 1208bc7e437ced7eb82efac44ba17e3beba411da)
1*1208bc7eSAndroid Build Coastguard Worker
2*1208bc7eSAndroid Build Coastguard WorkerHow to build jemalloc for Windows
3*1208bc7eSAndroid Build Coastguard Worker=================================
4*1208bc7eSAndroid Build Coastguard Worker
5*1208bc7eSAndroid Build Coastguard Worker1. Install Cygwin with at least the following packages:
6*1208bc7eSAndroid Build Coastguard Worker   * autoconf
7*1208bc7eSAndroid Build Coastguard Worker   * autogen
8*1208bc7eSAndroid Build Coastguard Worker   * gawk
9*1208bc7eSAndroid Build Coastguard Worker   * grep
10*1208bc7eSAndroid Build Coastguard Worker   * sed
11*1208bc7eSAndroid Build Coastguard Worker
12*1208bc7eSAndroid Build Coastguard Worker2. Install Visual Studio 2015 or 2017 with Visual C++
13*1208bc7eSAndroid Build Coastguard Worker
14*1208bc7eSAndroid Build Coastguard Worker3. Add Cygwin\bin to the PATH environment variable
15*1208bc7eSAndroid Build Coastguard Worker
16*1208bc7eSAndroid Build Coastguard Worker4. Open "x64 Native Tools Command Prompt for VS 2017"
17*1208bc7eSAndroid Build Coastguard Worker   (note: x86/x64 doesn't matter at this point)
18*1208bc7eSAndroid Build Coastguard Worker
19*1208bc7eSAndroid Build Coastguard Worker5. Generate header files:
20*1208bc7eSAndroid Build Coastguard Worker   sh -c "CC=cl ./autogen.sh"
21*1208bc7eSAndroid Build Coastguard Worker
22*1208bc7eSAndroid Build Coastguard Worker6. Now the project can be opened and built in Visual Studio:
23*1208bc7eSAndroid Build Coastguard Worker   msvc\jemalloc_vc2017.sln
24