1
2project(SHELL)
3
4set_cpp(WITH_RUNTIME)
5
6if(NOT MSVC)
7    # HACK: this should be enabled globally!
8    add_compile_flags_language("-std=c++11 -Wshadow" "CXX")
9endif()
10
11remove_definitions(-D_WIN32_WINNT=0x502)
12add_definitions(-D_WIN32_WINNT=0x600)
13
14add_definitions(
15    -D_ATL_NO_EXCEPTIONS)
16
17include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/atl)
18
19add_definitions(-D_NETSHELL_)
20spec2def(netshell.dll netshell.spec)
21
22list(APPEND SOURCE
23    netshell.cpp
24    shfldr_netconnect.cpp
25    enumlist.cpp
26    connectmanager.cpp
27    lanconnectui.cpp
28    lanstatusui.cpp
29    setup.cpp
30    precomp.h)
31
32file(GLOB netshell_rc_deps res/*.*)
33add_rc_deps(netshell.rc ${netshell_rc_deps})
34
35add_library(netshell SHARED
36    ${SOURCE}
37    netshell.rc
38    ${CMAKE_CURRENT_BINARY_DIR}/netshell_stubs.c
39    ${CMAKE_CURRENT_BINARY_DIR}/netshell.def)
40
41set_module_type(netshell win32dll UNICODE)
42target_link_libraries(netshell atlnew uuid wine)
43add_delay_importlibs(netshell ole32 oleaut32 shlwapi shell32)
44add_importlibs(netshell version iphlpapi gdi32 user32 advapi32 setupapi ws2_32 comctl32 msvcrt kernel32 ntdll)
45add_pch(netshell precomp.h SOURCE)
46add_cd_file(TARGET netshell DESTINATION reactos/system32 FOR all)
47