OSDN Git Service

Add a patch file for gettext-0.19.5.1
[libintl-msvc10/libintl-msvc10.git] / README.txt
1
2 How to build:
3
4 STEP 0: Preparation
5
6   Install Windows XP or higher.
7   Install Microsoft Visual C++ 2008 or 2010.
8   Install Microsoft SDK 7.1 (optional).
9   Install patch command, MinGW or TortoiseGit in order to patch source files.
10
11
12 STEP 1: Getting the gettext archive
13
14   Download the gettext version 0.19.5.1
15   http://www.gnu.org/software/gettext/
16
17   Extract libintl sources.
18   copy to libintl/intl/ from gettext-runtime/intl/ on gettext archive.
19
20
21 STEP 2: Patching source files
22
23   Patch libintl sources using patch command.
24
25   cd libintl/intl/; patch -p0 < ../patch-0.19.5.1.patch
26
27   Or, use TortoiseGitUDiff.
28
29
30 STEP 3: Configure
31
32   Edit libintl/msvc/config.h if need.
33   * Define SKIP_LC_MESSAGES to 1 if you don't need LC_MESSAGES sub-directory
34     in locale directory.
35   * Undefine HAVE_POSIX_PRINTF if you want to use printf() function supports
36     format strings with positions.
37
38
39 STEP 4: Building libraries using MSVC solution file
40
41   Build all using libintl_vc09.sln or libintl_vc10.sln.
42   On success, copy library files to lib/* or libdll/*.
43
44     lib/x86/ ........ 32bit static library.
45       libintl.lib ..... Release         : MBCS and Release build
46       libintld.lib .... Debug           : MBCS and Debug build
47       libintlu.lib .... Unicode_Release : Unicode and Release build
48       libintlud.lib ... Unicode_Debug   : Unicode and Debug build
49     lib/x64/ ........ 64bit static library.
50       libintl.lib ..... Release         : MBCS and Release build
51       libintld.lib .... Debug           : MBCS and Debug build
52       libintlu.lib .... Unicode_Release : Unicode and Release build
53       libintlud.lib ... Unicode_Debug   : Unicode and Debug build
54
55     libdll/x86/ ..... 32bit dynamic link library.
56       libintl.dll ..... DLL_Release         : MBCS and Release build
57       libintl.lib
58       libintld.dll .... DLL_Debug           : MBCS and Debug build
59       libintld.lib
60       libintlu.dll .... DLL_Unicode_Release : Unicode and Release build
61       libintlu.lib
62       libintlud.dll ... DLL_Unicode_Debug   : Unicode and Debug build
63       libintlud.lib
64     libdll/x64/ ..... 64bit dynamic link library.
65       libintl.dll ..... DLL_Release         : MBCS and Release build
66       libintl.lib
67       libintld.dll .... DLL_Debug           : MBCS and Debug build
68       libintld.lib
69       libintlu.dll .... DLL_Unicode_Release : Unicode and Release build
70       libintlu.lib
71       libintlud.dll ... DLL_Unicode_Debug   : Unicode and Debug build
72       libintlud.lib
73
74
75 STEP 5: Testing
76
77   Build sample program on samples directory and test them.
78
79     If you test dll, copy dll file to application directory from libdll
80   directory.
81
82
83
84 How to use:
85
86     See gettext.h in samples directory to buildable on both MBCS and UNICODE
87   environment.
88