2011-05-16 13:12:07 +00:00
|
|
|
|
2011-08-07 00:53:19 +00:00
|
|
|
include_directories(
|
2016-04-20 12:36:25 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl
|
2011-08-07 00:53:19 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
add_definitions(
|
|
|
|
-D_SETUPAPI_
|
|
|
|
-D_CFGMGR32_
|
|
|
|
-Dwcsnicmp=_wcsnicmp)
|
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
add_rpc_files(client ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/pnp.idl)
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(setupapi.dll setupapi.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
cfgmgr.c
|
|
|
|
devclass.c
|
|
|
|
devinst.c
|
2016-07-27 00:48:41 +00:00
|
|
|
dialog.c
|
2011-05-16 13:12:07 +00:00
|
|
|
dirid.c
|
|
|
|
diskspace.c
|
|
|
|
driver.c
|
|
|
|
install.c
|
|
|
|
interface.c
|
|
|
|
misc.c
|
|
|
|
parser.c
|
|
|
|
query.c
|
|
|
|
queue.c
|
|
|
|
setupcab.c
|
|
|
|
stringtable.c
|
|
|
|
stubs.c
|
|
|
|
rpc.c
|
2014-02-10 12:19:56 +00:00
|
|
|
setupapi_private.h
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/pnp_c.c)
|
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(setupapi MODULE
|
2014-02-10 12:19:56 +00:00
|
|
|
${SOURCE}
|
2011-05-16 13:12:07 +00:00
|
|
|
setupapi.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/setupapi_stubs.c
|
2014-02-10 12:19:56 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/setupapi.def)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2011-09-03 19:11:44 +00:00
|
|
|
set_module_type(setupapi win32dll UNICODE)
|
2011-09-04 00:52:28 +00:00
|
|
|
target_link_libraries(setupapi uuid wine ${PSEH_LIB})
|
2017-12-31 12:08:39 +00:00
|
|
|
add_delay_importlibs(setupapi comdlg32 shell32 winspool.drv wintrust)
|
2014-10-17 23:28:29 +00:00
|
|
|
add_importlibs(setupapi gdi32 comctl32 advapi32 user32 rpcrt4 version msvcrt kernel32 ntdll)
|
2014-02-10 12:19:56 +00:00
|
|
|
add_pch(setupapi setupapi_private.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET setupapi DESTINATION reactos/system32 FOR all)
|