2010-08-22 23:59:45 +00:00
|
|
|
|
2010-10-02 22:19:59 +00:00
|
|
|
include_directories(
|
|
|
|
include
|
|
|
|
${REACTOS_SOURCE_DIR}/lib/3rdparty/adns/src
|
|
|
|
${REACTOS_SOURCE_DIR}/lib/3rdparty/adns/adns_win32)
|
2010-08-22 23:59:45 +00:00
|
|
|
|
|
|
|
add_definitions(-D_DLL -D__USE_CRTIMP)
|
|
|
|
add_definitions(-DADNS_JGAA_WIN32)
|
|
|
|
|
|
|
|
spec2def(dnsapi ${CMAKE_CURRENT_SOURCE_DIR}/dnsapi.spec ${CMAKE_CURRENT_BINARY_DIR}/dnsapi.def)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
dnsapi/adns.c
|
|
|
|
dnsapi/context.c
|
|
|
|
dnsapi/memory.c
|
|
|
|
dnsapi/names.c
|
|
|
|
dnsapi/query.c
|
|
|
|
dnsapi/record.c
|
|
|
|
dnsapi/stubs.c
|
|
|
|
dnsapi.rc)
|
|
|
|
|
|
|
|
add_library(dnsapi SHARED
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/dnsapi_precomp.h.gch
|
|
|
|
${SOURCE})
|
|
|
|
|
2010-10-02 22:19:59 +00:00
|
|
|
set_entrypoint(dnsapi 0)
|
2010-08-22 23:59:45 +00:00
|
|
|
|
|
|
|
target_link_libraries(dnsapi
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/dnsapi.def
|
2010-10-02 22:19:59 +00:00
|
|
|
adns)
|
2010-08-22 23:59:45 +00:00
|
|
|
|
2010-10-02 22:19:59 +00:00
|
|
|
add_importlibs(dnsapi user32 ws2_32 iphlpapi msvcrt kernel32 ntdll)
|
2010-08-22 23:59:45 +00:00
|
|
|
add_pch(dnsapi ${CMAKE_CURRENT_SOURCE_DIR}/dnsapi/precomp.h ${SOURCE})
|
2010-10-02 22:19:59 +00:00
|
|
|
add_dependencies(dnsapi dnsapi_def psdk buildno_header)
|