3d028925dee27049c26048189d512034d1387240
[reactos.git] / dll / 3rdparty / libtirpc / CMakeLists.txt
1 spec2def(libtirpc.dll libtirpc/libtirpc.spec ADD_IMPORTLIB)
2
3 remove_definitions(-D_WIN32_WINNT=0x502)
4 add_definitions(-D_WIN32_WINNT=0x600)
5 add_definitions(-DUNICODE -D_WIN32 -DPORTMAP -Dstrdup=_strdup)
6
7 include_directories(${REACTOS_SOURCE_DIR}/dll/3rdparty/libtirpc/tirpc)
8
9 list(APPEND SOURCE
10 src/asprintf.c
11 # src/auth_des.c
12 src/authdes_prot.c
13 # src/auth_gss.c
14 # src/authgss_prot.c
15 src/auth_none.c
16 src/auth_sspi.c
17 src/authsspi_prot.c
18 src/auth_time.c
19 src/auth_unix.c
20 src/authunix_prot.c
21 src/bindresvport.c
22 src/clnt_bcast.c
23 src/clnt_dg.c
24 src/clnt_generic.c
25 src/clnt_perror.c
26 src/clnt_raw.c
27 src/clnt_simple.c
28 src/clnt_vc.c
29 # src/crypt_client.c
30 # src/des_crypt.c
31 src/des_soft.c
32 src/epoll_sub.c
33 src/getnetconfig.c
34 src/getnetpath.c
35 src/getpeereid.c
36 src/getpublickey.c
37 src/getrpcent.c
38 src/getrpcport.c
39 src/gettimeofday.c
40 src/key_call.c
41 src/key_prot_xdr.c
42 src/libtirpc.def
43 #src/makefile
44 #src/Makefile.am
45 src/mt_misc.c
46 src/netname.c
47 src/netnamer.c
48 src/pmap_clnt.c
49 src/pmap_getmaps.c
50 src/pmap_getport.c
51 src/pmap_prot2.c
52 src/pmap_prot.c
53 src/pmap_rmt.c
54 src/rpcb_clnt.c
55 src/rpcb_prot.c
56 src/rpcb_st_xdr.c
57 src/rpc_callmsg.c
58 src/rpc_com.h
59 src/rpc_commondata.c
60 src/rpcdname.c
61 src/rpc_dtablesize.c
62 src/rpc_generic.c
63 src/rpc_prot.c
64 src/rpc_soc.c
65 src/rtime.c
66 src/sources
67 src/svc_auth.c
68 # src/svc_auth_des.c
69 # src/svc_auth_gss.c
70 src/svc_auth_none.c
71 src/svc_auth_unix.c
72 src/svc.c
73 src/svc_dg.c
74 src/svc_generic.c
75 src/svc_raw.c
76 src/svc_run.c
77 src/svc_simple.c
78 src/svc_vc.c
79 src/winstubs.c
80 src/wintirpc.c
81 src/xdr_array.c
82 src/xdr.c
83 src/xdr_float.c
84 src/xdr_mem.c
85 src/xdr_rec.c
86 src/xdr_reference.c
87 src/xdr_sizeof.c
88 src/xdr_stdio.c
89 precomp.h)
90
91 add_library(libtirpc SHARED
92 ${SOURCE}
93 # libtirpc/libtirpc.rc
94 libtirpc/libtirpc_ros.rc
95 ${CMAKE_CURRENT_BINARY_DIR}/libtirpc.def)
96
97 if(MSVC AND (NOT USE_CLANG_CL))
98 else()
99 # FIXME: Tons of warnings.
100 add_target_compile_flags(libtirpc "-w")
101 endif()
102
103 set_module_type(libtirpc win32dll)
104 add_importlibs(libtirpc user32 advapi32 kernel32_vista ws2_32 msvcrt kernel32 ntdll)
105 add_delay_importlibs(libtirpc secur32)
106 add_pch(libtirpc precomp.h SOURCE)
107 add_cd_file(TARGET libtirpc DESTINATION reactos/system32 FOR all)