2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
include_directories(
|
2016-04-20 12:36:25 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine
|
2011-05-16 13:12:07 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/dll/win32/dhcpcsvc/include
|
2016-04-20 12:36:25 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/tdilib)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(iphlpapi.dll iphlpapi.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2015-11-02 23:56:46 +00:00
|
|
|
add_definitions(-DGetAdaptersAddressesV2)
|
2011-05-16 13:12:07 +00:00
|
|
|
list(APPEND SOURCE
|
2014-11-03 12:55:59 +00:00
|
|
|
address.c
|
2011-05-16 13:12:07 +00:00
|
|
|
dhcp_reactos.c
|
2015-12-04 10:57:44 +00:00
|
|
|
icmp.c
|
2011-05-16 13:12:07 +00:00
|
|
|
ifenum_reactos.c
|
|
|
|
ipstats_reactos.c
|
2015-11-22 14:47:42 +00:00
|
|
|
iphlpapi_reactos.c
|
2011-05-16 13:12:07 +00:00
|
|
|
iphlpapi_main.c
|
|
|
|
media.c
|
|
|
|
registry.c
|
|
|
|
resinfo_reactos.c
|
|
|
|
route_reactos.c
|
2014-02-10 12:19:56 +00:00
|
|
|
iphlpapi_private.h
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/iphlpapi_stubs.c)
|
|
|
|
|
|
|
|
add_library(iphlpapi SHARED
|
|
|
|
${SOURCE}
|
2011-05-16 13:12:07 +00:00
|
|
|
iphlpapi.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/iphlpapi.def)
|
|
|
|
|
2015-11-04 18:06:16 +00:00
|
|
|
set_module_type(iphlpapi win32dll UNICODE)
|
2011-05-16 13:12:07 +00:00
|
|
|
target_link_libraries(iphlpapi wine tdilib)
|
2018-11-29 19:28:06 +00:00
|
|
|
add_importlibs(iphlpapi dhcpcsvc advapi32 psapi ws2_32 msvcrt kernel32 ntdll)
|
2014-02-10 12:19:56 +00:00
|
|
|
add_pch(iphlpapi iphlpapi_private.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET iphlpapi DESTINATION reactos/system32 FOR all)
|