浏览代码

DOC: update

viest 7 年之前
父节点
当前提交
78958c4058
共有 1 个文件被更改,包括 26 次插入1 次删除
  1. 26 1
      README.md

+ 26 - 1
README.md

@@ -18,6 +18,29 @@ git clone https://github.com/jmcnamara/libxlsxwriter.git && cd libxlsxwriter &&
 brew install libxlsxwriter
 ```
 
+##### Windows
+
+> Build the basic PHP build environment.
+
+```bash
+cd PHP_BUILD_PATH/deps
+
+git clone --recursive https://github.com/jmcnamara/MSVCLibXlsxWriter.git
+```
+
+To build the DLL of the library open the LibXlsxWriterProj/LibXlsxWriter.sln project in MS Visual Studio and build the solution using the "Build -> Build Solution" menu item.
+
+In the default configuration this will build an x64 debug LibXlsxWriter .lib and .dll in:
+
+```bash
+PHP_BUILD_PATH\deps\MSVCLibXlsxWriter\LibXlsxWriterProj\x64\Debug
+```
+
+32Bit: Copy .dll files to c:\Windows\System32
+64Bit: Same thing
+
+Add the lib path to the `LIB` environment variable.
+
 #### 2、Get the source code via Git
 
 ##### Unix
@@ -32,7 +55,9 @@ add the `extension=excel_writer.so` to `php.ini` file.
 
 ##### Windows
 
->Please look forward to the next update.
+Clone the project to the ext directory in PHP, `configure` add `--enable-excel_writer` parameter.
+
+[PHP compilation tutorial](https://wiki.php.net/internals/windows/stepbystepbuild)
 
 #### 3、Documents