1
2add_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
15include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libmpg123)
16
17list(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
44list(APPEND PCH_SKIP_SOURCE
45    optimize.c)
46
47add_library(libmpg123
48    ${SOURCE}
49    ${PCH_SKIP_SOURCE})
50
51add_dependencies(libmpg123 psdk)
52add_pch(libmpg123 precomp.h "${PCH_SKIP_SOURCE}")
53