2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
include_directories(
|
|
|
|
include
|
2019-10-27 19:38:25 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl
|
2016-04-20 12:36:25 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/adns/src
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/adns/adns_win32)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2019-10-27 19:38:25 +00:00
|
|
|
add_rpc_files(client ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/dnsrslvr.idl)
|
|
|
|
|
2019-04-28 09:28:24 +00:00
|
|
|
add_definitions(-DADNS_JGAA_WIN32 -D_CRT_NO_POSIX_ERROR_CODES)
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(dnsapi.dll dnsapi.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
2019-11-17 15:31:30 +00:00
|
|
|
adns.c
|
|
|
|
context.c
|
|
|
|
memory.c
|
|
|
|
names.c
|
|
|
|
query.c
|
|
|
|
record.c
|
|
|
|
rpc.c
|
|
|
|
stubs.c
|
|
|
|
precomp.h
|
2019-10-27 19:38:25 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/dnsrslvr_c.c)
|
2014-02-10 12:19:56 +00:00
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(dnsapi MODULE
|
2014-02-10 12:19:56 +00:00
|
|
|
${SOURCE}
|
2011-05-16 13:12:07 +00:00
|
|
|
dnsapi.rc
|
2019-11-02 17:47:36 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/dnsapi_stubs.c
|
2011-05-16 13:12:07 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/dnsapi.def)
|
|
|
|
|
2013-02-23 16:45:48 +00:00
|
|
|
set_module_type(dnsapi win32dll)
|
2019-10-27 19:38:25 +00:00
|
|
|
target_link_libraries(dnsapi adns ${PSEH_LIB})
|
|
|
|
add_importlibs(dnsapi advapi32 rpcrt4 user32 ws2_32 iphlpapi msvcrt kernel32 ntdll)
|
2019-11-17 15:31:30 +00:00
|
|
|
add_pch(dnsapi precomp.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET dnsapi DESTINATION reactos/system32 FOR all)
|