xref: /reactos/sdk/tools/unicode/CMakeLists.txt (revision b8dd046e)
1
2add_definitions(-DDECLSPEC_HIDDEN=)
3
4list(APPEND SOURCE
5    c_037.c
6    c_10000.c
7    c_10001.c
8    c_10002.c
9    c_10003.c
10    c_10004.c
11    c_10005.c
12    c_10006.c
13    c_10007.c
14    c_10008.c
15    c_10010.c
16    c_10017.c
17    c_10021.c
18    c_10029.c
19    c_1006.c
20    c_10079.c
21    c_10081.c
22    c_10082.c
23    c_1026.c
24    c_1250.c
25    c_1251.c
26    c_1252.c
27    c_1253.c
28    c_1254.c
29    c_1255.c
30    c_1256.c
31    c_1257.c
32    c_1258.c
33    c_1361.c
34    c_20127.c
35    c_20866.c
36    c_20932.c
37    c_21866.c
38    c_28591.c
39    c_28592.c
40    c_28593.c
41    c_28594.c
42    c_28595.c
43    c_28596.c
44    c_28597.c
45    c_28598.c
46    c_28599.c
47    c_28600.c
48    c_28601.c
49    c_28603.c
50    c_28604.c
51    c_28605.c
52    c_28606.c
53    c_424.c
54    c_437.c
55    c_500.c
56    c_737.c
57    c_775.c
58    c_850.c
59    c_852.c
60    c_855.c
61    c_856.c
62    c_857.c
63    c_860.c
64    c_861.c
65    c_862.c
66    c_863.c
67    c_864.c
68    c_865.c
69    c_866.c
70    c_869.c
71    c_874.c
72    c_875.c
73    c_878.c
74    c_932.c
75    c_936.c
76    c_949.c
77    c_950.c
78    casemap.c
79    compose.c
80    cptable.c
81    mbtowc.c
82    string.c
83    utf8.c
84    wctomb.c
85    wctype.c)
86
87add_library(unicode STATIC ${SOURCE})
88target_link_libraries(unicode PRIVATE host_includes)
89
90if(MSVC)
91    # Disable warning "'<': signed/unsigned mismatch"
92    add_target_compile_flags(unicode "/wd4018")
93
94    # Disable warning "unary minus operator applied to unsigned type, result still unsigned"
95    add_target_compile_flags(unicode "/wd4146")
96
97    # Disable warning "conversion from 'const WCHAR' to 'char', possible loss of data"
98    add_target_compile_flags(unicode "/wd4244")
99endif()
100