mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00

- rewrite spec2def macro because 1. cmake gracefully handles def files as source files 2. cmake gracefully handles autogenerated files as source 3. it did not take into account the fact that all shared libraries haven't the .dll extension svn path=/branches/cmake-bringup/; revision=49358
53 lines
871 B
CMake
53 lines
871 B
CMake
|
|
ADD_TYPELIB(shdocvw_v1 shdocvw_v1.idl)
|
|
add_dependencies(shdocvw_v1 stdole2)
|
|
|
|
add_definitions(-D_SHDOCVW_)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
spec2def(shdocvw.dll shdocvw.spec)
|
|
|
|
add_library(shdocvw SHARED
|
|
classinfo.c
|
|
client.c
|
|
dochost.c
|
|
events.c
|
|
factory.c
|
|
frame.c
|
|
ie.c
|
|
iexplore.c
|
|
intshcut.c
|
|
navigate.c
|
|
oleobject.c
|
|
persist.c
|
|
shdocvw_main.c
|
|
shlinstobj.c
|
|
taskbarlist.c
|
|
urlhist.c
|
|
view.c
|
|
webbrowser.c
|
|
shdocvw.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/shdocvw.def)
|
|
|
|
set_module_type(shdocvw win32dll)
|
|
|
|
target_link_libraries(shdocvw
|
|
uuid
|
|
wine)
|
|
|
|
add_importlibs(shdocvw
|
|
ole32
|
|
oleaut32
|
|
shlwapi
|
|
shell32
|
|
user32
|
|
advapi32
|
|
gdi32
|
|
version
|
|
urlmon
|
|
kernel32
|
|
ntdll)
|
|
|
|
add_dependencies(shdocvw shdocvw_v1 shdocvw_def)
|
|
add_cab_target(shdocvw 1)
|