﻿-----------------------------------------------------------------------------
--------------------------  TCAX Build Guideline ----------------------------

-----------------------------------------------------------------------------
Essential disclaimer: Copyright belongs to author of tcax project, milkyjing.
-----------------------------------------------------------------------------


You could get the source code of TCAX from GitHub. Use git clone https://github.com/milkyjing/TCAX.git
你可以在 GitHub 上得到 TCAX 的源代码。

However, to build TCAX at ease and avoid employing much time of you, 
a source zip well packed is preferred, which could be downloaded at http://www.tcax.org.
但是，除非特殊情况，请不要下载 GitHub 上的源代码。
而这个包是推荐的：编译测试并更新后的源代码包可以在 TCAX 论坛(http://www.tcax.org) 下载得到。

We also need the latest version(3.5.1 now) of Python. Get its installer(32bit) from https://www.python.org. Install it to its default directory.
在 Python Website (https://www.python.org) 下载 Python 最新的安装程序(32位)，安装到默认路径(推荐)或者自定义路径。

Prepare build tool. Download Visual Studio 2015 Community, which is called 'VS' later. Install and initialize it.
下载 Visual Studio 2015 Community (以下简称 'VS')。安装并使其初始化(熟悉的环境选择 Visual C++)。

Now, everything is well prepared.

Unpack the source code zip to a suitable directory. Open '\project_tcax\src\TCAX\tcax\' and 'tcax.sln' is ahead. Open it with VS.
解压源代码包到合适的路径。打开文件夹 '\project_tcax\src\TCAX\tcax'，用 VS 打开文件夹下的文件 'tcax.sln'。

重要确认点：菜单栏>调试>tcax 属性，配置 Release Win32，配置属性>VC++ 目录>包含目录 和 库目录，确认其中的目录是你安装 Python 的路径。

Now, you could build the solution. If it goes well, 'tcax.exe' is in the subdirectory 'Release'.
生成解决方案，生成的 'tcax.exe' 在子文件夹 'Release' 下。

The next is tcaxLib.pyd. Open 'project_tcax\src\TCAX\tcax\tcaxLib\' and open tcaxLib.sln with VS.
打开文件夹 '\project_tcax\src\TCAX\tcax\tcaxLib\'，用 VS 打开文件夹下的文件 'tcaxLib.sln'。

Similar to the notice to build tcax.exe.
与上面生成 'tcax.exe' 类似，确认：菜单栏>调试>tcax 属性，配置 Release Win32，配置属性>VC++ 目录>包含目录 和 库目录，确认其中的目录是你安装 Python 的路径。

Then, build it and if it goes well, 'tcaxLib.pyd' is in the subdirectory 'Release'.
生成解决方案，生成的 'tcaxLib.pyd' 在子文件夹 'Release' 下。

- End of Build Guideline -

预编译好的 'tcax.exe' 和 'tcaxLib.pyd' 可以在 TCAX 论坛下载得到。

usage:
替换原先你在 TCAX 论坛下载的 tcax 程序路径中的 tcax.exe 和 tcaxLib.pyd 即可正常 parse 或者拖动运行。

Build Info:
(1) Python Support: 3.5.1, 32bit
(2) zlib 1.2.8, libpng 1.6.21, FreeType 2.6.2
(3) Platform: Visual Studio Community 2015, Release of win32

Known Bug:
(1) tcax_cmd 状态无法完成某些既定任务，建议不使用。

另外的几个模块可能会在不久后编译。

如果发现 Bug，在论坛留言：http://www.tcax.org/forum.php?mod=viewthread&tid=1231#lastpost

- End -

面麻 or kawori

2016.02.15

