[CRT] Add missing posix error codes
[reactos.git] / sdk / lib / 3rdparty / libmpg123 / CMakeLists.txt
1
2 add_definitions(
3 -DOPT_I386
4 -DREAL_IS_FLOAT
5 -DNOXFERMEM
6 -DHAVE_CONFIG_H
7 -DEOVERFLOW=75
8 -Dlseek=_lseek
9 -Dread=_read
10 -Dstrdup=_strdup
11 -D_CRT_NONSTDC_NO_DEPRECATE
12 -D_DLL -D__USE_CRTIMP
13 -D_CRT_NO_POSIX_ERROR_CODES)
14
15 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libmpg123)
16
17 list(APPEND SOURCE
18 compat/compat.c
19 compat/compat_str.c
20 dct64.c
21 dct64_i386.c
22 equalizer.c
23 feature.c
24 format.c
25 frame.c
26 icy.c
27 icy2utf8.c
28 id3.c
29 index.c
30 layer1.c
31 layer2.c
32 layer3.c
33 libmpg123.c
34 ntom.c
35 parse.c
36 readers.c
37 stringbuf.c
38 synth.c
39 synth_8bit.c
40 synth_real.c
41 synth_s32.c
42 tabinit.c
43 precomp.h)
44
45 add_library(libmpg123 ${SOURCE} optimize.c)
46 add_dependencies(libmpg123 psdk)
47 add_pch(libmpg123 precomp.h SOURCE)