2012-12-22 10:47:06 +00:00
|
|
|
|
2014-12-20 16:12:35 +00:00
|
|
|
project(SHELL)
|
|
|
|
|
2013-06-22 14:44:56 +00:00
|
|
|
set_cpp(WITH_RUNTIME)
|
|
|
|
|
2013-07-20 10:23:07 +00:00
|
|
|
if(NOT MSVC)
|
|
|
|
# HACK: this should be enabled globally!
|
2015-04-19 20:18:25 +00:00
|
|
|
add_compile_flags_language("-std=c++11 -Wshadow" "CXX")
|
2013-07-20 10:23:07 +00:00
|
|
|
endif()
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
2018-11-12 11:23:38 +00:00
|
|
|
add_definitions(
|
|
|
|
-D_ATL_NO_EXCEPTIONS)
|
|
|
|
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/atl)
|
|
|
|
|
2012-12-22 10:47:06 +00:00
|
|
|
add_definitions(-D_NETSHELL_)
|
2011-06-26 21:29:55 +00:00
|
|
|
spec2def(netshell.dll netshell.spec)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
2012-01-20 21:50:54 +00:00
|
|
|
netshell.cpp
|
|
|
|
shfldr_netconnect.cpp
|
|
|
|
enumlist.cpp
|
|
|
|
connectmanager.cpp
|
|
|
|
lanconnectui.cpp
|
|
|
|
lanstatusui.cpp
|
2016-05-17 22:38:58 +00:00
|
|
|
setup.cpp
|
2014-02-10 12:19:56 +00:00
|
|
|
precomp.h)
|
|
|
|
|
2015-09-27 18:37:23 +00:00
|
|
|
file(GLOB netshell_rc_deps res/*.*)
|
|
|
|
add_rc_deps(netshell.rc ${netshell_rc_deps})
|
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(netshell MODULE
|
2014-02-10 12:19:56 +00:00
|
|
|
${SOURCE}
|
|
|
|
netshell.rc
|
2011-05-16 13:12:07 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/netshell_stubs.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/netshell.def)
|
|
|
|
|
2018-11-12 11:23:38 +00:00
|
|
|
set_module_type(netshell win32dll UNICODE)
|
2019-04-06 20:37:13 +00:00
|
|
|
target_link_libraries(netshell uuid wine)
|
2018-11-12 11:23:38 +00:00
|
|
|
add_delay_importlibs(netshell ole32 oleaut32 shlwapi shell32)
|
|
|
|
add_importlibs(netshell version iphlpapi gdi32 user32 advapi32 setupapi ws2_32 comctl32 msvcrt kernel32 ntdll)
|
2014-02-10 12:19:56 +00:00
|
|
|
add_pch(netshell precomp.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET netshell DESTINATION reactos/system32 FOR all)
|