2010-08-22 23:59:45 +00:00
|
|
|
|
2010-09-18 15:22:08 +00:00
|
|
|
|
2010-08-22 23:59:45 +00:00
|
|
|
|
|
|
|
include_directories(include)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/adns/src)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/adns/adns_win32)
|
|
|
|
|
|
|
|
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})
|
|
|
|
|
|
|
|
set_target_properties(dnsapi PROPERTIES LINK_FLAGS "-Wl,-entry,0")
|
|
|
|
|
|
|
|
target_link_libraries(dnsapi
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/dnsapi.def
|
|
|
|
adns
|
2010-09-17 20:27:01 +00:00
|
|
|
-luser32
|
2010-08-22 23:59:45 +00:00
|
|
|
-lws2_32
|
2010-09-17 20:27:01 +00:00
|
|
|
-lmsvcrt
|
2010-08-22 23:59:45 +00:00
|
|
|
-liphlpapi
|
2010-09-17 20:27:01 +00:00
|
|
|
-lkernel32
|
|
|
|
-lntdll)
|
2010-08-22 23:59:45 +00:00
|
|
|
|
|
|
|
add_pch(dnsapi ${CMAKE_CURRENT_SOURCE_DIR}/dnsapi/precomp.h ${SOURCE})
|
|
|
|
add_dependencies(dnsapi dnsapi_def psdk)
|